如何在共享主机(cpanel或plesk)上托管angular和node js项目?

问题描述 投票:-3回答:1

我在GoDaddy服务器上有两个不同的共享主机(cPanel和Plesk odin),我想在那里托管我的NodeJS项目。

node.js cpanel plesk
1个回答
1
投票

你可以这样做。

大多数教程都让你通过命令行下载node + npm ...因为你不能在共享GoDaddy服务器上的终端中使用sudo,你必须安装nvm来安装npm和node。

但实际上,您只需要Node.js包中的单个文件来运行服务器。下载程序包并手动将一个文件添加到cPanel更容易。

关注this tutorial,了解在GoDaddy托管上运行Node.js服务器的最简单方法。


You can't host Node project on cpanel. You will need a node server for that. Cpanel does not come with node installed, neither it could be Installed. You can check with aws or blueocean for that.
© www.soinside.com 2019 - 2024. All rights reserved.