标签:ext tcp nts -- firewall ora enter fir 分享图片
vi /etc/profile
#在底部添加
JAVA_HOME=/usr/local/javajdk
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar
export PATH JAVA_HOME CLASSPATH
source /etc/profile
/usr/local/tomcat/bin/startup.sh
#/usr/local/tomcat/bin/shutdown.sh
firewall-cmd --zone=public --add-port=8080/tcp --permanent
sudo firewall-cmd --reload
chmod +x /etc/rc.d/rc.local
vi /etc/rc.d/rc.localexport JAVA_HOME=/usr/local/javajdk
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar
/usr/local/tomcat/bin/startup.sh
CentOS7,安装Tomcat8.5、JDK1.8,并设置开机启动(Linux CentOS Tomcat、JDK+Tomcat、Tomcat开机自启动)
标签:ext tcp nts -- firewall ora enter fir 分享图片
原文地址:https://www.cnblogs.com/jpfss/p/10325077.html