daemonize Unix系统后台守护进程管理软件
在我们的工作中,很多时候都需要在linux中后台运行程序, 方法1: nohup & 方法2: daemonize Unix系统后台守护进程管理软件 优点:更加正规 后台运⾏更稳定 git clone git://github.com/bmc/daemonize.git sh configure && make && sudo make install [root@dev-hadoop-test01 ~]# which daemonize /usr/local/sbin/daemonize daemonize -c /data/prometheus/ /data/prometheus/up.sh -c 是指定运⾏路径 /data/prometheus/up.sh 是运⾏路径下的 ⼀个启动脚本 下⾯是这个启动脚本的内容 内容:就是开启prometheus进程 [root@prometheus yd]# cat /data/prometheus/up.sh /data/prometheus/prometheus --web.listen address="0.0.0.0:9090" --web.read-timeout=5m --web.max connections=10 --storage.tsdb.retention=15d --storage.tsdb.path="data/"