1、添加启动脚本apache
vim /etc/rc.d/rc.local sh /home/glt/apache-tomcat-7.0.57/bin/email.sh
2、启动服务vim
systemctl enable rc-local.service systemctl status rc-local.service
参考:https://blog.csdn.net/qq562029186/article/details/67639676tomcat
https://blog.csdn.net/jiafu1115/article/details/54629749/spa