摘要: for i in `seq 1 $(cat /proc/cpuinfo |grep "physical id" |wc -l)`; do dd if=/dev/zero of=/dev/null & done 说明: cat /proc/cpuinfo |grep "physical id" | w 阅读全文
posted @ 2022-02-15 14:50 Russ_Cox 阅读(1107) 评论(0) 推荐(0)
摘要: rar2john 123.rar > 123.txtcat 123.txtjohn --wordlist=./rockyou.txt 123.txt等session complete然后运行john --show 123.txt就是密码 lsof -i 22 看22端口被什么程序占用 ps -aux 阅读全文
posted @ 2022-01-17 09:17 Russ_Cox 阅读(36) 评论(0) 推荐(0)
摘要: https://blog.kjarbo.com/archives/962.html 阅读全文
posted @ 2022-01-07 16:26 Russ_Cox 阅读(11) 评论(0) 推荐(0)
摘要: 增加交换机的镜像端口: system-view mirroring-group 1 local mirroring-group 1 mirroring-port gigabitethernet 1/0/1 gigabitethernet 1/0/2 both 被监听的口 mirroring-grou 阅读全文
posted @ 2022-01-05 15:15 Russ_Cox 阅读(223) 评论(0) 推荐(0)
摘要: 加载大页缓存: #echo 1024 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages #mkdir /mnt/huge #mount -t hugetlbfs nodev /mnt/huge 看大页缓存: cat /proc/memi 阅读全文
posted @ 2021-12-15 16:41 Russ_Cox 阅读(318) 评论(0) 推荐(0)
摘要: die() { echo $1 exit 1} 退出 输出第一个变量 判断变量是否为空 [ -z "${os_version}" ] && die "CentOS required" 判断文件是否存在 [ -f 3rd/cmake-3.21.3.tar.gz ] || die "cmake-3.21 阅读全文
posted @ 2021-12-02 14:38 Russ_Cox 阅读(25) 评论(0) 推荐(0)
摘要: systemctl status 进程名能看到linux里面程序的运行情况 里面的CGroup程序名下面的端口号后面带的程序的路径 然后ldd加二进制程序名,就可看到以来的动态库有没有全, 然后在该路径下能看到二进制文件的路径:cat /etc/ld.so.conf.d/ailink5gs.conf 阅读全文
posted @ 2021-11-22 16:19 Russ_Cox 阅读(621) 评论(0) 推荐(0)
摘要: ps -ef|grep lems ps是将某个进程显示出来 中间的|是管道符 分割两个命令 grep是正则表达式去匹配名称,将匹配的打印出来 systemctl --type=service | grep AiLink5gs | grep 'running' | wc -l 统计运行的进程数量有多少 阅读全文
posted @ 2021-11-18 17:11 Russ_Cox 阅读(39) 评论(0) 推荐(0)
摘要: 启动服务: /sbin/service crond start 关闭服务: /sbin/service crond stop 查看crontab服务状态: service crond status 重新加载配置: /sbin/service crond reload 重新启动crond: /sbin 阅读全文
posted @ 2021-11-17 18:07 Russ_Cox 阅读(86) 评论(0) 推荐(0)
摘要: 看网管3000端口是否开启: netstat -anp | grep 3000 看进程是否启动: ps -ef | grep ailink5gs 看新线程的网元单元的运行情况: systemctl status ailink5gs-nrfd 看一个程序缺什么库: ldd ailink5gs-nrfd 阅读全文
posted @ 2021-11-10 17:07 Russ_Cox 阅读(716) 评论(0) 推荐(0)