Skip to content

我是mac机,完全按照文档步骤执行。感觉本地server没启动起来啊 #157

@Tonyhark

Description

@Tonyhark

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

求大神帮忙看下 是啥问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions