1.tomcat 7Դ?源码?
tomcat 7Դ??
安装说明
安装环境:CentOS-7.0.
安装方式:源码安装
软件:apache-tomcat-7.0..tar.gz
下载地址:/apache-mirror/tomcat/tomcat-7/v7.0./bin/apache-tomcat-7.0..tar.gz
[root@admin local]# tar -zxv -f apache-tomcat-7.0..tar.gz // 解压压缩包
[root@admin local]# rm -rf apache-tomcat-7.0..tar.gz // 删除压缩包
[root@admin local]# mv apache-tomcat-7.0. tomcat
启动Tomcat
执行以下操作:
代码如下:
[plain] view plaincopyprint?
[root@admin ~]# /usr/local/tomcat/bin/startup.sh //启动tomcat
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/java/jdk1.7.0/jre
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
出现以上信息说明已成功启动。
防火墙开放端口
增加端口到防火墙配置中,源码雷霆gs源码执行以下操作:
[plain] view plaincopyprint?源码app后端PHP源码
[root@admin ~]# vi + /etc/sysconfig/iptables
#增加以下代码
[plain] view plaincopyprint?
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport -j ACCEPT
重启防火墙
[plain] view plaincopyprint?
[root@admin java]# service iptables restart
检验Tomcat安装运行
通过以下地址查看tomcat是否运行正常:
http://...:/
看到tomcat系统界面,说明安装成功!源码迷你充值系统源码
停止Tomcat
[plain] view plaincopyprint?源码js防止函数源码
[root@admin ~]# /usr/local/tomcat/bin/shutdown.sh //停止tomcat
2024-11-15 06:06
2024-11-15 05:32
2024-11-15 05:27
2024-11-15 05:26
2024-11-15 05:10
2024-11-15 04:59
2024-11-15 04:42
2024-11-15 03:48