centos6开机自启

编辑 /etc/rc.local 文件

vim /etc/rc.local

编写启动的命令  如:

#启动redis
/usr/local/redis/bin/redis-server /usr/local/redis/bin/redis.conf
#启动tomcat
/soft/tomcat82/bin/startup.sh start

 

posted @ 2021-06-15 11:31  静默之尘  阅读(165)  评论(0编辑  收藏  举报