nginx + fastDFS 设置开机自动启动

时间:2023-03-09 13:22:36
nginx + fastDFS 设置开机自动启动
由于在服务器上有太多的软件
不可能每次启动都要重新启动服务吧(每晚断电。。。必须重启电脑)
vim /etc/rc.d/rc.local
添加下列脚本
/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf restart
/usr/bin/fdfs_storaged /etc/fdfs/storage.conf restart
/usr/local/nginx/sbin/nginx 
注:如果tracker和storage安装在不同的位置,则需要在不同位置的文件中添加脚本