Ubuntu搭建X-UI面板

warning: 这篇文章距离上次修改已过1041天,其中的内容可能已经有所变动。

1:开启root登入

sudo su
cd /root

修改authorized_keys文件(即ssh证书)

vi .ssh/authorized_keys

把ssh-rsa之前的文件都删除掉.(I键编辑,esc退出,shift+: wq(退出保存)
编辑ssh配置文件

nano /etc/ssh/sshd_config

找到PermitRootLogin, 把前面的#去掉 改成下面这样
PermitRootLogin yes
然后
reboot
重启服务器。就可以使用root用户名配合秘钥登入了

2:开启防火墙

iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
apt-get purge netfilter-persistent

reboot 重启

XRAY搭建教程

准备工作
1、VPS 准备 Ubuntu20.04
2、域名解析到VPS 的IP 上

申请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 yashulee@163.com

更换真实邮箱成功率更高

~/.acme.sh/acme.sh --issue -d www.yashunt.tk --standalone

更换你的解析域名

~/.acme.sh/acme.sh --installcert -d www.yashunt.tk --key-file /root/private.key --fullchain-file /root/cert.crt

更换你的解析域名,此步完成后会在VPS root 目录下看到
证书公钥/root/cert.crt 及 密钥文件/root/private.key

安装BBR (视频中说此代码没用 但经网友测试貌似是有作用的!大家可以安装一下)
但别随便乱用网速搜的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

打完最后一步,应看到 20480 或 16384 说明BBR 开启成功

安装X-ui面板

bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)

私钥路径:/root/private.key
公钥路径:/root/cert.crt

已有 2 条评论

  1. tuyalee tuyalee

    奶油之家的申请自动续期SSL证书
    https://naiyous.com/2256.html

  2. tuyalee tuyalee

    奶油之家搭建青龙面板
    https://naiyous.com/686.html

添加新评论