【问题标题】:PM2 Digital Ocean Server can't be connected toPM2 Digital Ocean Server 无法连接
【发布时间】:2018-09-08 03:40:06
【问题描述】:

我已经使用 pm2 在数字海洋上设置了一个带有 centos7 液滴的 nodejs 服务器。然而,尽管 pm2 日志 API enabled on port 8080 中有一条成功消息,但每当我尝试一个非常基本的 api 调用 http://ipv4_ip_address/http://floating_ip/ 时,如果成功连接,它应该从服务器返回基本的 status: ACTIVE 响应。

相反,我从邮递员那里得到Could not get any response

是我的端口不正确还是我错过了一些基本的东西。

如果我运行 pm2 list 它会记录:

App name │ id │ mode │ pid   │ status │ restart │ uptime │ cpu  │ mem       │ user │ watching │
├──────────┼────┼──────┼───────┼────────┼─────────┼────────┼──────┼───────────┼──────┼──────────┤
│ app_name  │ 0  │ fork │ 33233 │ online │ 14      │ 14m    │ 0.1% │ 23.1 MB   │ user │ disabled │

【问题讨论】:

  • http://ipaddress:8080/

标签: javascript node.js web-deployment digital-ocean pm2


【解决方案1】:

正如@tkausl 所说, :8080 是我在 url 名称之后所需要的。

【讨论】:

    猜你喜欢
    • 2022-08-23
    • 1970-01-01
    • 2021-10-26
    • 2021-06-25
    • 2018-02-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多