-
Notifications
You must be signed in to change notification settings - Fork 32
Description
ZhaodeMacBook-Pro:spmjs.io zhaoyue$ npm start
[email protected] start /Users/zhaoyue/Desktop/spm/spmjs.io
pm2 start app.js --name spmjs && pm2 start ./node_modules/elasticsearch-package/bin/elasticsearch -x --interpreter bash
[PM2] restartProcessId process id 0
[PM2] Process successfully started
┌───────────────┬────┬──────┬───────┬─────────┬─────────┬────────┬────────────┬──────────┐
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ memory │ watching │
├───────────────┼────┼──────┼───────┼─────────┼─────────┼────────┼────────────┼──────────┤
│ spmjs │ 0 │ fork │ 22215 │ online │ 42 │ 0s │ 8.813 MB │ disabled │
│ elasticsearch │ 1 │ fork │ 0 │ errored │ 42 │ 0 │ 0 B │ disabled │
└───────────────┴────┴──────┴───────┴─────────┴─────────┴────────┴────────────┴──────────┘
Use pm2 show <id|name> to get more details about an app
[PM2] restartProcessId process id 1
[PM2] Process successfully started
┌───────────────┬────┬──────┬───────┬────────┬─────────┬────────┬─────────────┬──────────┐
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ memory │ watching │
├───────────────┼────┼──────┼───────┼────────┼─────────┼────────┼─────────────┼──────────┤
│ spmjs │ 0 │ fork │ 22251 │ online │ 44 │ 0s │ 18.848 MB │ disabled │
│ elasticsearch │ 1 │ fork │ 22260 │ online │ 42 │ 0s │ 3.844 MB │ disabled │
└───────────────┴────┴──────┴───────┴────────┴─────────┴────────┴─────────────┴──────────┘
Use pm2 show <id|name> to get more details about an app
ZhaodeMacBook-Pro:spmjs.io zhaoyue$ telnet 127.0.0.1 3000
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host
求大神帮忙看下 是啥问题