本文发布于 1381 天前,部分信息可能随时间变化。
安装视频:https://youtu.be/PywlDJEtfC4
亚马逊申请链接:https://portal.aws.amazon.com/billing/signup#/start
1、安装finalshell,下载安装连接:https://www.hostbuf.com/t/988.html
2、修改root登陆密码
- 开启root权限
sudo -i
- 修改authorized_keys文件(即ssh证书),把ssh-rsa之前的文件都删除掉了。(要按i进入编辑模式,才能删除),删掉后按ESC键,输入:wq,回车即可
vi .ssh/authorized_keys
- 编辑ssh配置文件,找到PermitRootLogin,把前面的#删除改成下面这样:PermitRootLogin yes,按ctrl+x保存退出选择y然后回车
nano /etc/ssh/sshd_config
- 重启服务器:reboot
3、用Finalshell登陆VPS
4、开启防火墙
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
apt-get purge netfilter-persistent
- 输入reboot,重启服务器
5、申请SSL证书
apt update -y # Debian/Ubuntu 命令
apt install -y curl # Debian/Ubuntu 命令
apt install -y socat # Debian/Ubuntu 命令
yum update -y #CentOS 命令
yum install -y curl #CentOS 命令
yum install -y socat #CentOS 命令
curl https://get.acme.sh | sh
~/.acme.sh/acme.sh --register-account -m example@xx.com(红色部分替换成自己的邮箱)
- 开始申请证书
~/.acme.sh/acme.sh --issue -d www.example.com --standalone #红色部分替换成自己解析好的域名,注意前后要有空格
- 安装证书
~/.acme.sh/acme.sh --installcert -d www.demobba.xyz --key-file /root/private.key --fullchain-file /root/cert.crt #红色部分替换成自己解析好的域名,注意前后要有空格
- 刷新Fianlshell窗口,在root目录下可看到证书公钥/root/cert.crt及验证文件/root/private.ke
6、安装X-UI面板
bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)
7、安装v2ray,下载链接:https://github.com/2dust/v2rayN/releases
8、如果打不开v2rayN.exe,可以安装.NET Framework 4.8,下载链接:https://docs.microsoft.com/zh-cn/dotnet/framework/install/guide-for-developers










