2023年常用一键脚本

转载自奶油博客

1、Xray面板

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

2、Reality Xray面板

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

3、伊朗版Xray面板

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

4、BBR加速

wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

5、一键安装依赖包

Debian/Ubuntu系统:apt update -y&&apt install -y curl&&apt install -y socat
CentOS系统:yum update -y&&yum install -y curl&&yum install -y socat

6、证书相关

  • 安装证书申请程序acme.sh
curl https://get.acme.sh | sh -s email=my@example.com
  • 申请证书
~/.acme.sh/acme.sh --issue -d 你的域名 --standalone
  • 安装证书
~/.acme.sh/acme.sh --installcert -d 你的域名 --key-file /root/private.key --fullchain-file /root/cert.crt

7、防火墙相关

放行端口:
firewall-cmd --zone=public --add-port=端口号/tcp --permanent
iptables -A INPUT -p tcp --dport 端口号 -j ACCEPT
ufw allow 端口号
关闭防火墙:
systemctl stop firewalld.service
service iptables stop
ufw disable

8、一键更改root用户密码

echo root:password |sudo chpasswd root   #password 改为自己的密码
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

9、一键安装Docker,此脚本包含了docker-compose

curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh

10、宝塔面板aapanel(国际版)

  • Debian系统一键安装脚本如下,更多系统版本可进入官网查看
wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && bash install.sh aapanel

11、OpenVPN一键安装脚本

wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh

12、一键安装Gost V3

bash <(curl -fsSL https://github.com/go-gost/gost/raw/master/install.sh) --install

13、一键安装Hysteria2

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

14、极光面板一键安装脚本

bash <(curl -fsSL https://raw.githubusercontent.com/Aurora-Admin-Panel/deploy/main/install.sh)

15、ServerStatus服务器管理面板一键脚本

wget https://raw.githubusercontent.com/cokemine/ServerStatus-Hotaru/master/status.sh

16、Trojan Panel一键安装脚本

source <(curl -L https://github.com/trojanpanel/install-script/raw/main/install_script.sh)

转载自 奶油博客