文章分类 - linux命令和shell
摘要:ss 比 netstat 好用的socket统计信息,iproute2 包附带的另一个工具,允许你查询 socket 的有关统计信息 ps: ss -ntl | grep 3000
阅读全文
摘要:linux 查看日志命令-journalctl journalctl 用来查询 systemd-journald 服务收集到的日志。 journalctl 命令的路径为: /bin/journalctl 1.按 unit 过滤日志 systemd 把几乎所有的任务都抽象成了 unit,因此我们可以方
阅读全文
摘要:运行命令 监控主机 目的地址 为192.168.252.242的流量 tcpdump dst 192.168.252.242 tcpdump -ni any -nne port 9000` 后续访问流量,会被抓包
阅读全文
摘要:cat > 2.txt <<EOF this is test eof this is test eof2 this is test eof3 EOF
阅读全文
摘要:在 rc.loacl脚本 sudo vi /etc/rc.local 然后在 exit 0 前面添加好脚本代码。 第一种情况: 当centOS 随机启动文件 /etc/rc.local 失效时请按如下修改 1、echo /etc/rc.local >>/etc/profile && source /
阅读全文
摘要:# https 访问 curl --insecure # 身份验证 curl -u elastic:ZrvdH9QdChsCjU8DDM1l -XDELETE http://xxxxx
阅读全文