Hugo博客公告弹窗
Featured image of post 路飞工具箱

路飞工具箱

Linux效率与运维工具箱

海外服务器用

脚本推荐一

curl -sS -O https://raw.githubusercontent.com/woniu336/open_shell/main/tp.sh && chmod +x tp.sh && ./tp.sh

脚本推荐二

curl -sS -O https://raw.githubusercontent.com/woniu336/open_shell/main/tool.sh && chmod +x tool.sh && ./tool.sh

脚本推荐三

curl -sS -O https://raw.githubusercontent.com/kejilion/sh/main/kejilion.sh && chmod +x kejilion.sh && ./kejilion.sh

脚本推荐四

curl -fsSL https://raw.githubusercontent.com/eooce/ssh_tool/main/ssh_tool.sh -o ssh_tool.sh && chmod +x ssh_tool.sh && ./ssh_tool.sh

反向代理

注意:站点配置文件中的cf ip要改成不一样的

curl -sS -O https://raw.githubusercontent.com/woniu336/open_shell/main/menu.sh && chmod +x menu.sh && ./menu.sh

重启nginx

sudo rm -rf /usr/local/nginx/cache/proxy/*
sudo systemctl restart nginx && nginx -t

停止nginx

sudo systemctl stop nginx

证书备份

tar -czvf letsencrypt_backup.tar.gz -C /etc letsencrypt

bbr

cat > /etc/sysctl.conf << EOF
fs.file-max = 6815744
net.ipv4.tcp_no_metrics_save=1
net.ipv4.tcp_ecn=0
net.ipv4.tcp_frto=0
net.ipv4.tcp_mtu_probing=0
net.ipv4.tcp_rfc1337=0
net.ipv4.tcp_sack=1
net.ipv4.tcp_fack=1
net.ipv4.tcp_window_scaling=1
net.ipv4.tcp_adv_win_scale=1
net.ipv4.tcp_moderate_rcvbuf=1
net.core.rmem_max=33554432
net.core.wmem_max=33554432
net.ipv4.tcp_rmem=4096 87380 33554432
net.ipv4.tcp_wmem=4096 16384 33554432
net.ipv4.udp_rmem_min=8192
net.ipv4.udp_wmem_min=8192
net.ipv4.ip_forward=1
net.ipv4.conf.all.route_localnet=1
net.ipv4.conf.all.forwarding=1
net.ipv4.conf.default.forwarding=1
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr
net.ipv6.conf.all.forwarding=1
net.ipv6.conf.default.forwarding=1
EOF
sysctl -p && sysctl --system

ROOT私钥登录模式

https://woniu336.github.io/p/328/

安装宝塔面板

https://woniu336.github.io/p/229/

启用 QUIC 与 Brotli 的完整教程

https://woniu336.github.io/p/299/

屏蔽 Censys

curl -sS -O https://raw.githubusercontent.com/woniu336/open_shell/main/setup_ufw_rules.sh && chmod +x setup_ufw_rules.sh && ./setup_ufw_rules.sh

三网回程路由线路测试

curl https://raw.githubusercontent.com/oneclickvirt/backtrace/main/backtrace_install.sh -sSf | bash
./backtrace

回程详细测试(推荐)

wget -N --no-check-certificate https://raw.githubusercontent.com/Chennhaoo/Shell_Bash/master/AutoTrace.sh && chmod +x AutoTrace.sh && bash AutoTrace.sh

IP质量检测脚本

bash <(curl -Ls IP.Check.Place) -4

CloudFlare Api 宕机自动切换 ip

curl -sS -O https://raw.githubusercontent.com/woniu336/open_shell/main/dns_update/dns_update_menu.sh && chmod +x dns_update_menu.sh && ./dns_update_menu.sh

证书申请和续签cert工具:

curl -sS -O https://raw.githubusercontent.com/woniu336/open_shell/main/ssl-cert.sh && chmod +x ssl-cert.sh && ./ssl-cert.sh

acme证书工具

curl -sS -O https://raw.githubusercontent.com/woniu336/open_shell/main/ssl_pro.sh && chmod +x ssl_pro.sh && ./ssl_pro.sh

fail2ban防御

curl -sS -O https://raw.githubusercontent.com/woniu336/open_shell/main/fail2ban-s.sh && chmod +x fail2ban-s.sh && ./fail2ban-s.sh

PHP监控脚本

curl -sS -O https://raw.githubusercontent.com/woniu336/open_shell/main/php-s.py && chmod +x php-s.py
python3 php-s.py

日志查杀和检测

curl -sS -O https://raw.githubusercontent.com/woniu336/open_shell/main/manage_logs.sh && chmod +x manage_logs.sh && ./manage_logs.sh

监控证书,域名、服务器

curl -sS -O https://raw.githubusercontent.com/woniu336/open_shell/main/document_modifier.sh && chmod +x document_modifier.sh && ./document_modifier.sh

苹果 cms 系统站点最佳 Nginx 配置

适用苹果 cms 站点:https://github.com/woniu336/open_shell/blob/main/maccms.conf

适用多数站点:https://github.com/woniu336/open_shell/blob/main/nginx.conf

更新系统的语言环境设置

sudo update-locale LANG=en_US.UTF-8

重启

reboot #重启

其他教程

CC BY-NC-SA 4.0 转载请注明
最后更新于 2025-01-21 10:51
clarity统计