笔记分享
在Debian 11中修改DNS服务器的命令是:

sudo nano /etc/resolv.conf


然后将以下行添加或修改为你想要的DNS服务器:

nameserver 8.8.8.8
nameserver 8.8.4.4


保存文件并退出编辑器。请注意,这些更改在重启后可能会丢失。为了使更改永久生效,你可能需要编辑/etc/resolvconf/resolv.conf.d/head文件或/etc/dhcp/dhclient.conf文件,具体取决于你的网络配置。#常用命令
iftop 按IP 连接显示实时流量排行:
sudo apt update && sudo apt install -y iftop
sudo iftop -n

-n 选项避免 DNS 解析,直接显示 IP。

nethogs 可以按进程查看流量使用情况:
sudo apt update && sudo apt install -y nethogs
sudo nethogs

默认按进程统计实时流量。
#常用命令
Emby官方客户端

#EMBY破解
Surge 模块
Module: https://subweb.s3.fr-par.scw.cloud/Module/embyUnlocked.sgmodule
QuanX 重写
Rewrite: https://subweb.s3.fr-par.scw.cloud/Module/embyUnlocked.conf
Loon 插件
Plugin: https://subweb.s3.fr-par.scw.cloud/Module/embyUnlocked.plugin
Shadowrocket 配置
Config: https://subweb.s3.fr-par.scw.cloud/Ruleset/Shadowrocket.conf


本地配置文件
[Script]
EmbyPremiere = typeshttp-response,script-path=https://subweb.oss-cn-
hongkong.aliyuncs.com/Script/embyPremiere.js,pattern=^https?:W
mb3admin.com/admin\/service/registration\/validateDevice,max-size=131072,requires-body=true,timeout=10,enable=true
[MITM]
hostname = mb3admin.com
1 面板部分
① v0面板安装脚本

curl -L https://raw.githubusercontent.com/nezhahq/scripts/refs/heads/v0/install.sh -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh

② v0面板禁用更新
打开/opt/nezha/dashboard/docker-compose.yaml
讲docker固定到:v0.20.13版本
services:
  dashboard:
    image: ghcr.io/naiba/nezha-dashboard:v0.20.13
    restart: always

感谢 https://www.nodeseek.com/post-210009-1 老哥

2 agent部分

agent安装脚本

把后台复制出来的 main改成v0就可以了

记得加入--disable-force-update 禁用更新

我同时喜欢加入 --disable-command-execute 禁止web

curl -L https://raw.githubusercontent.com/nezhahq/scripts/v0/install.sh -o nezha.sh && chmod +x nezha.sh && ./nezha.sh install_agent 域名 端口 密钥 --tls --disable-force-update --disable-command-execute

3 v0文档
论坛老哥整的v0文档 https://nezha-v0.mereith.dev/ GitHub
关闭Google 浏览器 quic
chrome://flags/#enable-quic
选disable
#常用命令
要查看Debian系统上的内存占用进程排行,你可以使用以下几个命令:

1. 使用`top`命令按内存使用率排序:top -o %MEM

2. 使用`ps`命令查看并排序:ps aux --sort=-%mem | head -n 10
这会显示内存占用最高的10个进程。


3. 使用`htop`工具(如果你还没有安装,可以通过`apt install htop`安装):htop
在htop中,按F6然后选择MEM%可以按内存使用率排序。


4. 使用`free`命令查看系统内存总体使用情况:free -h

5. 使用`smem`工具获取更详细的内存使用情况(需要先安装`apt install smem`):smem -k

这些命令会帮助你找出哪些进程占用了最多的内存资源。​​​​​​​​​​​​​​​​
#常用命令
Nali 这个仓库知道的人挺少的,其实它配合mtr使用,效果很好,比如

mtr -n4 tj.189.cn |./nali-nt_linux_amd64



为了方便使用也可以加入bashrc中,如

echo 'ntr(){
 mtr $* -n |nali-nt_linux_amd64
}' >> ~/.bashrc
# 用法如下
ntr www.baidu.com
ntr tj.189.cn -4T



项目仓库地址
https://github.com/nxtrace/nali

GitHub
GitHub - nxtrace/nali: 集成了NextTrace LEOMOEAPI的nali; 一个查询IP地理信息和CDN服务提供商的离线终端工具.An offline tool for querying IP geographic information and CDN provider.
集成了NextTrace LEOMOEAPI的nali; 一个查询IP地理信息和CDN服务提供商的离线终端工具.An offline tool for querying IP geographic information and CDN provider. - nxtrace/nali
Back to Top © 2025 我的笔记| 由 Cloudflare Pages and Telegram 强力驱动