通过二进制supervise文件可以直接对进程进行守护

./supervise -f  要守护的程序 -p  守护信息存储位置

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

例如:

./supervise -f  http_server -p status/http_server

http_server是二进制启动文件

status/http_server是守护信息存储位置

 

./supervise -f "python master-server-test.py" -p ./status/test  执行python项目文件

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄