# addusr tomcat
# chown -R tomcat:tomcat /usr/local/tomcat
-------------------------------------
#vi /etc/rc.local
在最后加入:
su - tomcat -c '/usr/local/tomcat/bin/startup.sh'
------------------------------------
REBOOT試試,JSP用ROOT啟動不安全的問題解決了
su - tomcat -c '/usr/local/tomcat/bin/shutdown.sh' ‘tomcat停止命令
# chown -R tomcat:tomcat /usr/local/tomcat
-------------------------------------
#vi /etc/rc.local
在最后加入:
su - tomcat -c '/usr/local/tomcat/bin/startup.sh'
------------------------------------
REBOOT試試,JSP用ROOT啟動不安全的問題解決了
su - tomcat -c '/usr/local/tomcat/bin/shutdown.sh' ‘tomcat停止命令