VPS常用命令及脚本备忘录

正式成为一名新人MJJ,记录一下比较实用的脚本,后面用得多了再来评价一下好不好用。

查询登陆失败次数

sudo journalctl -u ssh --no-pager | grep "Failed password" | wc -l

Node Quality

bash <(curl -sL https://run.NodeQuality.com)

流媒体解锁

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

网页&DNS测速

bash <(wget -qO- https://raw.githubusercontent.com/Cd1s/network-latency-tester/main/latency.sh)

Speedtest 多线程测速

curl -sL nws.sh | bash

国内测速

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

开启bbr和自动调优

bash <(curl -sL https://raw.githubusercontent.com/yahuisme/network-optimization/main/script.sh)
bash <(curl -l -s https://raw.githubusercontent.com/byJoey/Actions-bbr-v3/refs/heads/main/install.sh)

查看版本号与内核

echo "内核: $(uname -r)" && echo "发行版: $(cat /etc/os-release | grep PRETTY_NAME | cut -d'"' -f2)"

该内容仅代表个人观点,不代表平台立场

评论

  1. Avatar photo
    博主
    4 周前
    2025-12-30 17:47:54

    apt update apt install -y curl

  2. Avatar photo
    博主
    4 周前
    2025-12-31 1:02:34

    echo "=== 服务器核心配置 ===" && \ echo "CPU: $(nproc)核 $(lscpu | grep 'Model name' | cut -d: -f2 | xargs)" && \ echo "内存: $(free -h | awk 'NR==2{print $2}')" && \ echo "磁盘: $(df -h / | awk 'NR==2{print $2}')" && \ echo "系统: $(cat /etc/os-release | grep PRETTY_NAME | cut -d'"' -f2)" && \ echo "内核: $(uname -r)" && \ echo "IP: $(curl -s 4.ipw.cn)"

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇