标签:linu app tcp redirect option classpath 添加 style tom
yum install -y unzipunzip apache-tomcat-7.0.88-syzw-7001.ziprm -rf apache-tomcat-7.0.88-syzw-7001.zipcp -a apache-tomcat-7.0.88-syzw-7001/ /data/local/apache-tomcat-7.0.88
vi catalina.sh,头部添加如下配置:
export JAVA_HOME=/data/soft/jdk1.8.0_171export JRE_HOME=$JAVA_HOME/jreexport PATH=$JAVA_HOME/bin:$PATHexport CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/libJAVA_OPTS="-server -Xms2048m -Xmx2048m -XX:PermSize=128M -XX:MaxPermSize=256m"
尾部添加如下配置:
<security-constraint><web-resource-collection><url-pattern>/*</url-pattern><http-method>PUT</http-method><http-method>DELETE</http-method><http-method>HEAD</http-method><http-method>OPTIONS</http-method><http-method>TRACE</http-method></web-resource-collection><auth-constraint></auth-constraint></security-constraint></web-app>
1修改相关端口号2配置server属性:server="server-alias"<Connector port="9001" protocol="HTTP/1.1"connectionTimeout="20000"redirectPort="6643"server="server-alias"/>
yum search netstatnetstat -tanlpfirewall-cmd --zone=public --add-port=9001/tcp --permanentfirewall-cmd --reload
标签:linu app tcp redirect option classpath 添加 style tom
原文地址:https://www.cnblogs.com/linux777/p/9372670.html