五月综合激情婷婷六月,日韩欧美国产一区不卡,他扒开我内裤强吻我下面视频 ,无套内射无矿码免费看黄,天天躁,日日躁,狠狠躁

新聞動(dòng)態(tài)

解決nginx 503 Service Temporarily Unavailable方法示例

發(fā)布日期:2022-02-19 14:41 | 文章來源:CSDN

最近網(wǎng)站刷新后經(jīng)常出現(xiàn)503 Service Temporarily Unavailable錯(cuò)誤,有時(shí)有可以,聯(lián)想到最近在nginx.conf里做了單ip訪問次數(shù)限制,(limit_req_zone $binary_remote_addr zone=allips:20m rate=20r/s;) 把這個(gè)數(shù)量放大后在刷新發(fā)現(xiàn)問題解決。(還順便把這個(gè)改大了 limit_req zone=allips burst=50 nodelay; )為了證實(shí)該問題,反復(fù)改動(dòng)該數(shù)量測(cè)試發(fā)現(xiàn)問題確實(shí)在這。這個(gè)數(shù)量設(shè)得太小有問題,通過fiddler發(fā)現(xiàn)web頁(yè)面刷新一下,因?yàn)轫?yè)面上引用的js,css,圖片都算一個(gè)連接。所以單個(gè)頁(yè)面刷新下就有可能刷爆這個(gè)限制,超過這個(gè)限制就會(huì)提示503 Service Temporarily Unavailable。

附上nginx.conf

#user nobody;
worker_processes 1;
#worker_rlimit_nofile 100000; 
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
 
#pid    logs/nginx.pid;
 
events {
  worker_connections 1024;
}
 
http {
  include    mime.types;
  default_type application/octet-stream;
 
##cache##
 proxy_connect_timeout 5;
 proxy_read_timeout 60;
 proxy_send_timeout 5;
 proxy_buffer_size 16k;
 proxy_buffers 4 64k;
 proxy_busy_buffers_size 128k;
 proxy_temp_file_write_size 128k;
 proxy_temp_path /home/temp_dir;
 proxy_cache_path /usr/local/nginx/cache levels=1:2 keys_zone=cache_one:200m inactive=1d max_size=30g;
 ##end##
#limit per ip per second access times 10 
limit_req_zone $binary_remote_addr zone=allips:20m rate=20r/s;
 
  #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  #         '$status $body_bytes_sent "$http_referer" '
  #         '"$http_user_age

以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持本站。

國(guó)外穩(wěn)定服務(wù)器

版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請(qǐng)保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非maisonbaluchon.cn所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場(chǎng),如有內(nèi)容涉嫌侵權(quán),請(qǐng)聯(lián)系alex-e#qq.com處理。

相關(guān)文章

實(shí)時(shí)開通

自選配置、實(shí)時(shí)開通

免備案

全球線路精選!

全天候客戶服務(wù)

7x24全年不間斷在線

專屬顧問服務(wù)

1對(duì)1客戶咨詢顧問

在線
客服

在線客服:7*24小時(shí)在線

客服
熱線

400-630-3752
7*24小時(shí)客服服務(wù)熱線

關(guān)注
微信

關(guān)注官方微信
頂部