标签:关闭 sysconf ali file java tar ble out cat
# tar zxvf 文件名
# cp -r 文件名 /usr/local/jdk7
# vim /etc/profile
export JAVA_HOME=/usr/local/jdk7
export PATH=$JAVA_HOME/bin:$PATH
# source /etc/profile
# java -version
2.1 # vim /etc/profile
2.2 添加内容
export TOMCAT_HOME=/usr/local/tomcat
export CATALINA_HOME=/usr/local/tomcat
3.1 # vim /etc/sysconfig/iptables
3.2 复制包含端口22,修改22为8080
3.2.1 8080:9000 从8080到9000全放行
3.3重启服务 #service iptables restart
3.3.1 restart 重启
3.3.2 start 启动
3.3.3 stop 停止
4.1 直接启动 # ./startup.sh
4.2 启动并动态打印启动信息
# ./startup.sh & tailf /usr/local/tomcat/logs/catalina.out
# ps aux|grep tomcat
# kill -7 2703
标签:关闭 sysconf ali file java tar ble out cat
原文地址:https://www.cnblogs.com/su920602/p/11858777.html