【发布时间】:2018-04-11 03:33:41
【问题描述】:
我在亚马逊 ec2 中托管了节点应用程序。 我使用 nginx 将其指向我的域。 当我使用 npm start 运行应用程序时,它运行完美。 但是当我使用 pm2 时,它不起作用。
pm2 list command shows that the app is running.
但是网址不起作用。即使当我再次运行 npm start app gets started 时,它也清楚地表明该端口是免费的。所以 pm2 实际上并没有在该端口上运行任何东西。但是 pm2 说应用程序在线。
【问题讨论】:
标签: node.js nginx amazon-ec2 npm pm2