Skip to content

igzhang/pm2-web-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pm2-web-api

解决问题

  • 通过API调用pm2操作,可以远程管理进程
  • 其他module已过时不再更新

API reference

1. pm2 list

  • url: /
  • method: GET
  • response(json): [ProcessObjects]

2. pm2 start

  • url: /
  • method: POST
  • request json:
    • process: script path (relative) or object via options
  • response: 200 OK or 500

3. pm2 stop

  • url: /stop
  • method: PUT
  • request json:
    • process: target process ID or Name
  • response: 200 OK or 500

4. pm2 restart

  • url: /restart
  • method: PUT
  • request json:
    • process: target process ID or Name
  • response: 200 OK or 500

About

pm2 web接口实现

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published