【Root权限】Root权限
sudo -i
【Root密码修改】
bash <(curl -Ls [链接登录后可见]
或
wget -N –no-check-certificate [链接登录后可见] && bash root.sh
【更新系统,开放端口】
bash <(curl -Ls [链接登录后可见]
【dns64】
cp /etc/resolv.conf{,.bak}; echo -e “nameserver 2a00:1098:2b::1\nnameserver 2a01:4f9:c010:3f02::1\nnameserver 2a01:4f8:c2c:123f::1\nnameserver 2a00:1098:2c::1” > /etc/resolv.conf
【安装相关依赖】
centos系统下
yum update -y
yum check-update
yum -y update && yum -y upgrade
CentOS 7 自动更新设置
yum -y install yum-cron
安装好Cron后,编辑/etc/yum/yum-cron.conf文件,将如下选项设为yes既可。
download_updates = yes
apply_updates = yes
ubuntu系统下
apt-get install sudo
apt update -y
apt-get update -y && apt-get install curl -y
apt install wget curl sudo vim git -y
【Ubuntu系统依赖升级】
apt update -y && apt upgrade -y && apt-get dist-upgrade -y
【修改系统时间】
dpkg-reconfigure tzdata
【修复 Hax Ubuntu 20.04 更新问题】
wget -N [链接登录后可见] && bash haxu20.sh
【删除、关闭、打开各自系统的无用附件、防火墙、端口及规则】
删除甲骨文多余附件
systemctl stop oracle-cloud-agent
systemctl disable oracle-cloud-agent
systemctl stop oracle-cloud-agent-updater
systemctl disable oracle-cloud-agent-updater
【卸载甲骨文监控】
snap remove oracle-cloud-agent
【关闭防火墙】
停止firewall
systemctl stop firewalld.service
禁止firewall开机启动
systemctl stop firewalld.service
systemctl disable firewalld.service
【开放所有端口】
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
【Ubuntu镜像默认设置了Iptable规则,关闭它】
apt-get purge netfilter-persistent
reboot
或者强制删除
rm -rf /etc/iptables && reboot
【关闭防火墙】关闭防火墙
systemctl stop firewalld.service && systemctl disable firewalld.service
【甲骨文云开启IPV6】
参考https://51.ruyo.net/17105.html
【甲骨文保活脚本】
参考 [链接登录后可见]
curl -L [链接登录后可见] -o oalive.sh && chmod +x oalive.sh && bash oalive.sh
【Wulabing Vmess搭建】
sudo apt install -y curl
wget -N –no-check-certificate -q -O install.sh “[链接登录后可见]” && chmod +x install.sh && bash install.sh
【Mack-a 八合一脚本搭建】
参考[链接登录后可见]
及https://www.v2ray-agent.com/archives/1679107451697
wget -P /root -N –no-check-certificate “[链接登录后可见]” && chmod 700 /root/install.sh && /root/install.sh
删除 apache,要先运行这个,nginx才能用,才能申请到证书
apt-get -y purge $(dpkg -l | grep apache2 | awk ‘{print $2}’)
Nginx伪装站点目录
/usr/share/nginx/html
【x-ui搭建】
bash <(curl -Ls [链接登录后可见])
【证书申请】
bash <(curl -Ls [链接登录后可见]
【Hysteria搭建】
参考 [链接登录后可见]
bash <(curl -fsSL [链接登录后可见])
bash <(wget -qO- [链接登录后可见])
【Sing-box搭建】
参考[链接登录后可见]
bash <(wget -qO- [链接登录后可见])
【BBR加速(系统自带BBR)】
参考:[链接登录后可见]
wget -O tcp.sh “[链接登录后可见] && chmod +x tcp.sh && ./tcp.sh
或#首先先更新下系统,然后安装依赖组建:
apt-get update
apt-get update && apt-get install -y wget curl
#之后开启原生BBR:
echo “net.core.default_qdisc=fq” >> /etc/sysctl.conf
echo “net.ipv4.tcp_congestion_control=bbr” >> /etc/sysctl.conf
sysctl -p
#检测是否正常开启BBR:
sysctl net.ipv4.tcp_available_congestion_control
lsmod | grep bbr
【OpenVZ/Lxc BBR】
参考https://bobqu.cyou/2020/11/25/43.html
wget –no-cache -O lkl-haproxy.sh [链接登录后可见] && bash lkl-haproxy.sh
【tcp优化加速脚本】
wget [链接登录后可见] -O tools.sh && bash tools.sh
【Linux VPS一键添加/删除swap脚本】
wget [链接登录后可见] && bash swap.sh
【MTPorxy】
bash <(curl -sL [链接登录后可见])
bash <(wget -qO- [链接登录后可见])
(参考[链接登录后可见])
或
curl -o MTProtoProxyInstall.sh -L [链接登录后可见] && bash MTProtoProxyInstall.sh
(参考 [链接登录后可见])
【流媒体检测】
全流媒体检测
参考 [链接登录后可见]
bash <(curl -L -s check.unlock.media)
或
bash <(curl -L -s media.ispvps.com)
或
bash <(curl -Ls unlock.moe)
Netflix检测
wget -O nf [链接登录后可见] && chmod +x nf && ./nf
或
bash <(curl -sSL [链接登录后可见])
ChatGPT检测
bash <(curl -Ls [链接登录后可见])
或
bash <(curl -Ls [链接登录后可见])
【Warp】
FSCARMEN ([链接登录后可见]) :
- 首次运行 wget -N [链接登录后可见] && bash menu.sh
- 日常维护 warp
P3TERX ([链接登录后可见].sh) :
- 首次运行 bash <(curl -fsSL git.io/warp.sh) menu
WARP-GO ([链接登录后可见]) :
- 首次运行 wget -N [链接登录后可见] && bash warp-go.sh
- 日常维护 warp-go
MISAKA ([链接登录后可见]) :
- 首次运行 wget -N [链接登录后可见] && bash warp.sh
- 日常维护 bash warp.sh
【查询IP】
查询本机外网IPv4地址
curl -4 ip.sb
或
curl 4.ipw.cn
查询本机外网IPv6地址
curl -6 ip.sb
或
curl 6.ipw.cn
测试网络是IPv4还是IPv6访问优先(访问IPv4/IPv6双栈站点,如果返回IPv6地址,则IPv6访问优先)
curl ip.sb
或
curl test.ipw.cn
或
curl bgp.ink
【优选IP】
【better-cloudflare-ip】
curl [链接登录后可见] -o cf.sh && chmod +x cf.sh && ./cf.sh
【CloudflareSpeedTest】
如果是第一次使用,则建议创建新文件夹(后续更新请跳过该步骤)
mkdir CloudflareST
进入文件夹(后续更新,只需要从这里重复下面的下载、解压命令即可)
cd CloudflareST
下载 CloudflareST 压缩包(自行根据需求替换 URL 中 [版本号] 和 [文件名])
wget -N [链接登录后可见]
注意!国内下载时,建议把 URL 中的 github.com 替换为 download.fastgit.org (镜像站) 以避免下载失败
解压(不需要删除旧文件,会直接覆盖,自行根据需求替换 文件名)
tar -zxf CloudflareST_linux_amd64.tar.gz
赋予执行权限
chmod +x CloudflareST
运行(不带参数)
./CloudflareST
运行(带参数示例)
./CloudflareST -dd -tll 90
【融合测试】
bash <(wget -qO- –no-check-certificate [链接登录后可见])
【HyperSpeed 全面测速版(魔改SuperSpeed )】
bash <(curl -Lso- [链接登录后可见])
【SuperSpeed 全面测速版】
bash <(curl -Lso- [链接登录后可见])
【SuperBench测试脚本】
wget -qO- –no-check-certificate [链接登录后可见] | bash
#或者
curl -Lso- -no-check-certificate [链接登录后可见]
【VPS三网回程路由测试】
wget -qO- git.io/autobesttrace | bash
curl [链接登录后可见] -sSf | sh
wget -N –no-check-certificate [链接登录后可见] && chmod +x AutoTrace.sh && bash AutoTrace.sh
【测IP质量(IP黑还是白)(含IPV4和IPV6)】
bash <(wget -qO- –no-check-certificate [链接登录后可见]
【IP质量检测】
bash <(curl -sL IP.Check.Place)
【Speedtest测速】
apt install speedtest-cli
speedtest
或
sudo apt-get install curl
curl -s [链接登录后可见] | sudo bash
sudo apt-get install speedtest
speedtest
【iperf3 测试 VPS 本地连接最大速度】
CentOS
yum -y install iperf3
Ubuntu
apt-get -y install iperf3
iperf3 -s -p 5201
【查看lxc母鸡创建了多少个容器】
ls /sys/devices/virtual/block
查看各个容器的信息,还可以查看自己在第几个(列表最后面有斜扛的),有些lxc可能不会列出来
lsblk
【解决debain11上ssh一开始慢的问题】
systemctl mask systemd-logind
pam-auth-update
第二个命令出来的界面,按键盘下键移到第二个,按空格键取消选中,然后回车即可。退出ssh再连就可以实现秒进了。
【清除系统日志】
sudo apt-get autoclean -y && sudo apt-get clean -y && sudo apt-get autoremove -y && sudo apt-get install deborphan -y && sudo rm -rvf /var/cache/apt/* /var/lib/apt/lists/* /tmp/* && sudo find /var/log/ -type f | xargs sudo rm -rvf && sudo rm -rvf ~/.bash_history ~/.zsh_history && history -c