CentOS使用Ubuntu的start-stop-daemon来启动守护进程

在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

猜你喜欢

转载自www.cnblogs.com/EasonJim/p/10029980.html