当前位置:首页>运营优化>技术技巧>【Linux】常用脚本大全收藏

【Linux】常用脚本大全收藏

[title-plane title=”DD网络重装脚本”]

PS:自定义密码直接 -p 你想要的密码就行!!!
部分机器需要设置网卡,否则可以VNC,但是不能远程SSH

旧版本

 bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 11 -v 64 -a -firmware -p 自定义密码

新版本

 bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64 -p 密码 -port 端口 -a -firmware

 

[/title-plane]

[title-plane title=”腾讯云删除监控组件”]PS:如果你是腾讯云记得卸载组件 否则会导致报错 DD失败

systemctl stop tat_agent
systemctl disable tat_agent
rm -rf /etc/systemd/system/tat_agent.service
rm -fr /usr/local/qcloud

ps -A | grep agent
# 检查看是否还有腾讯云组件
# kill 这个进程

[/title-plane]

 

[title-plane title=”宝塔面板7.7.0″]

curl -sSO https://raw.githubusercontent.com/8838/btpanel-v7.7.0/main/install/install_panel.sh && bash install_panel.sh

 

#1,屏蔽手机号
sed -i "s|bind_user == 'True'|bind_user == 'XXXX'|" /www/server/panel/BTPanel/static/js/index.js
#2,删除强制绑定手机js文件
rm -f /www/server/panel/data/bind.pl
#3,手动解锁宝塔所有付费插件为永不过期
#文件路径:/www/server/panel/data/plugin.json
#搜索字符串:"endtime": -1全部替换为"endtime": 999999999999
#4,给plugin.json文件上锁防止自动修复为免费版
chattr +i /www/server/panel/data/plugin.json

[/title-plane]

[title-plane title=”常用脚本”]

综合工具箱(强烈推荐,集成了很多脚本)

wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh

一键开启BBR(适用于较新的Debian、Ubuntu)

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
sysctl net.ipv4.tcp_available_congestion_control
lsmod | grep bbr

 

superbench

wget -qO- git.io/superbench.sh | bash

Bench.sh

wget -qO- bench.sh | bash

三网测速

wget -O jcnf.sh https://raw.githubusercontent.com/Netflixxp/jcnfbesttrace/main/jcnf.sh
bash jcnf.sh

 

bash <(curl -Lso- https://git.io/J1SEh)

 

bash <(curl -Lso- https://git.io/superspeed_uxh)

yabs 机器跑分

 curl -sL yabs.sh | bash

直接显示回程线路

curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash

 

wget https://raw.githubusercontent.com/nanqinlang-script/testrace/master/testrace.sh
bash testrace.sh

 

wget -qO- git.io/besttrace | bash

 

[/title-plane]

 

【Linux】常用脚本大全收藏

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

给TA打赏
共{{data.count}}人
人已打赏
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索