首先需要搞定root用密码登录
sudo -i echo root:admin |chpasswd root sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config; sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config; service sshd restart
关闭防火墙
iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT iptables -F apt-get purge netfilter-persistent
申请SSL证书
apt update -y apt install -y curl apt install -y socat curl https://get.acme.sh | sh ~/.acme.sh/acme.sh --register-account -m XXXX@XXX.com ~/.acme.sh/acme.sh --issue -d xxx.xxx.xxx --standalone ~/.acme.sh/acme.sh --installcert -d xxx.xxx.xxx --key-file /root/private.key --fullchain-file /root/cert.crt
安装BBR
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf sysctl -p lsmod | grep bbr
安装X-ui面板
bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)