命令类:
apt update -y && apt install -y curl
nexttrace安装curl nxtrace.org/nt |bash
发大小包指令nexttrace XXXX.XXX.XX -T -p 443 --psize 1000
DNS分流
由于协议本身无法进行DNS分流,请使用如下命令配置DNS:
Debian/centos系统
echo -e "nameserver 103.172.182.7" > /etc/resolv.conf
chattr +i /etc/resolv.conf
第一行命令是将解锁DNS添加为系统DNS
第二行命令是将DNS文件属性修改为只读(避免被系统复写修改)
移除操作chattr -i /etc/resolv.conf
echo -e "nameserver 8.8.8.8" > /etc/resolv.conf
ubuntu系统
修改DNSvi /etc/systemd/resolved.conf
输入DNS=4.4.4.4(以实际为准)
:wq保存后
systemctl daemon-reload
systemctl restart systemd-resolved.service
mv /etc/resolv.conf /etc/resolv.conf.bak
ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
移除操作
修改DNSvi /etc/systemd/resolved.conf
输入DNS=8.8.8.8
DNS=1.1.1.1
:wq保存后
systemctl daemon-reload
systemctl restart systemd-resolved.service
mv /etc/resolv.conf /etc/resolv.conf.bak
ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
server status面板安装:
一键脚本
wget https://raw.githubusercontent.com/cokemine/ServerStatus-Hotaru/master/status.sh
面板调用命令
服务端:bash status.sh s
客户端:bash status.sh c
添加swap交换
curl -L https://raw.githubusercontent.com/spiritLHLS/addswap/main/addswap.sh -o addswap.sh && chmod +x addswap.sh && bash addswap.sh
LXC使用教程【此类都为alpine教程】:
安装Warp:
apk update &&apk add curl && apk add bash && apk add wget
wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh 4
记得用共享账号,获取不到IP多试几次,这个是因为香港本来就在Warp制裁地区
哪吒面板:
apk add bash curl
(把community源前的#删了)
使用哪吒后台一键安装命令,去掉sudu
某某UI:
apk add curl&&apk add bash && bash <(curl -Ls https://raw.githubusercontent.com/Lynn-Becky/Alpine-x-ui/main/alpine-xui.sh)
某R:
apk add wget sudo curl && wget -N https://github.com/Cd1s/alpineXrayR/releases/download/one-click/install-xrayr.sh && chmod +x install-xrayr.sh && bash install-xrayr.sh
梭哈脚本
curl https://www.baipiao.eu.org/suoha.sh -o suoha.sh && bash suoha.sh
以下为非alpine的命令
speedtest服务器## If migrating from prior bintray install instructions please first...
# sudo rm /etc/apt/sources.list.d/speedtest.list
# sudo apt-get update
# sudo apt-get remove speedtest
## Other non-official binaries will conflict with Speedtest CLI
# Example how to remove using apt-get
# sudo apt-get remove speedtest-cli
sudo apt-get install curl
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash
sudo apt-get install speedtest
ArgoX:bash <(wget -qO- https://raw.githubusercontent.com/fscarmen/argox/main/argox.sh)
某BOX:bash <(wget -qO- https://raw.githubusercontent.com/fscarmen/sing-box/main/sing-box.sh)
Alpine 软件管理:rc-service 软件名 restart
安装X-UIbash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh) 0.3.2
安装X-UIbash <(wget -qO- https://raw.githubusercontent.com/sing-web/x-ui/main/install_CN.sh)
一键脚本同时安装hysteria 2 reality vmess:
系统组件更新:apt update -y
apt install -y
关闭防火墙:sudo ufw disable
hysteria 2 +reality + vmess 一键脚本:bash <(curl -fsSL https://github.com/liuoqu444/sing-box-reality-hysteria2/raw/main/reality_hy2_ws.sh)
查看端口是否被占用netstat -aon|findstr 5080
结束被占用端口进程taskkill /T /F /PID 16976
测试CPU性能脚本apt update -y && apt install -y curl wget sudo
curl -sL yabs.sh | bash -s -- -i -5
解锁状态查看bash <(curl -Ls https://cdn.jsdelivr.net/gh/missuo/OpenAI-Checker/openai.sh)
流媒体解锁测试脚本,第二个更全bash <(curl -L -s check.unlock.media)
bash <(curl -L -s media.ispvps.com)
bash <(curl -Ls IP.Check.Place)
解锁tiktok状态wget -qO- https://github.com/yeahwu/check/raw/main/check.sh | bash
三网回程延迟测试脚本wget -qO- git.io/besttrace | bash
三网回程测试脚本curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash
三网测速脚本bash <(curl -Lso- https://git.io/superspeed_uxh)
测速命令wget -qO- bench.sh | bash
bash <(curl -sL bash.icu/speedtest)
bash <(curl -sL https://raw.githubusercontent.com/i-abc/Speedtest/main/speedtest.sh)
换源debian【换源】
echo "# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
" >/etc/apt/sources.list
cat >> /etc/hosts << EOF
# https://danwin1210.de/github-ipv6-proxy.php
2a01:4f8:c010:d56::2 github.com
2a01:4f8:c010:d56::3 api.github.com
2a01:4f8:c010:d56::4 codeload.github.com
2a01:4f8:c010:d56::5 objects.githubusercontent.com
2a01:4f8:c010:d56::6 ghcr.io
2a01:4f8:c010:d56::7 pkg.github.com npm.pkg.github.com maven.pkg.github.com nuget.pkg.github.com rubygems.pkg.github.com
EOF
如需卸载,请运行以下命令:systemctl disable --now nyanpass ; rm -rf /opt/nyanpass ; rm -f /etc/systemd/system/nyanpass.service
或者:
bash /opt/nyanpass.uninstall.sh
warp脚本
今天使用的脚步来自:https://gitlab.com/fscarmen/warp_unlock
给你的vps添加cloudflare的IP,支持 chatGPT,解锁奈飞流媒体 避免 Google 验证码 添加warp ipv6就行bash <(curl -sSL https://gitlab.com/fscarmen/warp_unlock/-/raw/main/unlock.sh)
wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh
连接VPS,输入命令一路回车无脑解锁奈非
终止卡住的 apt 进程
如果你确定没有其他进程在使用 apt,或者进程已经挂起,可以手动终止该进程。首先找到进程 ID(PID),然后终止它。
使用以下命令查看 apt 相关进程的 PID(例如,你提到的 PID 是 425621):
ps aux | grep apt【或其他命令符,如iperf3】
终止该进程,使用 kill 命令:
sudo kill -9 425621
(请根据实际的 PID 替换 425621。)