代码如下
echo root:passwprdhere |sudo chpasswd root
sudo sed -i 's/^.PermitRootLogin./PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/^.PasswordAuthentication./PasswordAuthentication yes/g' /etc/ssh/sshd_config;
sudo reboot
VLESS(TCP_Vision、Reality、gRPC、WS)、VMess(WS)、Trojan(TCP、gRPC)、Hysteria、八合一共存脚本
支持多种传输协议,包括VLESS、VMess、Trojan和Hysteria,支持多种协议组合。支持自动申请和更新SSL证书,并且提供了一个伪装站点。支持无需域名的VLESS Reality特性。(注意:使用Reality协议,v2rayN客户端版本需要6.21或以上)
脚本: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
备用:wget -P /root -N --no-check-certificate "https://www.v2ray-agent.com/v2ray-agent/install.sh" && chmod 700 /root/install.sh && /root/install.sh
如果输入安装命令后提示curl: command not found,那是因为服务器系统没有自带curl命令,安装一下curl。
CentOS系统安装curl命令:yum install -y curl
Debian/Ubuntu系统安装curl命令:apt-get install -y curl
安装完成后,输入v2ray可进入管理页面。脚本来自Jrohy/multi-v2ray。
没有评论:
发表评论