执行sudo supervisorctl reload报错ImportError: No module named supervisor.supervisord
2024-08-29 02:26:32
由于yum install supervisor 会默认使用python2.6环境,首先要安装好python2.6的环境,然后修改以下文件首行为2.6即可
[root@VM_0_15_centos ~]# cat /usr/bin/supervisord
#!/usr/bin/python2.
from supervisor.supervisord import main # __doc__ required to make supervisord -h work
from supervisor.supervisord import __doc__
main() [root@VM_0_15_centos ~]# cat /usr/bin/supervisorctl
#!/usr/bin/python2.
from supervisor.supervisorctl import main # __doc__ required to make supervisorctl -h work
from supervisor.supervisorctl import __doc__
main() [root@VM_0_15_centos ~]#
参考:https://blog.csdn.net/englishsname/article/details/79082684
最新文章
- Windows 10 安装双系统 CentOS 7
- 修改项目生成Gemfile的模板
- C++ malloc new 的区别
- php中mysql数据库异步查询实现
- 【学习笔记】【C语言】算术运算
- HDU5319
- JQuery调用iframe父页面元素与方法
- Windows SDK笔记(经典--一定要看)
- iOS开发:多线程技术概述
- Node.js 使用gm处理图像
- hdu_2147_kiki's game(博弈)
- Java课程设计——GUI密码生成器团队博客
- URL模块之parse方法
- [国嵌笔记][036][关闭MMU和CACHE]
- React Native控件之Listview
- 对filter的初步认识
- fedora 29 桌面版 设置 cockpit 自动开机启动
- SpringSecurityOAuth认证配置及Token的存储
- Bower使用笔记
- 在linux中安装jdk以及tomcat并shell脚本关闭启动的进程
热门文章
- redux有价值的文档
- 关于“Error: listen EADDRINUSE: address already in use 127.0.0.1:3000”
- POJ2139-Six Degrees of Cowvin Bacon-(Floyd_Warshall)
- (11)树莓派3 有线网卡静态IP设置
- selenuim自动化爬取汽车在线谷米爱车网车辆GPS数据爬虫
- 【AtCoder】 ARC 096
- 敏捷项目管理—Scrum框架总结
- .Net Core3 新特性整理
- SpringBoot——Profile多环境支持
- 我的node-webkit笔记