python socket模块[errno 113_error:
一 问题出现背景supervisorctl update
error: , [Errno 113] No route to host: file: /usr/lib64/python2.7/socket.py line: 571
二 查找出现问题的原因:/usr/bin/supervisorctl -hsupervisorctl -- control applications run by supervisord from the cmd line.
Usage: /usr/bin/supervisorctl [options] [action [arguments]]
Options:
-c/--configuration -- configuration file path (default /etc/supervisord.conf)
-h/--help -- print usage message and exit
-i/--interactive -- start an interactive shell after executing commands
-s/--serverurl URL -- URL on which supervisord server is listening
(default "http://localhost:9001").
-u/--username -- username to use for authentication with server
-p/--password -- password to use for authentication with server
-r/--history-file -- keep a readline history (if readline is available)
action [arguments] -- see below
Actions are commands like "tail" or "stop". If -i is specified or no action is
specified on the command line, a "shell" interpreting actions typed
interactively is started. Use the action "help" to find out about available
actions.
通过上面 default /etc/supervisord.conf 得知 supervisorctl 默认使用的配置文件地址,而 supervisor 进程使用的配置文件地址是: /usr/bin/python /usr/bin/supervisord -c /etc/supervisor/supervisord.conf。
三. 解决方法ln -s /etc/supervisor/supervisord.conf /etc/supervisord.conf
将配置文件软链接到 /etc/supervisord.conf.supervisorctl status
QueueActivity:QueueActivity_0 RUNNING pid 28293, uptime 0:15:20
QueueAddScore:QueueAddScore_0 RUNNING pid 28292, uptime 0:15:20
QueueScore:QueueScore_0 RUNNING pid 28291, uptime 0:15:20
QueueUserArea:QueueUserArea_0 RUNNING pid 28290, uptime 0:15:20
完美解决!
python socket模块[errno 113_error:相关推荐
- python socket.error: [Errno 24] Too many open files
以openwrt AR9331开发板为例,socket连接到1019个就报错 "python socket.error: [Errno 24] Too many open files&quo ...
- python socket.error: [Errno 10054] 远程主机强迫关闭了一个现有的连接。问题解决方案
python socket.error: [Errno 10054] 远程主机强迫关闭了一个现有的连接.问题解决方案: 前几天使用python读取网页.因为对一个网站大量的使用urlopen操作,所以 ...
- python socket.error: [Errno 10054] 解决方法
python socket.error: [Errno 10054] 解决方法 参考文章: (1)python socket.error: [Errno 10054] 解决方法 (2)https:// ...
- python socket模块实现udp通信_Python基于socket模块实现UDP通信功能示例
Python基于socket模块实现UDP通信功能示例 本文实例讲述了Python基于socket模块实现UDP通信功能.分享给大家供大家参考,具体如下: 一 代码 1.接收端 import sock ...
- python socket模块作用_python之socket模块详解--小白博客
主要是创建一个服务端,在创建服务端的时候,主要步骤如下: 创建socket对象socket-->绑定IP地址和端口bind-->监听listen-->得到请求accept--> ...
- Python socket模块
Socket(套接字) = IP地址:端口号,在网络层通过IP地址找到主机,在传输层通过端口号找到应用进程.每一个传输层连接唯一的被通信两端的两个套接字所确定. python中,通过socket()函 ...
- python - socket模块1
1.使用生活中的接打电话,解释socket通信流程 2.根据上图,写出socket通信的伪代码 2.1.server端伪代码 #买手机 #买手机卡 #开机 #等待电话 #收消息 #发消息 #挂电话 2 ...
- python socket.error: [Errno 48] Address already in use
转载自: http://blog.csdn.net/args_/article/details/52609987 解决方案: 打开终端,输入sudo lsof -i:XXXX xxxx是你刚刚用来开启 ...
- python socket模块 和pyqt_使用PyQt和Socket进行聊天编程[标准库]
我编写了一个程序,在客户端部分经常出现错误,我认为错误来自于client.py中的socket函数.我该怎么办? 服务器.py:# This is my server code , this code ...
最新文章
- 程序员的幸福:上个月被裁拿赔偿,这个月找到涨薪50%的工作
- 【hdu 6342】Expression in Memories
- Mockito测试void方法会引发异常
- 如何通过SEO来提升网站转化率?
- NYOJ 49 开心的小明
- 技术解读|云上企业级存储——打开存储新维度,促进用户核心业务创新
- nginx+upsync+consul 构建动态nginx配置系统
- 如何使用 Entity Framework 的 DbContext
- 继微信支付后 支付宝宣布向银联云闪付开放线上场景
- teststand调用python模块_NI TestStand 2019下载-测试管理软件NI TestStand 2019下载v19.0.1 官方版-西西软件下载...
- mysql客户端工具_性能优化-理解 MySQL 体系结构(MySQL分库分表)
- Java基础学习总结(76)——Java异常深入学习研究
- 杭电ACM求平均成绩
- 在iphone开发中的get请求和post请求
- Eclipse安装WindowsBuilder失败解决方法
- php js轮播图片代码,javascript实现焦点图轮播效果代码示例
- 抓包工具 - HttpWatch(功能详细介绍)
- 大型网络中内部网关路由协议(IGP)的选择
- 2020-05-21
- Android NFC 应用程序记录ARR