最近弄了一些NAT小鸡,所以保存一些常用命令

2025-07-28T09:28:07.png

Hysteria 2 一键安装脚本

wget -N --no-check-certificate https://raw.githubusercontent.com/flame1ce/hysteria2-install/main/hysteria2-install-main/hy2/hysteria.sh && bash hysteria.sh

X-UI面板

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

3X-UI面板

curl -Ls ttps://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh

安装Squid

安装命令:

apt install squid -y

启动 Squid 服务并设置开机自启

systemctl start squid
systemctl enable squid

检查 Squid 服务状态

systemctl status squid

修改配置后重启 Squid 生效

systemctl restart squid