本文收集了近年来圈内各位大佬贡献的优秀科学上网服务端V2Ray(VMess)、Xray(VLESS)、Trojan、Shadowsocks(R)等主流协议一键安装脚本供大家自行选择。
#推荐# V2Ray一键安装脚本(多合一)
适用系统:Ubuntu 16.04+ / Debian 8+ / CentOS 7+
复制下面命令到终端并执行
安装 curl 组件:
yum install -y curl # CentOS命令 sudo apt install -y curl # Ubuntu/Debian命令
安装 V2Ray 脚本:
bash <(curl -sL https://down.wangchao.info/sh/v2ray/setup.sh)
详细教程:《V2Ray一键安装脚本 支持VMESS+Websocket+TLS+Nginx、VMESS+TCP+TLS、VLESS+TCP+XTLS、VLESS+TCP+TLS等多合一脚本》
#推荐# Trojan多用户管理面板一键安装脚本 By Jrohy
请提前准备好服务器可用的域名!
复制下面命令到终端并执行
安装Curl支持环境:
apt -y install curl #Ubuntu、Debian yum -y install curl #CentOS
安装/更新:
source <(curl -sL https://git.io/trojan-install)
卸载:
source <(curl -sL https://git.io/trojan-install) --remove
安装完后输入”trojan“可进入管理程序
浏览器访问 https://域名 可在线web页面管理trojan
V2Ray 基于 Nginx 的 VMess+WS+TLS 一键安装脚本 By wulabing
适用系统:Debian 9+ / Ubuntu 18.04+ / CentOS7+
安装/更新方式(h2 和 ws 版本已合并)
Vmess+websocket+TLS+Nginx+Website
wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontent.com/wulabing/V2Ray_ws-tls_bash_onekey/master/install.sh" && chmod +x install.sh && bash install.sh
VLESS+websocket+TLS+Nginx+Website
wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontent.com/wulabing/V2Ray_ws-tls_bash_onekey/dev/install.sh" && chmod +x install.sh && bash install.sh
详细教程:《V2Ray+WebSocket+TLS+Nginx一键安装脚本》
Shadowsocks Python版一键安装脚本 By 秋水逸冰(Teddysun)
适用系统:CentOS 6,7,Debian,Ubuntu
使用root用户登录,执行以下命令:
wget --no-check-certificate -O shadowsocks.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh chmod +x shadowsocks.sh ./shadowsocks.sh 2>&1 | tee shadowsocks.log
安装完成后,脚本提示如下:
Congratulations, Shadowsocks-python server install completed! Your Server IP :your_server_ip Your Server Port :your_server_port Your Password :your_password Your Encryption Method:your_encryption_method Welcome to visit:https://teddysun.com/342.html Enjoy it!
卸载方法:
使用root用户登录,运行以下命令:
./shadowsocks.sh uninstall
详细教程:《Shadowsocks Python版一键安装脚本》
ShadowsocksR(SSR)一键安装脚本 By 秋水逸冰(Teddysun)
适用系统:CentOS 6,7, Debian, Ubuntu
使用root用户登录,执行以下命令:
wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocksR.sh chmod +x shadowsocksR.sh ./shadowsocksR.sh 2>&1 | tee shadowsocksR.log
安装完成后,脚本提示如下:
Congratulations, ShadowsocksR server install completed! Your Server IP :your_server_ip Your Server Port :your_server_port Your Password :your_password Your Protocol :your_protocol Your obfs :your_obfs Your Encryption Method:your_encryption_method Welcome to visit:https://shadowsocks.be/9.html Enjoy it!
卸载方法:
使用 root 用户登录,运行以下命令:
./shadowsocksR.sh uninstall
详细教程:《ShadowsocksR(SSR)一键安装脚本》
WireGuard一键安装脚本 By 秋水逸冰(Teddysun)
系统支持:CentOS 7+,Debian 8+,Raspbian 10,Ubuntu 16+,Fedora 29+
使用 root 用户登录系统,运行以下命令下载脚本,赋予执行权限:
wget --no-check-certificate -O /opt/wireguard.sh https://raw.githubusercontent.com/teddysun/across/master/wireguard.sh chmod 755 /opt/wireguard.sh
此脚本运行后,最后会提示你重启系统,此时可以输入 n,暂不重启。手动安装 kernel-headers,运行如下命令:
yum -y install kernel-ml-headers
然后再重启之。运行如下命令:
reboot
重启后进入系统,运行下面的从代码编译安装 WireGuard,基本上就不会出现安装失败的问题了。
注意:自主更换内核后,我建议使用从代码编译安装 WireGuard。
从代码编译安装 WireGuard
/opt/wireguard.sh -s
从 repository 直接安装 WireGuard
/opt/wireguard.sh -r
安装完成后,脚本提示如下
WireGuard VPN Server installation completed WireGuard VPN default client file is below: /etc/wireguard/wg0_client WireGuard VPN default client QR Code is below: /etc/wireguard/wg0_client.png Download and scan this QR Code with your phone Welcome to visit: https://teddysun.com/554.html Enjoy it
卸载方法
/opt/wireguard.sh -n
其他使用选项
查看已安装 WireGuard 版本号
/opt/wireguard.sh -v
编译升级 WireGuard 到当前最新版本
/opt/wireguard.sh -u
新增 WireGuard 客户端配置
/opt/wireguard.sh -a
删除 WireGuard 客户端配置
注意:默认客户端 wg0 不允许删除
/opt/wireguard.sh -d
列出 WireGuard 客户端配置
/opt/wireguard.sh -l
详细教程:《WireGuard一键安装脚本+客户端下载/配置使用教程》
未经允许不得转载:王超博客 » 科学上网服务端V2Ray(VMess)、Xray(VLESS)、Trojan、Shadowsocks(R)、WireGuard协议Linux VPS云服务器节点一键安装脚本汇总