好好爱自己!

摘要: https://serverfault.com/questions/587696/how-to-restart-php-fpm-from-cron 我也遇到了这个问题,想用cron 来启动php-fpm进程(当检测到php-fpm 进程挂掉的时候) 把service php5.6-fpm 这句改为 阅读全文
posted @ 2018-07-31 16:30 立志做一个好的程序员 阅读(194) 评论(0) 推荐(0) 编辑
摘要: Atong介绍的这个工具,挺好用的。supervise 官方网站: https://cr.yp.to/daemontools.html cd /data/test cat test.c cat run 执行命令 svstat /data/test,结果如下: pstree -p: 自动监控并重启服务 阅读全文
posted @ 2018-07-31 14:25 立志做一个好的程序员 阅读(1419) 评论(0) 推荐(0) 编辑
摘要: 原文: http://man.linuxde.net/tee tee命令用于将数据重定向到文件,另一方面还可以提供一份重定向数据的副本作为后续命令的stdin。简单的说就是把数据重定向到给定文件和屏幕上。 存在缓存机制,每1024个字节将输出一次。若从管道接收输入数据,应该是缓冲区满,才将数据转存到 阅读全文
posted @ 2018-07-31 09:54 立志做一个好的程序员 阅读(342) 评论(0) 推荐(0) 编辑

不断学习创作,与自己快乐相处