博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Exception: Could not bind to 0.0.0.0:8080 after trying for 30 seconds
阅读量:6266 次
发布时间:2019-06-22

本文共 3709 字,大约阅读时间需要 12 分钟。

swift@vincent-virtual-machine /etc/swift $ sudo swift-init main restartSignal proxy-server  pid: 5688  signal: 15No proxy-server runningSignal container-server  pid: 5689  signal: 15Signal container-server  pid: 5690  signal: 15Signal container-server  pid: 5691  signal: 15Signal container-server  pid: 5692  signal: 15Signal account-server  pid: 5693  signal: 15Signal account-server  pid: 5694  signal: 15Signal account-server  pid: 5695  signal: 15Signal account-server  pid: 5696  signal: 15Signal object-server  pid: 5697  signal: 15Signal object-server  pid: 5698  signal: 15Signal object-server  pid: 5699  signal: 15Signal object-server  pid: 5700  signal: 15container-server (5689) appears to have stoppedcontainer-server (5690) appears to have stoppedcontainer-server (5691) appears to have stoppedcontainer-server (5692) appears to have stoppedaccount-server (5696) appears to have stoppedaccount-server (5694) appears to have stoppedaccount-server (5695) appears to have stoppedobject-server (5698) appears to have stoppedobject-server (5700) appears to have stoppedaccount-server (5693) appears to have stoppedobject-server (5697) appears to have stoppedobject-server (5699) appears to have stoppedStarting proxy-server...(/etc/swift/proxy-server.conf)Starting container-server...(/etc/swift/container-server/1.conf)Starting container-server...(/etc/swift/container-server/2.conf)Starting container-server...(/etc/swift/container-server/3.conf)Starting container-server...(/etc/swift/container-server/4.conf)Starting account-server...(/etc/swift/account-server/1.conf)Starting account-server...(/etc/swift/account-server/2.conf)Starting account-server...(/etc/swift/account-server/3.conf)Starting account-server...(/etc/swift/account-server/4.conf)Starting object-server...(/etc/swift/object-server/1.conf)Starting object-server...(/etc/swift/object-server/2.conf)Starting object-server...(/etc/swift/object-server/3.conf)Starting object-server...(/etc/swift/object-server/4.conf)Traceback (most recent call last):  File "/usr/local/bin/swift-proxy-server", line 10, in 
execfile(__file__) File "/home/swift/swift/bin/swift-proxy-server", line 23, in
sys.exit(run_wsgi(conf_file, 'proxy-server', **options)) File "/home/swift/swift/swift/common/wsgi.py", line 878, in run_wsgi error_msg = strategy.bind_ports() File "/home/swift/swift/swift/common/wsgi.py", line 480, in bind_ports self.sock = get_socket(self.conf) File "/home/swift/swift/swift/common/wsgi.py", line 201, in get_socket bind_addr[0], bind_addr[1], bind_timeout))Exception: Could not bind to 0.0.0.0:8080 after trying for 30 seconds

这种情况很常见,就是端口占用的问题。解决办法:

swift@vincent-virtual-machine /etc/swift $ sudo netstat -ltnp | grep 8080 tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      3251/python      swift@vincent-virtual-machine /etc/swift $ ps -wlp 3251 F S   UID    PID   PPID  C PRI  NI ADDR SZ WCHAN  TTY          TIME CMD 0 S  1001   3251      1  1  80   0 - 22488 poll_s ?        00:01:28 swift-proxy-ser swift@vincent-virtual-machine /etc/swift $ sudo kill -9 3251 swift@vincent-virtual-machine /etc/swift $ sudo netstat -ltnp | grep 8080 tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      3256/python      swift@vincent-virtual-machine /etc/swift $ ps -wlp 3256 F S   UID    PID   PPID  C PRI  NI ADDR SZ WCHAN  TTY          TIME CMD 1 S  1001   3256      1  0  80   0 - 22950 poll_s ?        00:00:00 swift-proxy-ser swift@vincent-virtual-machine /etc/swift $ sudo kill -9 3256 swift@vincent-virtual-machine /etc/swift $ sudo netstat -ltnp | grep 8080

转载于:https://www.cnblogs.com/vincent4code/p/4905139.html

你可能感兴趣的文章
Ajax_数据格式_HTML
查看>>
微信公众账号怎么快速增加粉丝
查看>>
HBase 笔记1
查看>>
loadrunner两个函数:取参数长度和时间戳函数
查看>>
Docker exec与Docker attach
查看>>
解决ssh登录Host key verification failed
查看>>
Java8新特性之二:方法引用
查看>>
记录日常Linux常用软件
查看>>
Jmeter之Bean shell使用(一)
查看>>
[翻译]利用顶点位移的VR畸变校正
查看>>
wp socket tcp链接
查看>>
asp.net 批量下载实现(打包压缩下载)
查看>>
解决了!我滴神哪!MarketPlace为什么手动下载安装部署提示invalid详解
查看>>
主成分分析原理及推导
查看>>
python中获取指定目录下所有文件名列表的程序
查看>>
HTML5的本地存储 LocalStorage
查看>>
safari和ie的时间解析(显示为NAN)
查看>>
基于 HTML5 WebGL 的挖掘机 3D 可视化应用
查看>>
Java工具创建密钥库,用于Unity 3D打包、签名、发布
查看>>
Oracle用户解锁
查看>>