当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Jingtao project day09
- Let's talk about the locks in the database
- Kylin on kubernetes' practice on eBay
- High concurrency in ngnix cluster
- 数据库基本操作
- Web安全(三)---CSRF攻击
- use Xunit.DependencyInjection Transformation test project
- 面部识别:攻击类型和反欺骗技术
- Reflection on a case of bus card being stolen and swiped
- [C + + learning notes] how about the simple use of the C + + standard library STD:: thread?
猜你喜欢
聊聊Go代码覆盖率技术与最佳实践
计组-总线通信控制之异步串行通信的数据传输
来自不同行业领域的50多个对象检测数据集
android基础-RadioButton(单选按钮)
Principles of websocket + probuf
Ac86u KX Online
Don't treat exceptions as business logic, which you can't afford
14000 word distributed transaction principle analysis, master all of them, are you afraid of being asked in the interview?
编程界大佬教你:一行Python代码能做出哪些神奇的事情?
洞察——风格注意力网络(SANet)在任意风格迁移中的应用
随机推荐
go wire 依赖注入入门
Git code submission operation, and git push prompt failed to push some refs'xxx '
京淘项目day09
微信小程序request报400错误 @RequestBody接收不到
High concurrency in ngnix cluster
laravel8更新之维护模式改进
「混合云」会是云计算的下一个战场吗?
关于update操作并发问题
Let's talk about the locks in the database
Awk implements SQL like join operation
On the coverage technology and best practice of go code
Adobe Prelude /Pl 2020软件安装包(附安装教程)
Code Review Best Practices
如何高效的学习技术
不懂数据库索引的底层原理?那是因为你心里没点b树
The instanceof operator in ecmascript7 specification
C language I blog assignment 03
手撕算法-手写单例模式
统计文本中字母的频次(不区分大小写)
盘点那些争议最大的编程观点,你是什么看法呢?