当前位置:网站首页>Supervisor process management installation and use
Supervisor process management installation and use
2020-11-07 20:57:00 【Coxhuang】
List of articles
- supervisor Install and use
- #1 Environmental Science
- #2 demand
- #3 Start
- #4 Example
supervisor Install and use
#1 Environmental Science
Ubuntu16.04 Python 3.8.1
#2 demand
- Monitor progress
#3 Start
- install
sudo apt-get install supervisor
- start-up
service supervisor start perhaps supervisord -c /etc/supervisor/supervisord.conf
- Generate configuration files
echo_supervisord_conf > /etc/supervisor/supervisord.conf
- Profile path
sudo mkdir -p /etc/supervisor/conf.d/
vim /etc/supervisor/supervisord.conf
Add the following at the end :
[include] files = /etc/supervisor/conf.d/*.conf
- Start visual interface
In the configuration
supervisord.conf
The file opens the following comments
[inet_http_server] ; inet (TCP) server disabled by default port=0.0.0.0:9002 ; (ip_address:port specifier, *:port for all iface) username=user ; (default is no username (open server)) password=123 ; (default is no password (open server))
- Use
Command line |
explain |
---|---|
supervisord |
start-up |
supervisord -c /etc/supervisor/supervisord.conf |
With xxx Profile startup |
supervisorctl |
Go to the command line |
supervisorctl status |
Check the status |
supervisorctl reload |
Reload configuration |
supervisorctl start processname |
Start the process |
supervisorctl stop processname |
Close the process |
supervisorctl restart processname |
Restart the process |
#4 Example
xxx.conf
[group:multiprocesstest] programs=multiprocess [program:multiprocess] command=python3 /home/cox/work/test/multiprocess_suspend/multiprocess_suspend.py directory=/home/cox user=cox autorestart=true redirect_stderr=true stopasgroup=true
Official documents :
Participation of this paper Tencent cloud media sharing plan , You are welcome to join us , share .
版权声明
本文为[Coxhuang]所创,转载请带上原文链接,感谢
边栏推荐
- In the age of screen reading, we suffer from attention deficit syndrome
- A detailed explanation of microservice architecture
- 你可能不知道的Animation动画技巧与细节
- Cpp(三) 什么是CMake
- 盘点那些争议最大的编程观点,你是什么看法呢?
- use Xunit.DependencyInjection Transformation test project
- 编程界大佬教你:一行Python代码能做出哪些神奇的事情?
- Recommend suicide, openai warns: gpt-3 is too risky for medical purposes
- Kubernetes服务类型浅析:从概念到实践
- 当 TiDB 与 Flink 相结合:高效、易用的实时数仓
猜你喜欢
面部识别:攻击类型和反欺骗技术
Insight -- the application of sanet in arbitrary style transfer
密码学-尚硅谷
工作1-3年的程序员,应该具备怎么样的技术能力?该如何提升?
Big data algorithm - bloon filter
来自不同行业领域的50多个对象检测数据集
Improvement of maintenance mode of laravel8 update
【解决方案】分布式定时任务解决方案
The emergence and significance of micro service
来自不同行业领域的50多个对象检测数据集
随机推荐
What magic things can a line of Python code do?
爆一个VS2015 Update1更新带来的编译BUG【已有解决方案】
一万四千字分布式事务原理解析,全部掌握你还怕面试被问?
How to deal with data leakage and deletion related to business life and death?
虚拟DOM中给同一层级的元素设置固定且唯一的key为什么能提高性能
我是如何失去团队掌控的?
Writing method of field and field comparison condition in where condition in thinkphpp6
Recommend suicide, openai warns: gpt-3 is too risky for medical purposes
14000 word distributed transaction principle analysis, master all of them, are you afraid of being asked in the interview?
技术总监7年自述——如何选择一家好公司
Python 图片识别 OCR
构造请求日志分析系统
delphi10的rest.json与system.json的踩坑
密码学-尚硅谷
如何高效的学习技术
The emergence and significance of micro service
栈-括号的匹配
「混合云」会是云计算的下一个战场吗?
Web安全(三)---CSRF攻击
Deep into web workers (1)