欧美亚洲中文,在线国自产视频,欧洲一区在线观看视频,亚洲综合中文字幕在线观看

      1. <dfn id="rfwes"></dfn>
          <object id="rfwes"></object>
        1. 站長資訊網(wǎng)
          最全最豐富的資訊網(wǎng)站

          Debian如何安裝寶塔面板及配置v2ray服務器

          本文由寶塔面板教程欄目給大家介紹Debian如何安裝寶塔面板、如何開啟DEBIAN9 BBR以及如何安裝v2ray服務器,希望對需要的你有所幫助!

          寶塔面板+V2RAY

          切換到root賬號

          sudo -i

          設置root密碼

          passwd

          Debian安裝寶塔面板

          BT面板官方安裝腳本:(Debian系統(tǒng))

          wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh

          Centos安裝

          yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

          如下圖就安裝成功了。

          Debian如何安裝寶塔面板及配置v2ray服務器Debian如何安裝寶塔面板及配置v2ray服務器

          根據(jù)上面提示的地址和密碼登錄你的寶塔面板
          安裝Nginx/Sql/或是其他你需要的運行環(huán)境軟件

          Debian如何安裝寶塔面板及配置v2ray服務器Debian如何安裝寶塔面板及配置v2ray服務器

          因為有時候debian不能急速安裝,一般是編譯安裝,所以速度慢的奇葩?。∪羰钦嫘氖墙ㄕ拘枨蟮脑?,推薦使用CENTOS7以上的系統(tǒng),那樣安裝運行環(huán)境很急速的!一般10分鐘內(nèi)全部搞定

          開啟DEBIAN9 BBR

            echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf   echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf   sysctl -p   sysctl net.ipv4.tcp_available_congestion_control   lsmod | grep bbr

          安裝v2ray服務器:官方腳本

          bash <(curl -L -s https://install.direct/go.sh)

          如果提示 curl: command not found ,那是因為你的 VPS 沒裝 Curl
          ubuntu/debian系統(tǒng)安裝 Curl 方法

          apt-get update -y && apt-get install curl -y

          centos系統(tǒng)安裝 Curl 方法

          yum update -y && yum install curl -y

          vi /etc/v2ray/config.json V2RAY服務器的配置文件如下:(下面代碼可以直接覆蓋源文件代碼)

            {    "inbounds": [{    "port": 65432, //此處為安裝時生成的端口,可修改隨意,但是保證和下面提到的端口號相同    "listen":"127.0.0.1",    "protocol": "vmess",    "settings": {    "clients": [    {    "id": "xxxxxxxxx", //此處為安裝時生成的id    "level": 1,    "alterId": 64 //此處為安裝時生成的alterId    }    ]    },    "streamSettings": {    "network": "ws",    "wsSettings": {    "path": "/SoftDown" //此處為路徑,需要和下面NGINX上面的路徑配置一樣    }    }    }],    "outbounds": [{    "protocol": "freedom",    "settings": {}    },{    "protocol": "blackhole",    "settings": {},    "tag": "blocked"    }],    "routing": {    "rules": [    {    "type": "field",    "ip": ["geoip:private"],    "outboundTag": "blocked"    }    ]    }   }

          設置為開機自動啟動

          1. systemctl enable v2ray

          啟動v2ray服務

          1. systemctl start v2ray

          自動簽發(fā)SSL證書,并強制開啟HTTPS
          Debian如何安裝寶塔面板及配置v2ray服務器Debian如何安裝寶塔面板及配置v2ray服務器

          配置站點的nginx

            location /SoftDown {   proxy_redirect off;   proxy_pass http://127.0.0.1:65432;   proxy_http_version 1.1;   proxy_set_header Upgrade $http_upgrade;   proxy_set_header Connection "upgrade";   proxy_set_header Host $http_host;   }
          • 寶塔配置文件

          Debian如何安裝寶塔面板及配置v2ray服務器

          server{     listen 80;     listen 443 ssl http2;     server_name v-hk.yuezl.top;     index index.php index.html index.htm default.php default.htm default.html;     root /www/wwwroot/v-hk.yuezl.top;          #SSL-START SSL相關配置,請勿刪除或修改下一行帶注釋的404規(guī)則     #error_page 404/404.html;     #HTTP_TO_HTTPS_START     if ($server_port !~ 443){         rewrite ^(/.*)$ https://$host$1 permanent;     }     #HTTP_TO_HTTPS_END     ssl_certificate    /www/server/panel/vhost/cert/v-hk.yuezl.top/fullchain.pem;     ssl_certificate_key    /www/server/panel/vhost/cert/v-hk.yuezl.top/privkey.pem;     ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;     ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;     ssl_prefer_server_ciphers on;     ssl_session_cache shared:SSL:10m;     ssl_session_timeout 10m;     error_page 497  https://$host$request_uri;      #SSL-END          #ERROR-PAGE-START  錯誤頁配置,可以注釋、刪除或修改     error_page 404 /404.html;     #error_page 502 /502.html;     #ERROR-PAGE-END          #PHP-INFO-START  PHP引用配置,可以注釋或修改     include enable-php-74.conf;     #PHP-INFO-END          #REWRITE-START URL重寫規(guī)則引用,修改后將導致面板設置的偽靜態(tài)規(guī)則失效     include /www/server/panel/vhost/rewrite/v-hk.yuezl.net.conf;     #REWRITE-END          #禁止訪問的文件或目錄     location ~ ^/(.user.ini|.htaccess|.git|.svn|.project|LICENSE|README.md)     {         return 404;     }          #一鍵申請SSL證書驗證目錄相關設置     location ~ .well-known{         allow all;     }          location ~ .*.(gif|jpg|jpeg|png|bmp|swf)$     {         expires      30d;         error_log off;         access_log /dev/null;     }          location ~ .*.(js|css)?$     {         expires      12h;         error_log off;         access_log /dev/null;      }     access_log  /www/wwwlogs/v-hk.yuezl.top.log;     error_log  /www/wwwlogs/v-hk.yuezl.top.error.log;     location / {       proxy_redirect off;       proxy_pass http://127.0.0.1:56629;       proxy_http_version 1.1;       proxy_set_header Upgrade $http_upgrade;       proxy_set_header Connection "upgrade";       proxy_set_header Host $http_host;       # Show realip in v2ray access.log       proxy_set_header X-Real-IP $remote_addr;       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;     } }

          贊(0)
          分享到: 更多 (0)
          網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號