Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

版本

go大于 1.7.5

安装go后

在当前路径执行

sh build.sh

可以在 bin 目录下 生成 monitor.daemon 和 monitor 俩个二进制文件

程序运行

mkdir /home/runtime/monitor/ -p
cd /home/runtime/monitor/
mkdir logs configure bin
cp -v configure/monitor.conf configure/

请用普通用户启动,不要用root跑监控程序

为程序不可避免的异常退出,请加监控程序,或使用任务计划定期检查

软件 supervisor

任务计划 */10 * * * * /home/你的用户/runtime/monitor/bin/monitor.daemon /home/你的用户/runtime/monitor/configure/monitor.conf 2>/dev/null

程序启动

不要使用root

nohup /home/你的用户/runtime/monitor/bin/monitor.daemon /home/你的用户/runtime/monitor/configure/monitor.conf &

程序分发

将 /home/你的用户/runtime/ 目录下打包分发到其他可以运行的机器启动即可