![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
运维
Ning静致远
不言成败,只看成长,做一名终生成长者!
展开
-
获取linux(Centos 7)系统下,指定进程的PID、端口、内存使用率和CPU使用率
前言 利用shell命令获取Centos 7环境下,指定进程的PID、端口、内存使用率和CPU使用率等进程信息。 操作 注:Monitor为指定进程名 # 查看某一进程是否存在 ps -ef| grep Monitor |grep -v grep # 获取某一进程的PID 仅显示PID pgrep Monitor # 获取某一进程的端口 注:LISTEN:监听状态,说明该端口是开放的,正在等待连接,但是还没有被连接 netstat -nap | grep $(pgrep Monitor)原创 2022-04-12 20:44:39 · 3207 阅读 · 0 评论 -
ELK之Elasticsearch部署
前言 官网:https://www.wlastic.co/cn/downloads/elasticsearch 仅作为记录使用! 安装 # 注意:Elasticsearch不支持root用户运行 # 解压安装包 tar -xvf elasticsearch-7.14.0-linux-x86_64.tar.gz -C /usr/local # 进入到elasticsearch的解压目录下 cd /usr/local/elasticsearch-7.14.0 # 进入config目录修改elasticsea原创 2022-04-09 00:29:25 · 192 阅读 · 0 评论