赞
踩
- useradd -s /sbin/nologin tomcat
- /usr/lib/systemd/system/tomcat8.service
- 在tomcat.service下添加
- User=tomcat
- Group=tomcat
- chown -R tomcat:tomcat /usr/local/tomcat
- 修改文件:/usr/local/tomcat/webapps/manager/META-INF/context.xml
- <Value className="org.apache.catalina.valves.RemoteHostValve">
- allow=".*\.admins\.domain\.com"
- />
- 修改文件/conf/web.xml
- <session-config>
- <session-timeout>20</session-timeout>
- </session-config>
- 修改文件CATALINA_BASE/conf/context.xml
- <Context useHttpOnly='true' .../>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。