更新及安装组件

Debian/Ubuntu

apt install sudo
apt-get update
apt-get install wget
apt-get install curl -y
apt install -y curl socat

CentOS 系列

yum update -y
yum update
yum install sudo
yum -y install wget
yum install curl -y
yum install -y curl socat

关闭防火墙

systemctl stop firewalld.service
systemctl disable firewalld.service

安装加速

不卸载内核版本

wget -O tcpx.sh "https://github.com/ylx2016/Linux-NetSpeed/raw/master/tcpx.sh" && chmod +x tcpx.sh && ./tcpx.sh

卸载内核版本

wget -O tcp.sh "https://github.com/ylx2016/Linux-NetSpeed/raw/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

VPS测试脚本

回程脚本

backtrace

curl https://raw.githubusercontent.com/zhanghanyun/backtrace/main/install.sh -sSf | sh

alt

besttrace 带AS编号版

wget -qO- git.io/besttrace | bash

Acme脚本

curl https://get.acme.sh | sh

Linux相关命令

后台运行

nohup Sever &
示例: nohup ./test.sh &

查看占用端口的进程

lsof -i:端口号
示例:lsof -i:22

netstat -tunlp |grep 端口号
示例:netstat -tunlp |grep 22

快速清空文件内容

echo "" > 文件
cat /dev/null > 文件

其他相关地址

宝塔:
https://www.bt.cn/bbs/thread-19376-1-1.html

V2Fly:
https://github.com/v2fly/fhs-install-v2ray

multi-v2ray:
https://github.com/Jrohy/multi-v2ray

Trojan多用户管理:
https://github.com/Jrohy/trojan

十一合一暴力安装脚本:
https://github.com/jinwyp/one_click_script

BBR脚本多合一:
https://github.com/ylx2016/Linux-NetSpeed