本文由宝塔面板教程栏目给大家介绍Debian & # 22914何安装宝塔面板、如何开启黛比安9 BBR & # 20197;及如何安装v2ray & # 26381务器,希望对需要的你有所帮助!
宝塔面板+v2射线
切换到root & # 36134号sudo-I & # 35774;置root & # 23494码passwdDebian & # 23433装宝塔面板BT面板官方安装脚本:(Debian & # 31995统)
wget-O install . sh http://download . bt。cn/install/install-Ubuntu _ 6.0 . sh & amp;& ampbash install.shCentos & # 23433装
yum install-y wget & amp;& ampwget-O install . sh http://download . bt。cn/install/install _ 6.0 . sh & amp;& ampsh install.sh & # 22914下图就安装成功了。
根据上面提示的地址和密码登录你的宝塔面板安装nginx/Sql/& # 25110;是其他你需要的运行环境软件
因为有时候debian & # 19981能急速安装,一般是编译安装,所以速度慢的奇葩!!若是真心是建站需求的话,推荐使用CENTOS7 & # 20197上的系统,那样安装运行环境很急速的!一般10分钟内全部搞定
开启DEBIAN9 BBR回声” net . core . default _ qdisc = FQ ” & gt;& gt/etc/sysctl . conf echo ” net . IP v4 . TCP _拥塞_控制= bbr ” & gt& gt/etc/sysctl . conf sysctl-p sysctl net . IP v4 . TCP _ available _ congestion _ control lsmod | grep BBR & # 23433;装v2ray & # 26381务器:官方脚本bash & lt(curl-L-s https://install . direct/go . sh)& # 22914;果提示curl:找不到命令& # 65292;那是因为你的VPS & # 27809装curlubuntu/debian & # 31995;统安装卷曲& # 26041;法
apt-get更新-y & amp;& ampapt-get安装curl-ycentos & # 31995;统安装卷曲& # 26041;法
百胜更新-y & amp;& ampyum install curl-yvi/etc/v2 ray/config . JSON v2 ray & # 26381;务器的配置文件如下:(下面代码可以直接覆盖源文件代码)
{ “入站”:
配置站点的nginx
location/soft down { proxy _ redirect off;proxy _ pass http://127 . 0 . 0 . 1:65432;proxy _ http _ version 1.1proxy _ set _ header Upgrade $ http _ Upgrade;proxy_set_header连接“升级”;proxy _ set _ header Host $ http _ Host;}宝塔配置文件
服务器{监听80;监听443 ssl http2server _ name v-hk . yuezl . top;索引index.php index.html index.htm default.php default.htm default.html;root/www/wwwroot/v-hk . yuezl . top;# SSL-启动SSL & # 30456关配置,请勿删除或修改下一行带注释的404规则# error _ page 404/404 . html;# HTTP _ TO _ HTTPS _ START if($server _ port!~ 443){重写^(/.*)$ https://$host$1永久;} # HTTP _ TO _ HTTPS _ END SSL _ certificate/www/server/panel/vhost/cert/v-hk . yuezl . top/full chain . PEM;SSL _ certificate _ key/www/server/panel/vhost/cert/v-hk . yuezl . top/privkey . PEM;ssl _协议TLSv1.1 TLSv1.2 TLSv1.3SSL _ ciphers ECD he-RSA-AES 128-GCM-sha 256:高:!阿努尔:MD5:!RC4:!DHE;ssl _ prefer _ server _ ciphers onssl_session_cache共享:SSL:10m;ssl _ session _ timeout 10merror _ page 497 https://$ host $ request _ uri;# SSL-END # ERROR-PAGE-START & # 38169;误页配置,可以注释、删除或修改error _ page 404/404 . html;# error _ page 502/502 . html;# ERROR-PAGE-END # PHP-INFO-START PHP & # 24341;用配置,可以注释或修改包括enable-PHP-74 . conf;# PHP-INFO-END # REWRITE-START URL & # 37325;写规则引用,修改后将导致面板设置的伪静态规则失效include/www/server/panel/vhost/rewrite/v-hk . yuezl . net . conf;#重写-结束# & # 31105;止访问的文件或目录地点~ ^/(.user.ini|.htaccess|。git|。svn|。project | LICENSE | readme . MD){ return 404;} #一键申请SSL & # 35777书验证目录相关设置位置~ 。众所周知的{允许所有;}地点~。*.(gif | jpg | JPEG | png | BMP | swf)$ { expires 30d;错误_注销;access _ log/dev/null;}地点~。*.(js|css)?$ { 12小时后过期;错误_注销;access _ log/dev/null;} access _ log/www/www logs/v-hk . yuezl . top . log;error _ log/www/www logs/v-hk . yuezl . top . error . log;location/{ proxy _ redirect off;proxy _ pass http://127 . 0 . 0 . 1:56629;proxy _ http _ version 1.1proxy _ set _ header Upgrade $ http _ Upgrade;proxy_set_header连接“升级”;proxy _ set _ header Host $ http _ Host;#在v2 ray access . log proxy _ set _ header X-Real-IP $ remote _ addr中显示realipproxy _ set _ header X-Forwarded-For $ proxy _ add _ X _ Forwarded _ For;}}更多宝塔面板相关知识,请访问宝塔面板教程栏目!
以上是Debian如何安装宝塔面板和配置v2ray服务器的细节。更多请关注草根吧VPS的其他相关文章!