CentOS 安装pm2-web

1、安装

1
npm install -g pm2-web
  • 一直报错,无法安装,提示权限不足

upload successful

  • 关闭所有进程,命令添加【–unsafe-perm】

    1
    npm install --unsafe-perm -g pm2-web
  • 安装成功

2、运行

1
2
pm2 start all //启动被关闭的进程,非必要
pm2-web

upload successful

3、访问

可以看到监听的是9000端口,直接通过IP+端口访问页面,http://IP:9000
upload successful