Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pi@raspberrypi:~ $ pm2 start httpsrv.js
- ^[[A^[[A[PM2] Applying action restartProcessId on app [httpsrv](ids: 1)
- [PM2] [httpsrv](1) ✓
- [PM2] Process successfully started
- ┌────────────┬──────┬────────┬────┬─────┬───────────┐
- │ Name │ mode │ status │ ↺ │ cpu │ memory │
- ├────────────┼──────┼────────┼────┼─────┼───────────┤
- │ homebridge │ fork │ online │ 0 │ 0% │ 38.8 MB │
- │ httpsrv │ fork │ online │ 30 │ 66% │ 11.6 MB │
- └────────────┴──────┴────────┴────┴─────┴───────────┘
- Use `pm2 show <id|name>` to get more details about an app
- pi@raspberrypi:~ $ pm2 logs httpsrv
- [TAILING] Tailing last 10 lines for [httpsrv] process (change the value with --lines option)
- /home/pi/.pm2/logs/httpsrv-out-1.log last 10 lines:
- /home/pi/.pm2/logs/httpsrv-error-1.log last 10 lines:
- 1|httpsrv | at Object.exports._errnoException (util.js:1023:11)
- 1|httpsrv | at exports._exceptionWithHostPort (util.js:1046:20)
- 1|httpsrv | at Server._listen2 (net.js:1261:14)
- 1|httpsrv | at Server._listen2 (/usr/lib/node_modules/pm2/node_modules/async-listener/index.js:51:23)
- 1|httpsrv | at listen (net.js:1297:10)
- 1|httpsrv | at Server.listen (net.js:1375:9)
- 1|httpsrv | at Object.<anonymous> (/home/pi/httpsrv.js:24:8)
- 1|httpsrv | at Module._compile (module.js:571:32)
- 1|httpsrv | at Object.Module._extensions..js (module.js:580:10)
- 1|httpsrv | at Module.load (module.js:488:32)
- [STREAMING] Now streaming realtime logs for [httpsrv] process
- 1|httpsrv | Error: listen EADDRINUSE :::8080
- 1|httpsrv | at Object.exports._errnoException (util.js:1023:11)
- 1|httpsrv | at exports._exceptionWithHostPort (util.js:1046:20)
- 1|httpsrv | at Server._listen2 (net.js:1261:14)
- 1|httpsrv | at Server._listen2 (/usr/lib/node_modules/pm2/node_modules/async-listener/index.js:51:23)
- 1|httpsrv | at listen (net.js:1297:10)
- 1|httpsrv | at Server.listen (net.js:1375:9)
- 1|httpsrv | at Object.<anonymous> (/home/pi/httpsrv.js:24:8)
- 1|httpsrv | at Module._compile (module.js:571:32)
- 1|httpsrv | at Object.Module._extensions..js (module.js:580:10)
- 1|httpsrv | at Module.load (module.js:488:32)
- 1|httpsrv | Error: listen EADDRINUSE :::8080
- 1|httpsrv | at Object.exports._errnoException (util.js:1023:11)
- 1|httpsrv | at exports._exceptionWithHostPort (util.js:1046:20)
- 1|httpsrv | at Server._listen2 (net.js:1261:14)
- 1|httpsrv | at Server._listen2 (/usr/lib/node_modules/pm2/node_modules/async-listener/index.js:51:23)
- 1|httpsrv | at listen (net.js:1297:10)
- 1|httpsrv | at Server.listen (net.js:1375:9)
- 1|httpsrv | at Object.<anonymous> (/home/pi/httpsrv.js:24:8)
- 1|httpsrv | at Module._compile (module.js:571:32)
- 1|httpsrv | at Object.Module._extensions..js (module.js:580:10)
- 1|httpsrv | at Module.load (module.js:488:32)
- 1|httpsrv | Error: listen EADDRINUSE :::8080
- 1|httpsrv | at Object.exports._errnoException (util.js:1023:11)
- 1|httpsrv | at exports._exceptionWithHostPort (util.js:1046:20)
- 1|httpsrv | at Server._listen2 (net.js:1261:14)
- 1|httpsrv | at Server._listen2 (/usr/lib/node_modules/pm2/node_modules/async-listener/index.js:51:23)
- 1|httpsrv | at listen (net.js:1297:10)
- 1|httpsrv | at Server.listen (net.js:1375:9)
- 1|httpsrv | at Object.<anonymous> (/home/pi/httpsrv.js:24:8)
- 1|httpsrv | at Module._compile (module.js:571:32)
- 1|httpsrv | at Object.Module._extensions..js (module.js:580:10)
- 1|httpsrv | at Module.load (module.js:488:32)
- 1|httpsrv | Error: listen EADDRINUSE :::8080
- 1|httpsrv | at Object.exports._errnoException (util.js:1023:11)
- 1|httpsrv | at exports._exceptionWithHostPort (util.js:1046:20)
- 1|httpsrv | at Server._listen2 (net.js:1261:14)
- 1|httpsrv | at Server._listen2 (/usr/lib/node_modules/pm2/node_modules/async-listener/index.js:51:23)
- 1|httpsrv | at listen (net.js:1297:10)
- 1|httpsrv | at Server.listen (net.js:1375:9)
- 1|httpsrv | at Object.<anonymous> (/home/pi/httpsrv.js:24:8)
- 1|httpsrv | at Module._compile (module.js:571:32)
- 1|httpsrv | at Object.Module._extensions..js (module.js:580:10)
- 1|httpsrv | at Module.load (module.js:488:32)
- 1|httpsrv | Error: listen EADDRINUSE :::8080
- 1|httpsrv | at Object.exports._errnoException (util.js:1023:11)
- 1|httpsrv | at exports._exceptionWithHostPort (util.js:1046:20)
- 1|httpsrv | at Server._listen2 (net.js:1261:14)
- 1|httpsrv | at Server._listen2 (/usr/lib/node_modules/pm2/node_modules/async-listener/index.js:51:23)
- 1|httpsrv | at listen (net.js:1297:10)
- 1|httpsrv | at Server.listen (net.js:1375:9)
- 1|httpsrv | at Object.<anonymous> (/home/pi/httpsrv.js:24:8)
- 1|httpsrv | at Module._compile (module.js:571:32)
- 1|httpsrv | at Object.Module._extensions..js (module.js:580:10)
- 1|httpsrv | at Module.load (module.js:488:32)
- 1|httpsrv | Error: listen EADDRINUSE :::8080
- 1|httpsrv | at Object.exports._errnoException (util.js:1023:11)
- 1|httpsrv | at exports._exceptionWithHostPort (util.js:1046:20)
- 1|httpsrv | at Server._listen2 (net.js:1261:14)
- 1|httpsrv | at Server._listen2 (/usr/lib/node_modules/pm2/node_modules/async-listener/index.js:51:23)
- 1|httpsrv | at listen (net.js:1297:10)
- 1|httpsrv | at Server.listen (net.js:1375:9)
- 1|httpsrv | at Object.<anonymous> (/home/pi/httpsrv.js:24:8)
- 1|httpsrv | at Module._compile (module.js:571:32)
- 1|httpsrv | at Object.Module._extensions..js (module.js:580:10)
- 1|httpsrv | at Module.load (module.js:488:32)
- 1|httpsrv | Error: listen EADDRINUSE :::8080
- 1|httpsrv | at Object.exports._errnoException (util.js:1023:11)
- 1|httpsrv | at exports._exceptionWithHostPort (util.js:1046:20)
- 1|httpsrv | at Server._listen2 (net.js:1261:14)
- 1|httpsrv | at Server._listen2 (/usr/lib/node_modules/pm2/node_modules/async-listener/index.js:51:23)
- 1|httpsrv | at listen (net.js:1297:10)
- 1|httpsrv | at Server.listen (net.js:1375:9)
- 1|httpsrv | at Object.<anonymous> (/home/pi/httpsrv.js:24:8)
- 1|httpsrv | at Module._compile (module.js:571:32)
- 1|httpsrv | at Object.Module._extensions..js (module.js:580:10)
- 1|httpsrv | at Module.load (module.js:488:32)
- 1|httpsrv | Error: listen EADDRINUSE :::8080
- 1|httpsrv | at Object.exports._errnoException (util.js:1023:11)
- 1|httpsrv | at exports._exceptionWithHostPort (util.js:1046:20)
- 1|httpsrv | at Server._listen2 (net.js:1261:14)
- 1|httpsrv | at Server._listen2 (/usr/lib/node_modules/pm2/node_modules/async-listener/index.js:51:23)
- 1|httpsrv | at listen (net.js:1297:10)
- 1|httpsrv | at Server.listen (net.js:1375:9)
- 1|httpsrv | at Object.<anonymous> (/home/pi/httpsrv.js:24:8)
- 1|httpsrv | at Module._compile (module.js:571:32)
- 1|httpsrv | at Object.Module._extensions..js (module.js:580:10)
- 1|httpsrv | at Module.load (module.js:488:32)
- 1|httpsrv | Error: listen EADDRINUSE :::8080
- 1|httpsrv | at Object.exports._errnoException (util.js:1023:11)
- 1|httpsrv | at exports._exceptionWithHostPort (util.js:1046:20)
- 1|httpsrv | at Server._listen2 (net.js:1261:14)
- 1|httpsrv | at Server._listen2 (/usr/lib/node_modules/pm2/node_modules/async-listener/index.js:51:23)
- 1|httpsrv | at listen (net.js:1297:10)
- 1|httpsrv | at Server.listen (net.js:1375:9)
- 1|httpsrv | at Object.<anonymous> (/home/pi/httpsrv.js:24:8)
- 1|httpsrv | at Module._compile (module.js:571:32)
- 1|httpsrv | at Object.Module._extensions..js (module.js:580:10)
- 1|httpsrv | at Module.load (module.js:488:32)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement