在CentOS下使用守護進程啓動有/etc/init.d/functions文件下的daemon方法,但若是要使用Ubuntu下的start-stop-daemon方法也能夠實現。spa
安裝以下:code
# 下載 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