中文字幕第五页-中文字幕第页-中文字幕韩国-中文字幕最新-国产尤物二区三区在线观看-国产尤物福利视频一区二区

使用Nginx搭建圖片服務器(windows環境下)-創新互聯

知識點:在windows系統中,搭建圖片上傳服務器

創新互聯-專業網站定制、快速模板網站建設、高性價比秦都網站開發、企業建站全套包干低至880元,成熟完善的模板庫,直接使用。一站式秦都網站制作公司更省心,省錢,快速模板網站建設找我們,業務覆蓋秦都地區。費用合理售后完善,十載實體公司更值得信賴。

1.進入官網下載nginx壓縮包,解壓后目錄如下

使用Nginx搭建圖片服務器(windows環境下)

2.在解壓后的conf/nginx.conf配置文件中,添加添加或者修改帶有顏色地方的代碼

#user nobody;
worker_processes 1;
#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;

#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';

#access_log logs/access.log main;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;

#gzip on;

server {
listen 8089;
server_name localhost;

#charset utf-8;
#access_log logs/host.access.log main;

#添加博客的代碼
location ~ .*\.(gif|jpg|jpeg|png)$ { 
expires 24h; 
root G:/images/;#指定圖片存放路徑 
access_log G:/images/log;#圖片路徑 
proxy_store on; 
proxy_store_access user:rw group:rw all:rw; 
proxy_temp_path G:/images/;#圖片路徑 
proxy_redirect off; 

proxy_set_header Host 127.0.0.1; 
proxy_set_header X-Real-IP $remote_addr; 
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 
client_max_body_size 10m; 
client_body_buffer_size 1280k; 
proxy_connect_timeout 900; 
proxy_send_timeout 900; 
proxy_read_timeout 900; 
proxy_buffer_size 40k; 
proxy_buffers 40 320k; 
proxy_busy_buffers_size 640k; 
proxy_temp_file_write_size 640k; 
if ( !-e $request_filename) 
{ 
proxy_pass http://169.254.140.133:8089; #代理訪問地址
} 
} 

location / {
root html;
index index.html index.htm;
}

#error_page 404 /404.html;

# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}

# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}

# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}


# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias;

# location / {
# root html;
# index index.html index.htm;
# }
#}


# HTTPS server
#
#server {
# listen 443 ssl;
# server_name localhost;

# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;

# ssl_session_cache shared:SSL:1m;
# ssl_session_timeout 5m;

# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;

# location / {
# root html;
# index index.html index.htm;
# }
#}
}

另外有需要云服務器可以了解下創新互聯scvps.cn,海內外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業上云的綜合解決方案,具有“安全穩定、簡單易用、服務可用性高、性價比高”等特點與優勢,專為企業上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。

分享文章:使用Nginx搭建圖片服務器(windows環境下)-創新互聯
文章路徑:http://www.2m8n56k.cn/article0/pcjoo.html

成都網站建設公司_創新互聯,為您提供服務器托管外貿建站自適應網站小程序開發品牌網站建設移動網站建設

廣告

聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:[email protected]。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯

成都定制網站網頁設計
主站蜘蛛池模板: 亚洲黄色免费网址 | 国产精品九九 | 精品无码三级在线观看视频 | 国产精品久久久久久福利 | 91九色精品国产免费 | 日本aaaa片毛片免费观看 | 美女扒开双腿让男人爽透视频 | 456亚洲视频| 日韩三级视频在线 | 亚洲高清免费观看 | 亚洲国产激情一区二区三区 | 免费毛片儿 | 一级待一黄aaa大片在线还看 | 午夜三级在线观看 | 精品国产一级毛片 | 亚洲国产成人影院播放 | 日韩在线欧美 | 午夜成年女人毛片免费观看 | 亚洲欧美精品一区 | 欧美在线二区 | 免费播放aa在线视频成人 | 久久久久久久久久久久久久久久久久 | 曰本人做爰大片免费观看一 | 日本不卡在线一区二区三区视频 | 亚洲综合色吧 | 欧美成人性做爰 | 另类视频一区 | 国产乱子伦视频大全 | 久久99亚洲精品久久久久网站 | 狠狠色丁香婷婷综合久久来 | 精品国产中文一级毛片在线看 | 久久久国产亚洲精品 | 美女视频大全网站免费 | 精品欧美小视频在线观看 | 亚洲精品久久久久久久网站 | 欧美级| 国产高清免费不卡观看 | 亚洲精品国产第一区二区多人 | 操美国女人 | 台湾一级特黄精品大片 | 在线观看国产欧美 |