专栏名称: 程序员大咖
为程序员提供最优质的博文、最精彩的讨论、最实用的开发资源;提供最新最全的编程学习资料:PHP、Objective-C、Java、Swift、C/C++函数库、.NET Framework类库、J2SE API等等。并不定期奉送各种福利。
目录
相关文章推荐
极客之家  ·  视频一键转图文,这款开源的 AI ... ·  21 小时前  
京东科技技术说  ·  JDK从8升级到21的问题集 ·  19 小时前  
稀土掘金技术社区  ·  编程常用的 MCP Server,用自然语言写代码 ·  3 天前  
51好读  ›  专栏  ›  程序员大咖

用 Python 管理系统进程

程序员大咖  · 公众号  · 程序员  · 2018-03-26 10:24

正文

请到「今天看啥」查看全文


  • command = /home/ zoer / daemon . py

  • autorestart = true

  • 然后我们启动 supervisor 并启动 daemon.py 的执行。

    1. root@ubuntu:/home/zoer  # supervisord

    2. /usr/local/lib/python2.7/dist-packages/supervisor-3.0b1-py2.7.egg/supervisor/options.py:286:UserWarning:Supervisord is running as root and it is searching for its configuration file in default locations(including its current working directory)you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.

    3.    'Supervisord is running as root and it is searching '

    4. root@ubuntu:/home/zoer  # supervisorctl

    5. ddd                              STARTING

    6. supervisor > start ddd

    7. ddd: ERROR(already started)

    8. supervisor > stop ddd

    9. ddd: stopped

    10. supervisor > start ddd

    11. ddd







    请到「今天看啥」查看全文