Linux开机启动服务

一、添加启动脚本

vim /etc/rc.d/rc.local
sh /home/glt/apache-tomcat-7.0.57/bin/email.sh

二、启动服务

systemctl enable rc-local.service
systemctl status rc-local.service

 

 

 


参考:https://blog.csdn.net/qq562029186/article/details/67639676

   https://blog.csdn.net/jiafu1115/article/details/54629749/

posted on 2018-06-02 15:06  WOTGL  阅读(1810)  评论(0编辑  收藏  举报

导航