【发布时间】:2013-11-08 05:32:16
【问题描述】:
我有一个典型的问题。
我正在使用 nginx 和乘客为 rails 配置服务器。 我是如何安装 nginx 乘客模块的。
然后我在 /opt/nginx/conf 目录中正确配置了 nginx。
然后当我尝试重新启动/strat/重新加载/停止时,它会说: 重启 nginx: /etc/init.d/nginx: line 42: start-stop-daemon: command not found.
我的重启配置在 /etc/init.d/nginx 我有
restart|force-reload)
echo -n "Restarting $DESC: "
start-stop-daemon --stop --quiet --pidfile \
/opt/nginx/logs/$NAME.pid --exec $DAEMON
sleep 1
start-stop-daemon --start --quiet --pidfile \
/opt/nginx/logs/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
echo "$NAME."
;;
我正在开发centos。 请帮助我,我无法弄清楚它为什么会发生。 谢谢。
【问题讨论】:
标签: linux nginx centos passenger