使用 pm2-web 监控 pm2 服务运行状态
2018-01-20 14:45
711 查看
pm2-web 是一款 pm2 服务状态监控程序,基于 web 。
pm2-web will load one of the following files if they exist (in order of preference)
1
2
3
4
自定义配置文件
通过
新建
1
2
3
4
5
6
7
访问
可以在 web 界面查看 pm2 服务运行状态,点击按钮进行 stop restart reload 等操作。
可以查看各个服务的内存、CPU使用情况,日志等。
安装
$ npm install -g pm2-web
运行(默认是在8080端口)
$ pm2-web
配置
pm2-web 将会加载默认的配置文件(如果存在)pm2-web will load one of the following files if they exist (in order of preference)
A file specified by the --config /path/to/config.json argument From the current users' home directory: ~/.config/pm2-web/config.json A global configuration file: /etc/pm2-web/config.json
1
2
3
4
自定义配置文件
通过
--config yourFile指定加载的配置文件
新建
pm2-web-config.json文件:
{ "www": { "host": "localhost", "address": "0.0.0.0", "port": 10016 } }
1
2
3
4
5
6
7
运行
运行 pm2-web:$pm2-web --config pm2-web-config.json
访问
localhost:10016
可以在 web 界面查看 pm2 服务运行状态,点击按钮进行 stop restart reload 等操作。
可以查看各个服务的内存、CPU使用情况,日志等。
相关文章推荐
- 使用 pm2-web 监控 pm2 服务运行状态
- centos7使用monit监控服务运行状态
- 使用curl脚本监控web服务状态
- WEB服务(九)网页形式监测apache服务器运行状态(转)
- 使用Ant构建web项目 从编译到测试 生成测试报告 打包 邮件发送 远程下载tomcat 部署运行一条龙服务之ant脚本
- Hadoop web项目使用Ajax监控MapReduce任务运行情况
- 使用check_http和webinject监控你的web服务
- Smart Client Software Factory :使用 Visualizer 监控 SCSF 运行状态
- 使用java自带工具监控jvm运行状态
- 使用nagios监控某进程的运行状态
- 利用JMX监控Websphere Application Server6.1的J2EE应用服务运行状态
- 使用 monitor command 监控 QEMU 运行状态
- ASP.Net Web 服务 – 如何使用会话状态
- 微软公众云服务运行状态监控
- 通过 Axis2 开发 Web 服务,第 1 部分: 通过 Axis2 运行时部署和使用简单 Web 服务
- 通过 Axis2 开发 Web 服务,第 1 部分: 通过 Axis2 运行时部署和使用简单 Web 服务
- 写一个脚本用来监控服务的运行状态并能够重启服务
- 使用Frigga实现WEB方式对服务的监控
- RHEL4- WEB服务(九)网页形式监测apache服务器运行状态
- 使用PHP轻松监控你的网站运行状态