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