当前位置:网站首页>Supervisor common commands
Supervisor common commands
2022-07-24 17:19:00 【junjunzai123】
One 、 Open command
- supervisor Server side start command :
- sudo unlink /var/run/supervisor.sock
- supervisord -c /etc/supervisor/supervisord.conf At this time, all services are enabled by default
supervisor Client side commands for :
- supervisorctl status Check the running status of the process
- supervisorctl start Process name Start the process
- supervisorctl stop Process name Close the process
- supervisorctl restart Process name Restart the process
- supervisorctl update Reload configuration file
- supervisorctl shutdown close supervisord
- supervisorctl clear Process name Clear process log
- supervisorctl Enter interactive mode . Use help Check all commands .
- start stop restart + all Said to start , close , Restart all processes .
Two 、 The shutdown command
- supervisorctl stop all Shut down first supervisor service
And then close supervisord service - kill -9 pid
3、 ... and supervisor Hierarchical management of documents
- In the file supervisord.conf File configuration , Add a line at the end of the file , for example :
[include]
files = /local/service/supervisor/conf/*.ini
- According to the added code , Other startup program files are put in conf Under the folder , conf The files under the folder show :
celery-server.ini cpv-server.ini
- The file content is configured as follows :
[program:cpv-server-batchrec]
directory=/home/deploy/research/workspace/cpv_server
command=/home/deploy/anaconda3/envs/cpv_server/bin/gunicorn cpv_celery:flask_app --workers 1 --bind 0.0.0.0:xxxx --log-level=debug
- explain : This will change the task from supervisord.conf Separated from the file , Then you need to update the task when starting, that is, execute the following command :
supervisorctl update
After executing the above code , You can start the task and execute the following commands :
supervisorctl start The service name ( The aforementioned ini In the document program Name )
边栏推荐
- 荣耀CEO赵明:单一厂商很难实现全场景产品覆盖
- CPU comparison
- Development dynamics | stonedb 2022 release milestone
- Check the actual data growth of the database
- Xxx.pro learning in QT
- TCP协议调试工具TcpEngine V1.3.0使用教程
- 【时序逻辑电路】——计数器
- 详解 Apache Hudi Schema Evolution(模式演进)
- 还在用Xshell?你out了,推荐一个更现代的终端连接工具!
- Exception handling - a small case that takes you to solve NullPointerException
猜你喜欢

量化框架backtrader之一文读懂Indicator指标

自定义类型:枚举

Qsqldatabase: solution of qmmysql driver not loaded

An example of using viewthatfits adaptive view in swiftui 4.0

安全:如何为行人提供更多保护

One article of quantitative framework backtrader: understand indicator indicators

通道的分离与合并

AXI协议(3):AXI架构的握手机制和实现细节

AutoCAD - join merge command

Canvas 从入门到劝朋友放弃(图解版)
随机推荐
ShardingSphere数据库读写分离
Analyze the capabilities and scenarios of Apache pulsar, a cloud native message flow system
DBF menu driver: librarydatabaseproject
2022-07-21 Daily: Wu Enda wrote: how to establish projects suitable for AI career
Want to make sandbox games? Then you must not miss this plug-in (unity3d)
Using unity to do simulation, I don't allow this chart plug-in, you don't know
Notebook computer purchase guide (specific brand and model are not recommended)
Keyboard input operation
Axi protocol (2): five channels and two transactions of Axi architecture
Amd Ruilong 7000 is expected to be available on September 15, and the 3D cache version will have to wait
Portfwd port forwarding
Is computer monitoring true? Four experiments to find out
什么是模糊理论,基础,流程
Pat a - correct spelling
Xxx.pro learning in QT
NATBypass 端口转发
JVM class loading subsystem
Comparison of array and object merging methods assign, merge, defaults, defaultsdeep in lodash
Apachecon Asia 2022 opens registration: pulsar technology issues make a big debut
What is the meaning of void 0? Is undefined changeable?