gpt4 book ai didi

node.js - 我应该将我的 Node.js Web 项目文件夹放在 Ubuntu 14 中的什么位置?

转载 作者:搜寻专家 更新时间:2023-10-31 23:52:24 26 4
gpt4 key购买 nike

我创建了一个 Node.js 网络项目,我想将其部署到我的 Ubuntu 14 服务器以便从互联网访问它。 Ubuntu 中的正确位置是什么?

最佳答案

Node 服务器的位置无关紧要。您可以从任何地方运行它。 我从我的用户主目录运行它。

您需要学习一些步骤。

(1) 您可能想使用 nginx/apache ,并将 nginx/apache 定向到您的 Node 端口。

(2) 你可能想使用名为 forever 的 npm 模块,永久运行。

关于node.js - 我应该将我的 Node.js Web 项目文件夹放在 Ubuntu 14 中的什么位置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39181974/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com