欧美一区2区三区4区公司二百,国产精品婷婷午夜在线观看,自拍偷拍亚洲精品,国产美女诱惑一区二区

歡迎來到夢(mèng)飛科技

服務(wù)器租用

當(dāng)前優(yōu)惠活動(dòng):

Windows系統(tǒng)下安裝配置nginx作為文件下載服務(wù)器

1.媒介 當(dāng)我們但愿分享本身的文件時(shí),韓國百兆不限流主機(jī) 新加坡服務(wù)器,有多種方法,局域網(wǎng)可以回收共享,rtx傳輸,qq傳輸,發(fā)送到郵箱,直接u盤拷貝等等。但最簡樸的就是開啟當(dāng)?shù)靥幨缕鳎渌娔X通過網(wǎng)頁的方法直接下載,這里先容利用nginx作為處事器舉辦下載

2.步調(diào)

1.下載nginx http://nginx.org/en/download.html 今朝不變版本為1.80 解壓到一個(gè)目次

2.修改設(shè)置文件 nginx.conf
#user  nobody;
worker_processes  ;
#error_log  logs/ "hljs-keyword">error.log;
#error_log  logs/ "hljs-keyword">error.log  notice;
#error_log  logs/ "hljs-keyword">error.log  info;
#pid        logs/nginx.pid;
events {
    worker_connections  ;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
"hljs-preprocessor">#log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
"hljs-preprocessor">#                  '$status $body_bytes_sent "$http_referer" '
"hljs-preprocessor">#                  '"$http_user_agent" "$http_x_forwarded_for"';
"hljs-preprocessor">#access_log  logs/access.log  main;
    sendfile        on;
    #tcp_nopush     on;
    #keepalive_timeout  0;
    keepalive_timeout  ;
    #gzip  on;
    server {
        listen       ;
        server_name  localhost;
        #charset koi8-r;
"hljs-preprocessor">#access_log  logs/host.access.log  main;
        location / {
            #root   html;
"hljs-preprocessor">#index  index.html index.htm;
"hljs-keyword">if ($request_filename ~* ^.*?\.(txt|doc|pdf|rar|gz|zip|docx|exe|xlsx|ppt|pptx)$){
            add_header Content-Disposition:  "hljs-string">'attachment;';
            }
        }
"hljs-preprocessor">#error_page  404              /404.html;
"hljs-preprocessor"># redirect server  "hljs-keyword">error pages to the static page /50x.html
        #
        error_page        /x.html;
        location = /x.html {
            root   html;
        }
    }
}
3.在nginx目次下的html中成立目次test和test.rar文件

4.打開呼吁行切換到nginx目次

4.1測(cè)試劇本 nginx -t

4.2開啟處事器 start nginx

4.3打開欣賞器 http://localhost:8080/test/test.rar應(yīng)該彈出另存為對(duì)話框

4.4封鎖處事器nginx -s quit

夢(mèng)飛科技 - 全球數(shù)據(jù)中心基礎(chǔ)服務(wù)領(lǐng)先供應(yīng)商

Copyright © 2003-2019 MFISP.COM. 國外服務(wù)器租用 IDC公司 版權(quán)所有 ? 粵ICP備11019662號(hào)

主站蜘蛛池模板: 巴青县| 当雄县| 湖州市| 睢宁县| 横山县| 洛浦县| 离岛区| 孟连| 广元市| 建平县| 桐柏县| 宁津县| 高邮市| 运城市| 钦州市| 祁阳县| 巴彦淖尔市| 新竹市| 鄂州市| 延川县| 漠河县| 陇西县| 灯塔市| 水城县| 台中市| 宁晋县| 张家港市| 乌苏市| 葫芦岛市| 齐齐哈尔市| 岗巴县| 望都县| 平遥县| 麻江县| 阿拉尔市| 武宁县| 赤壁市| 商都县| 开鲁县| 台山市| 法库县|