[root@localhost ~]# vi /etc/rc.d/rc.local
添加运行脚本:
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
/etc/init.d/nginx start
/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf start
/usr/bin/fdfs_storaged /etc/fdfs/storage.conf start
~
~
~
Sentos设置开机启动服务
最新推荐文章于 2025-08-11 18:33:23 发布