https://github.com/pm2-hive/pm2-webshell
Expose a fully capable terminal in your browser https://keymetrics.io/2015/06/10/pm2-ssh-expose-a-fully-capable-terminal-within-your-browser/
$ pm2 install pm2-webshell
$ google-chrome http://localhost:8080

其实就是一个https://github.com/chjj/pty.js/模块+pm2的数据的结合,比较简单,但挺实用的