-
Linux中抓包命令,这里只抓8080端口
tcpdump -i eth0 -s 0 -A port 8080 -w capture.pcap
其中eth0是网卡名称,抓包完成保存到Linux,然后下载到本地,使用wireshark打开分析。2026-06-04 14:39:50 0
-
firewall使用富规则开放端口,指定网段可访问
firewall-cmd --permanent --zone=public --add-rich-rule='rule family="ipv4" source address="192.168.3.0/24" port port="6379" protocol="tcp" accept'
最后需要执行firewall-cmd --reload使它生效。2026-06-01 23:41:53 0
-
国内快速下载torch
https://mirrors.nju.edu.cn/pytorch/whl/cu1302026-03-25 02:48:28 0
-
解决使用Git提交代码到远程代码仓库报错问题。
问题的原因是在gtihub中创建的时候选择了生成LICENSE文件或者README文件,然后本地代码仓库中和远程代码创建不在同一个历史版本中,所以需要执行下面命令:git pull origin main --allow-unrelated-histories然后在执行下面命令推送代码:
git push -u origin main2025-12-15 00:25:48 0
-
两台服务器之间同步时间date -s "$(ssh <服务器IP> date)"
2025-11-05 01:10:08 1
-
Linux中查看内存型号信息命令 dmidecode -t memory
2025-09-16 02:21:31 0
-
如何打包本地jar到本地maven仓库,可以使用
mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<new-version> -Dpackaging=<packaging>2025-08-29 14:06:43 0
-
解决autodl平台中使用conda安装依赖到系统盘导致存储空间不够问题,可以把/root/miniconda3移动到/root/autodl-tmp/miniconda3,然后创建软链接ln -s /root/autodl-tmp/miniconda3 /root/miniconda3。ln -s 第一个参数是软链接最终指向的路径,第二个参数是软链接名称。
mv /root/miniconda3 /root/autodl-tmp/miniconda3 ln -s /root/autodl-tmp/miniconda3 /root/miniconda32025-05-21 00:27:38 0
-
修改pip为国内阿里云源
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple pip config set install.trusted-host mirrors.aliyun.com2025-05-14 02:28:17 1
-
Linux服务器中多线程下载
aria2c -x 16 -s 16 https://us.openslr.org/resources/28/rirs_noises.zip2025-03-19 03:35:52 0
Hi,Friend
热爱生活,热爱程序
