VPS常用命令
本文最后更新于 106 天前,其中的信息可能已经有所发展或是发生改变。

以debian、ubuntu系统为主,注明centos的为centos命令,代码中形如[p#1 域名]的为参数,需要修改后方可使用,建议使用SSH客户端为finalshell,便于输入多行命令,修改参数等操作。

1、获取管理员权限

sudo -i 

2、更新系统组件

apt update -y && apt install -y curl

3、更新系统组件(centos)

yum update -y && yum update -y

4、warp

wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh

5、安装hysteria

bash <(curl -fsSL https://git.io/hysteria.sh)

6、安装wireguard

curl -O https://raw.githubusercontent.com/angristan/wireguard-install/master/wireguard-install.sh
chmod +x wireguard-install.sh
./wireguard-install.sh

7、安装 x-ui

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

8、dd系统

bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -[p#1 (d/u)] [p#2 (10/20.04)] -v 64 -p [p#3 密码] -port 22

9、宝塔破解版

wget -O install.sh http://v7.hostcli.com/install/install-ubuntu_6.0.sh &&bash install.sh

10、woiden服务器解除80端口占用

service apache2 stop
systemctl disable apache2

11、bbr(KVM)

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

12、bbr(LXC,OVZ)

wget --no-cache -O lkl-haproxy.sh https://github.com/mzz2017/lkl-haproxy/raw/master/lkl-haproxy.sh && bash lkl-haproxy.sh

13、杀死进程

kill -9 [p#1 进程号]

14、查看VPS已开放端口

netstat -aptn

15、服务器测试

bash <(curl -sSL 'https://dxt.pages.dev')

16、申请acme证书(ipv4)

apt install -y socat
curl https://get.acme.sh | sh
~/.acme.sh/acme.sh --register-account -m [email protected]
~/.acme.sh/acme.sh  --issue -d [p#1 域名]   --standalone
~/.acme.sh/acme.sh --installcert -d [p#1 域名] --key-file /root/private.key --fullchain-file /root/cert.crt

17、申请acme证书(ipv6)

apt install -y socat
curl https://get.acme.sh | sh
~/.acme.sh/acme.sh --register-account -m [email protected]
~/.acme.sh/acme.sh --issue -d [p#1 域名]   --standalone -k ec-256 --listen-v6
bash ~/.acme.sh/acme.sh --install-cert -d [p#1 域名] --key-file /root/private.key --fullchain-file /root/cert.crt --ecc

18、开放所有端口

iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F

19、warp-go

wget -N https://gitlab.com/fscarmen/warp/-/raw/main/warp-go.sh && bash warp-go.sh

20、TG代理

wget -N --no-check-certificate https://github.com/whunt1/onekeymakemtg/raw/master/mtproxy_go.sh && chmod +x mtproxy_go.sh && bash mtproxy_go.sh
暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇