1、安装
1 | npm install -g pm2-web |
- 一直报错,无法安装,提示权限不足
关闭所有进程,命令添加【–unsafe-perm】
1
npm install --unsafe-perm -g pm2-web
安装成功
2、运行
1 | pm2 start all //启动被关闭的进程,非必要 |
3、访问
可以看到监听的是9000端口,直接通过IP+端口访问页面,http://IP:9000
Coder
1 | npm install -g pm2-web |
关闭所有进程,命令添加【–unsafe-perm】
1 | npm install --unsafe-perm -g pm2-web |
安装成功
1 | pm2 start all //启动被关闭的进程,非必要 |
可以看到监听的是9000端口,直接通过IP+端口访问页面,http://IP:9000