tomcat开机自动重启

vim /etc/rc.local 文件中写入启动语句

export JAVA_HOME=路径(/root/jdk)

/opt/tomcat/bin/starup.sh start 启动脚本路径