start-stop-daemon 在Red Hat沒有發現

最近使用 unbuntu 用apt-get裝nginx .裝完後還有個  /etc/init.d/nginx 的服務項,能夠啓動關閉進程.

在readhat 用ngixn 編譯安裝後沒有
/etc/init.d/nginx
unbuntu 的/etc/init.d/nginx copy 過來.用. 提示 start-stop-daemon 找不到.

搜啊搜 找到了.
wget
 http://developer.axis.com/download/distribution/apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz
tar -xzf apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz
cd ~/src/apps/sys-utils/start-stop-daemon-IR1_9_18-2
gcc start-stop-daemon.c -o start-stop-daemon
cp start-stop-daemon /usr/local/sbin/
chmod +x /usr/local/sbin/start-stop-daemon start-stop-daemon 能用了.
相關文章
相關標籤/搜索