当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Code Review最佳实践
- 如何以计算机的方式去思考
- 聊聊Go代码覆盖率技术与最佳实践
- 什么都2020了,LINQ查询你还在用表达式树
- Adobe Lightroom / LR 2021 software installation package (with installation tutorial)
- Web安全(一)---浏览器同源策略
- 虚拟DOM中给同一层级的元素设置固定且唯一的key为什么能提高性能
- How to deal with data leakage and deletion related to business life and death?
- Do not understand the underlying principle of database index? That's because you don't have a B tree in your heart
- Improvement of maintenance mode of laravel8 update
猜你喜欢
IDEA-项目未自动生成 .iml 文件
Reflection on a case of bus card being stolen and swiped
The most hard core of the whole network explains the computer startup process
Principles of websocket + probuf
面部识别:攻击类型和反欺骗技术
Deep into web workers (1)
Annual salary of 900000 programmers is not as good as 3800 civil servants a month? How to choose between stability and high income?
How to choose a good company
盘点那些争议最大的编程观点,你是什么看法呢?
The emergence and significance of micro service
随机推荐
低代码 vs 模型驱动,它们之间到底是什么关系?
Do not understand the underlying principle of database index? That's because you don't have a B tree in your heart
如何以计算机的方式去思考
laravel8更新之维护模式改进
Cpp(一) 安装CMake
编程界大佬教你:一行Python代码能做出哪些神奇的事情?
Exploration and practice of growingio responsive programming
状态压缩:对动态规划进行降维打击
Using pipe() to improve code readability in pandas
[C + + learning notes] how about the simple use of the C + + standard library STD:: thread?
Principles of websocket + probuf
sed之查找替换
栈-括号的匹配
微信小程序request报400错误 @RequestBody接收不到
Awk implements SQL like join operation
虚拟DOM中给同一层级的元素设置固定且唯一的key为什么能提高性能
看一遍就理解,图解单链表反转
Analysis of kubernetes service types: from concept to practice
C language I blog assignment 03
计组-总线通信控制之异步串行通信的数据传输