1. 程式人生 > >CentOS使用Ubuntu的start-stop-daemon來啟動守護進程

CentOS使用Ubuntu的start-stop-daemon來啟動守護進程

col wget 卸載 init.d ftp figure devel color eve

在CentOS下使用守護進程啟動有/etc/init.d/functions文件下的daemon方法,但如果要使用Ubuntu下的start-stop-daemon方法也可以實現。

安裝如下:

# 下載
wget http://ftp.de.debian.org/debian/pool/main/d/dpkg/dpkg_1.16.18.tar.xz -O dpkg_1.16.18.tar.xz
tar -xf dpkg_1.16.18.tar.xz && cd dpkg-1.16.18
# 安裝編譯依賴
yum install ncurses-devel -y
# 安裝
./configure && make && make install
# 卸載
make uninstall

CentOS使用Ubuntu的start-stop-daemon來啟動守護進程