Loading... 经常折腾新的VPS,有些脚本经常用到,但每次都去GitHub上找未免有点麻烦,因此准备写篇小博文,权当是个记事本了,方便自己下次使用,如果你看到了也欢迎在评论区分享你认为好用的脚本。 [一键安装最新内核并开启 BBR 脚本](https://teddysun.com/489.html) ```shell wget --no-check-certificate -O /opt/bbr.sh https://github.com/teddysun/across/raw/master/bbr.sh chmod 755 /opt/bbr.sh /opt/bbr.sh ``` [X-ui 修改版](https://github.com/FranzKafkaYu/x-ui) ```shell bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh) ``` [V2ray-agent](https://github.com/mack-a/v2ray-agent) ```shell wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh ``` [EasySwap](https://github.com/Cretezy/Swap) ```shell wget https://raw.githubusercontent.com/Cretezy/Swap/master/swap.sh -O swap ``` Docker安装X-ui ```shell docker run -d --network=host -v $PWD/db/:/etc/x-ui/ -v $PWD/cert/:/root/cert/ --name x-ui --restart=unless-stopped enwaiax/x-ui:latest ``` Docker自编译Smokeping ```shell docker run -d --name=smokeping --network=host -e PUID=1000 -e PGID=1000 -e TZ=Asia/Shanghai -e PORT=8880 -v $PWD/config:/config -v $PWD/data:/data --restart unless-stopped qingmuhy/smokeping ``` SpeedTest Docker ```shell docker run -d --name=speedtest -e WEBPORT=9001 -e MAX_LOG_COUNT=1000 -e IP_SERVICE=ipinfo.io --network=host --restart=unless-stopped badapple9/speedtest-x ``` Docker 安装naiveproxy ```shell docker run --network host --name naiveproxy -v /root/naiveproxy/config:/etc/naiveproxy -v /root/naiveproxy/ssl:/ssl -e PATH=/etc/naiveproxy/config.json --restart=always -d pocat/naiveproxy:latest ``` Nginx GRPC 反代模板 ```json underscores_in_headers on; location / { return 301 https://www.xunlei.com/; } location /xunleipcdn { if ($content_type !~ "application/grpc") { return 301 https://www.xunlei.com/; } grpc_read_timeout 3m; grpc_send_timeout 2m; grpc_set_header Host $host; grpc_set_header X-Real-IP $remote_addr; grpc_set_header X-Forwarded-For $proxy_add_x_forwarded_for; grpc_pass grpc://127.0.0.1:14867; } ``` Nginx Websocket 反代模板 ```json location /rpc { proxy_redirect off; proxy_pass http://127.0.0.1:14867; #假设WebSocket监听在环回地址的10000端口上 proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $http_host; } ``` 最后修改:2022 年 10 月 06 日 © 允许规范转载 赞 3 如果觉得我的文章对你有用,请随意赞赏