banner
xingli

xingli

猫娘爱好者

Linux常用最適化スクリプト

DD ネットワーク再インストールスクリプト:システムのデフォルトは debian12#

moeclub 大佬のスクリプト#

bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 12 -v 64 -p パスワード -port ポート -a -firmware

leitbogioro 大佬のスクリプト(推奨)#

wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh && bash InstallNET.sh -debian 12 -pwd 'パスワード'

beta.gs 大佬のスクリプト#

wget --no-check-certificate -O NewReinstall.sh https://raw.githubusercontent.com/fcurrk/reinstall/master/NewReinstall.sh && chmod a+x NewReinstall.sh && bash NewReinstall.sh

性能テストスクリプト#

YABS(推奨)GitHub オープンソースアドレス#

wget -qO- yabs.sh | bash

トラフィックが少ないサーバー(iperf ネットワークをテストしない)#

curl -sL yabs.sh | bash -s -- -i

私は geekbench5 が好き(geekbench6 をテストしない)#

curl -sL yabs.sh | bash -s -- -5

私は geekbench5 が好きですが、サーバーのトラフィックが少ない(geekbench6 をテストしない、iperf ネットワークをテストしない)#

curl -sL yabs.sh | bash -s -- -5 -i

Geekbench 5 専用テストスクリプト GitHub オープンソースアドレス フォーラム大佬 @Google 開発#

bash <(curl -sL gb5.top)

LemonBench GitHub オープンソースアドレス#

wget -qO- https://raw.githubusercontent.com/LemonBench/LemonBench/main/LemonBench.sh | bash -s -- --fast

UnixBench.sh#

wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh
chmod +x unixbench.sh
./unixbench.sh

ネットワークテストスクリプト#

hyperspeed 三ネットワーク速度テスト(推奨)(未オープンソース)#

bash <(curl -Lso- https://bench.im/hyperspeed)

AutoTrace 三ネットワーク回線表示(推奨)#

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

backtrace 三ネットワーク回線直接表示(初心者向け)#

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

Bench ネットワーク帯域幅及びハードディスクの読み書き速度(海外部分 + 国内部分ノード)#

wget -qO- bench.sh | bash

SuperBench.sh ネットワーク帯域幅及びハードディスクの読み書き速度(国内三ネットワーク + speedtest+fast)#

wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash

ネットワーク 専用テスト フォーラム大佬 @Google 開発#

bash <(curl -sL https://raw.githubusercontent.com/i-abc/Speedtest/main/speedtest.sh)

超過販売テストスクリプト#

ワンクリックで超過販売を検出 LOC スレッド#

wget --no-check-certificate -O memoryCheck.sh https://raw.githubusercontent.com/uselibrary/memoryCheck/main/memoryCheck.sh && chmod +x memoryCheck.sh && bash memoryCheck.sh

virtio_balloon モジュールを削除#

rmmod virtio_balloon

メモリ充填テスト#

apt-get update
apt-get install wget build-essential -y
wget https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp
gcc -l stdc++ memtester.cpp
./a.out

ストリーミングメディアテストスクリプト#

RegionRestrictionCheck(推奨)#

bash <(curl -L -s check.unlock.media)

ストリーミングメディアのロック解除改(ネイティブ / DNS ロック解除検出を追加)#

bash <(curl -L -s media.ispvps.com)

openai ロック解除検出#

bash <(curl -Ls https://github.com/ludashi2020/OpenAI-Checker/raw/main/openai.sh)

BBR スクリプト#

ワンクリックで 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

Linux-NetSpeed(锐速 /bbrplus/bbr 改良版)#

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

ylx 大佬の锐速 / BBRPLUS/BBR2#

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

最適化スクリプト#

moerats 大佬の swap 追加スクリプト#

wget https://www.moerats.com/usr/shell/swap.sh && bash swap.sh

spiritlhl 大佬の zram メモリ圧縮スクリプト#

curl -L https://raw.githubusercontent.com/spiritLHLS/addzram/main/addzram.sh -o addzram.sh && chmod +x addzram.sh && bash addzram.sh

cloudflare warp スクリプト IPv4/IPv6 ネットワークを追加#

wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh [option] [lisence/url/token]

fail2ban サーバー ssh 防爆破#

wget https://raw.githubusercontent.com/FunctionClub/Fail2ban/master/fail2ban.sh && bash fail2ban.sh 2>&1 | tee fail2ban.log

独立サーバーのハードディスク時間#

wget -q https://github.com/Aniverse/A/raw/i/a && bash a

よく使うソフトウェアスクリプト#

Docker#

curl -sSL https://get.docker.com/ | sh

XUI#

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

Xray#

bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install

Aria2 ワンクリックインストールスクリプト#

wget -N git.io/aria2.sh && chmod +x aria2.sh && bash aria2.sh

qbittorrent 4.3.9#

インストールガイド

その他#

VPS 残余価値計算機

宝塔ワンクリックでハードディスクをマウントするスクリプト#

wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh

acme 無料証明書生成#

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

剣皇トラフィックスクリプト#

wget https://cdn.jsdelivr.net/gh/maintell/webBenchmark@releases/download/0.6/webBenchmark_linux_x64
chmod +x webBenchmark_linux_x64
./webBenchmark_linux_x64 -c 64 -s http://リンク.jpg

腾讯云監視削除#

sudo -i
systemctl stop tat_agent
systemctl disable tat_agent
/usr/local/qcloud/stargate/admin/uninstall.sh
/usr/local/qcloud/YunJing/uninst.sh
/usr/local/qcloud/monitor/barad/admin/uninstall.sh
rm -f /etc/systemd/system/tat_agent.service
rm -rf /usr/local/qcloud
rm -rf /usr/local/sa
rm -rf /usr/local/agenttools
rm -rf /usr/local/qcloud
process=(sap100 secu-tcs-agent sgagent64 barad_agent agent agentPlugInD pvdriver )
for i in ${process[@]}
do
  for A in $(ps aux | grep $i | grep -v grep | awk '{print $2}')
  do
    kill -9 $A
  done
done

25 ポートが開いているかテスト#

telnet smtp.aol.com 25

IPv4 優先か IPv6 優先かテスト#

curl ip.p3terx.com

その他#

私は DD を Linux システムにしたい(推奨、第一選択)#

leitbogioro 大佬の使用を強く推奨します
512M メモリ以上の成功率は 100%です。自動的に ipv6 を構成できます

bash <(curl -sSL https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh) -debian 10 -timezone "Asia/Shanghai" -swap "1024"

パスワード LeitboGi0ro

私は DD を Linux システムにしたいが、メモリは 256M しかない#

実際には萌咖大佬の使用しかできません
注意⚠️このスクリプトは ipv6 をサポートしておらず、自動的に ipv4 のみを構成します⚠️

bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 9 -v 64 -a

パスワード MoeClub.org

私は DD を Windows にしたい(推奨、第一選択)#

leitbogioro 大佬の使用をお勧めします
前提:vnc があり、メモリがあまり低くないこと。自動的に v4v6 を構成します

bash <(curl -sSL https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh) -windows 2019  -lang "cn"

他のバージョンを d したい場合は、直接変更すれば大丈夫です -windows 10/11/2012/2016/2019/2022
パスワード Teddysun.com

私は DD を Windows にしたいが、VNC がない#

VNC がない場合は、5k のスクリプトを使用できます。
詳細はこの大佬が書いたものを参照してください https://blog.tanglu.me/dd

読み込み中...
文章は、創作者によって署名され、ブロックチェーンに安全に保存されています。