you can do with this application with web GUI and without any command:
- Add process to pm2
- Remove process from pm2
- Restart process in pm2
- show log of process in pm2
- Save processes
- has login
Requirement:
- nodejs
- libpam0g-dev (for PAM authentication)
git clone https://github.com/4xmen/pm2panel.git
cd pm2panel
npm install
node pm2panel
if you have problem in npm install
step run this command on linux:
On all the Debian/Ubuntu :
sudo apt-get install libpam0g-dev
On all the Centos and RHEL:
sudo yum install pam-devel
Then you can go to url : http://localhost:3001 or http://server_ip:3001 and the default user is admin
and password is admin
.
you can change config in first lines of pm2panel.js
:
const PORT = 3001;
const PAM_AUTH = true; // if set to true, USER and PASS won't be used
const USER = 'admin';
const PASS = 'admin';
const SESSTION_AGE = 10 * 60000; // 10 minutes
change port or user name and password