nginx + fastDFS 设置开机自动启动

由于在服务器上有太多的软件
不可能每次启动都要重新启动服务吧(每晚断电。。。必须重启电脑)
vim /etc/rc.d/rc.local
添加下列脚本
1 /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf restart
2 /usr/bin/fdfs_storaged /etc/fdfs/storage.conf restart
3 /usr/local/nginx/sbin/nginx 
注:如果tracker和storage安装在不同的位置,则需要在不同位置的文件中添加脚本
原文地址:https://www.cnblogs.com/leechenxiang/p/5530436.html