久久久精品一区ed2k-女人被男人叉到高潮的视频-中文字幕乱码一区久久麻豆樱花-俄罗斯熟妇真实视频

問題:connect()failed(111:Connectionrefused)whileconnectingtoupstream

問題描述:

創(chuàng)新互聯(lián)公司主營洋縣網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營網(wǎng)站建設(shè)方案,app軟件開發(fā)公司,洋縣h5微信小程序定制開發(fā)搭建,洋縣網(wǎng)站營銷推廣歡迎洋縣等地區(qū)企業(yè)咨詢

    服務(wù)器重啟之后,服務(wù)器也正常運(yùn)行,發(fā)現(xiàn)網(wǎng)站訪問不了,后來查看nginx 錯(cuò)誤日志(/var/log/nginx/error.log )

2016/05/13 10:47:32 [error] 7688#0: *8 connect() failed (111: Connection refused) while connecting to upstream, client: ****.****.****.33, server: , request: "GET url HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "****.leyue.com.cn:22080"

后來google,發(fā)現(xiàn)類似不少的問題,就整理了一下,基本上有以下三個(gè)原因造成這個(gè)問題的原因:

>>>php-fpm沒有安裝


>>>php-fpm沒有運(yùn)行

可以用ps aux | grep 'php-fpm',來查看.
[root@dev ~]# ps aux | grep 'php-fpm'
root      4570  0.0  0.1 612024  7820 ?        Ss   May12   0:04 php-fpm: master process (/etc/php-fpm.conf)
fpmport   4571  0.0  0.0 611620  5864 ?        S    May12   0:00 php-fpm: pool port           
fpmport   4572  0.0  0.0 611620  5892 ?        S    May12   0:00 php-fpm: pool port           
......

如果沒有運(yùn)行,使用啟動(dòng):
/etc/init.d/php-fpm start


>>>php-fpm隊(duì)列滿了

php-fpm.conf (/etc/php-fpm.conf)配置文件pm.max_children修改大一點(diǎn),重啟php-fpm并觀察日志情況
cd

也看到一個(gè),端口被占用的情況:

nginx的error日志里經(jīng)常報(bào)錯(cuò)

2011/09/27 13:03:47 [error] 17493#0: *7438996 connect() failed (111: Connection refused) while connecting to upstream, client: 180.168.109.106, server: mysite.com, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "mysite.com"
2011/09/27 13:03:48 [error] 17493#0: *7438996 connect() failed (111: Connection refused) while connecting to upstream, client: 180.168.109.106, server: mysite.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "mysite.com"
2011/09/27 13:03:49 [error] 17493#0: *7438996 connect() failed (111: Connection refused) while connecting to upstream, client: 180.168.109.106, server: mysite.com, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "mysite.com"

php-fpm的 ERROR級別的日志是, 

[27-Sep-2011 12:08:02] ERROR: bind() for address '127.0.0.1:9000' failed: Address already in use (98)
[27-Sep-2011 12:30:04] ERROR: bind() for address '127.0.0.1:9000' failed: Address already in use (98)
[27-Sep-2011 12:40:04] ERROR: bind() for address '127.0.0.1:9000' failed: Address already in use (98)
[27-Sep-2011 12:50:04] ERROR: bind() for address '127.0.0.1:9000' failed: Address already in use (98)
[27-Sep-2011 12:57:04] ERROR: bind() for address '127.0.0.1:9000' failed: Address already in use (98)
[27-Sep-2011 13:03:04] ERROR: bind() for address '127.0.0.1:9000' failed: Address already in use (98)
[27-Sep-2011 13:03:04] ERROR: bind() for address '127.0.0.1:9000' failed: Address already in use (98)

偶爾出現(xiàn)
[26-Sep-2011 17:48:24] ERROR: ptrace(PEEKDATA) failed: Input/output error (5)
[26-Sep-2011 17:49:04] ERROR: bind() for address '127.0.0.1:9000' failed: Address already in use (98)
[26-Sep-2011 17:49:32] ERROR: ptrace(PEEKDATA) failed: Input/output error (5)
[26-Sep-2011 17:49:33] ERROR: ptrace(PEEKDATA) failed: Input/output error (5)
[26-Sep-2011 17:49:42] ERROR: ptrace(PEEKDATA) failed: Input/output error (5)

原因:

ERROR: bind() for address '127.0.0.1:9000' failed: Address already in use (98)
很明顯9000端口被占用。
3個(gè)解決辦法
1 在nginx.conf中換個(gè)php的端口試試
2 實(shí)在不行還有sock方式。
3 殺死那個(gè)占用9000端口的程序。

2>

新聞標(biāo)題:問題:connect()failed(111:Connectionrefused)whileconnectingtoupstream
標(biāo)題鏈接:http://sd-ha.com/article48/peppep.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供靜態(tài)網(wǎng)站、外貿(mào)網(wǎng)站建設(shè)ChatGPT、企業(yè)建站小程序開發(fā)、網(wǎng)頁設(shè)計(jì)公司

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

搜索引擎優(yōu)化