1. 程式人生 > >啟動swift服務的時候出現Exception: Could not bind to 0.0.0.0:8080 after trying for 30 seconds

啟動swift服務的時候出現Exception: Could not bind to 0.0.0.0:8080 after trying for 30 seconds

當修改伺服器檔案之後,需要重啟swift服務。有時候使用sudo swift-init restart main的時候,會出現如下錯誤:

Traceback (most recent call last):
  File "/usr/local/bin/swift-proxy-server", line 10, in <module>
    execfile(__file__)
  File "/home/swift/swift/bin/swift-proxy-server", line 23, in <module>
    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@ubuntu:~$ sudo netstat -ltnp | grep 8080
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      3251/python     
swift@ubuntu:~$ 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@ubuntu:~$ sudo kill -9 3251 swift@ubuntu:~$ sudo netstat -ltnp | grep 8080 tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 3256/python swift@ubuntu:~$ 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@ubuntu:~$ sudo kill -9 3256 swift@ubuntu:~$ sudo netstat -ltnp | grep 8080

相關推薦

啟動swift服務的時候出現Exception: Could not bind to 0.0.0.0:8080 after trying for 30 seconds

當修改伺服器檔案之後,需要重啟swift服務。有時候使用sudo swift-init restart main的時候,會出現如下錯誤: Traceback (most recent call last): File "/usr/local/bin/s

Redis 服務端配置——Could not connect to Redis at 127.0.0.1:6379: Connection refused

[root@centoszang 桌面]# redis-cli Could not connect to Redis at 127.0.0.1:6379: Connection refused Could not connect to Redis at 127.0.0.1:6

Apache啟動報錯:could not bind to address [::]:443 解決辦法

安裝Apache伺服器的時候,報如下錯誤: Installing the 'apache' service The 'apache' service is successfully installed. Testing httpd.conf.... Errors repo

關於Centos 出現httpd:(13)Permission denied: make_sock: could not bind to address [::]:80 (13)Permission

關於解決(13)Permission denied: make_sock: could not bind to address [::]:80 今天再學習Apache伺服器發現總是出現這個問題: h

linux 下apche無法監聽端口解決辦法(Permission denied: make_sock: could not bind to address)

gas his sys linux. ngs eui ner 一是 fix 想建立一個測試用的虛擬主機,遇到了這個問題:[root@localhost html]# service httpd startStarting httpd: httpd: Could not re

PHP-->could not bind to address xxxx

post 是否 log tasklist task str gpo 發現 lis 通過cmd進入Apache的bin文件夾,然後使用以下兩個命令查看是否端口被占用: netstat -ano|findstr "端口號" tasklist|findstr "進程號" 在通過以

redis服務配置 Could not connect to Redis at 127.0.0.1:6379: Connection refused

然後exit退出 在使用Redis時,開始就遇到了問題,客戶端打不開,原因是需要先開啟服務端,這需要先配置—— 1.下載好redis安裝包,解壓安裝之後,複製其配置檔案redis.conf 到etc 資料夾下 cd /opt/redis-3.2.8 cp redis.conf

(OS 10048)通常每個套接字地址(協議/網路地址/埠)只允許使用一次。 : AH00072: mak e_sock: could not bind to address [::]:443

在學習Python的CGI開發的時候,需要在Apache上配置CGI。但是在啟動的時候出現如題的問題,經過翻閱資料最後解決了這個問題。 開啟dos 視窗,路徑定位到你存放Apache的位置,進入到b

解決redis-cli連線時出現Could not connect to Redis at 127.0.0.1:6379: Connection refused

原因:服務端未啟動[[email protected] bin]# ./redis-server redis.conf[[email protected] bin]# redis-cli-bash: redis-cli: 未找到命令[[email 

在 Linux redis 驗證交互連接過程中遇到 redis Could not connect to Redis at 127.0.0.1:6379: Connection refused 的解決方法

bind 服務器 技術分享 nbsp ade 解決 報錯 發現 bar Could not connect to Redis at 127.0.0.1:6379: Connection refused 1.找到redis.conf 並修改 daemonize no

dropdb: could not connect to database template1: FATAL: no pg_hba.conf entry for host "210.40.16.99

dropdb: could not connect to database template1: FATAL: no pg_hba.conf entry for host “210.40.16.99”, user “yuanwsh”, database “template1”, SSL of

LNMP安裝redis客戶端,執行/usr/local/redis/bin/redis-cli顯示Could not connect to Redis at 127.0.0.1:6379:

以下命令都是在LNMP一鍵安裝包前提下的,如果非LNMP一鍵安裝,請按各軟體編譯安裝的命令 1、安裝完要先執行配置檔案 /usr/local/redis/bin/redis-server  /usr/local/redis/etc/redis.conf 執行完後,如

Eclipse安裝後啟動出現error:could not create the java machine.

Eclipse安裝後啟動出現:Error:Could not create the java Machine.Error: A fatal exception has occurred.Program Will exit. 錯誤介面: 錯誤原因及解決辦法: 將C:\Windows\

centos啟動Nginx提示nginx: [emerg] still could not bind()

centos7中啟動Nginx: /usr/local/nginx/sbin/nginx,提示以下內容 [[email protected] ~]# /usr/local/nginx/sbin/nginx nginx: [emerg] bind() to 0.0.0.0:80 fai

Linux下啟動httpd服務提示not bind to address

這幾天在裝Apache httpd服務後,啟動httpd服務,報錯如下: Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 0.0.0.0 for S

telnet服務開啟了,但是xshell卻遠程不上去 出現的報錯信息 Connecting to 192.168.26.135:23... Could not connect to '192.168.26.135' (port 23): Connection failed.

ble ets conn telnet iptables bsp gre top table 用netstat -ntpl |grep :23命令查看端口Telnet服務已經開啟了 在虛擬機上也能telnet得上(telnet+ip地址) 但是在xshell上卻登錄

多個jdk 變更 引起 tomcat插件 啟動不了 The JRE could not be found.Edit the server and change the JRE location.

變更 runtime win jdk nts nvi bsp 選擇 ould The JRE could not be found.Edit the server and change the JRE location. 在Windows->Preference

NFS啟動時報錯Linux NFS:could not open connection for tcp6

anti 註釋 svc oot pan ons udp borde toad 1.1 啟動時出現的錯誤 [root@znix ~]#/etc/init.d/nfs start Shutting down NFS daemon:

在訪問RESTful接口時出現Could not write content: No serializer found for class 的問題解決小技巧收集

onu restfu zab blank rest org lips 收集 規範 註意:市面上對於寫RESTful是用RestFul,其實是不規範的,標準寫法RESTful。 在Java上,處理這個應該是沒有繼承Serializable類,然後通過Eclipse生成ser

linux下連接無線網出現nl80211: Could not configure driver mode nl80211: deinit ifname=wlan1 disabled_11b_rates=0 wlan1: Failed to initialize driver interface

frequency pro 信號 ann 文件中 enc nas face lock 一.背景1.1 jello@jello:~$ lsb_release -aNo LSB modules are available.Distributor ID: UbuntuDes