当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
猜你喜欢
[original] the influence of arm platform memory and cache on the real-time performance of xenomai
Data transmission of asynchronous serial communication controlled by group bus communication
Using pipe() to improve code readability in pandas
laravel8更新之维护模式改进
计组-总线通信控制之异步串行通信的数据传输
How to choose a good company
技术总监7年自述——如何选择一家好公司
手撕算法-手写单例模式
Analysis of kubernetes service types: from concept to practice
Git code submission operation, and git push prompt failed to push some refs'xxx '
随机推荐
分享几个我日常使用的VS Code插件
你可能不知道的Animation动画技巧与细节
Thinkphp6中where条件中字段与字段比较条件的写法
[random talk] the goal and way of software design
Got timeout reading communication packets解决方法
ECMAScript7规范中的instanceof操作符
laravel8更新之维护模式改进
Code Review Best Practices
The instanceof operator in ecmascript7 specification
不懂数据库索引的底层原理?那是因为你心里没点b树
微服务的出现和意义的探索
Kylin on Kubernetes 在 eBay 的实践
Adobe Lightroom / LR 2021 software installation package (with installation tutorial)
工作1-3年的程序员,应该具备怎么样的技术能力?该如何提升?
The emergence and significance of micro service
快速上手Git
Insight -- the application of sanet in arbitrary style transfer
It's time to end bertology
Do not understand the underlying principle of database index? That's because you don't have a B tree in your heart
C language I blog assignment 03