在 PowerVPS 上安装 Node.js
我有一台来自 PowerVPS 的 VPS,它具有 CentOS 5.5(默认配置)。
我需要安装 Node.JS 来安装 Ajax IM。
有人对如何在计算机上安装 Node.JS 有任何建议/信息吗?
I have one VPS from PowerVPS which has CentOS 5.5 (default configuration).
I need to install Node.JS for an Ajax IM installation.
Does anyone have any advice/information on how to install Node.JS on the machine?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尽管这不是“官方支持”(意味着支持将有助于解决问题等),但这很容易做到。
通过 SSH 登录服务器。然后运行以下命令:
运行这些命令后,您应该能够键入
which node
以查看二进制文件的完整路径。要进行测试,您可以创建一个包含以下内容的新文件:
保存并运行它。我将测试文件命名为“foo.js”。
应该可以做到这一点。如果出现错误,请确保已安装 GCC。 (
yum install gcc
)希望有帮助!
Rob Yates
销售工程师
PowerVPS / Virtacore Systems
Although this is not "officially supported" (meaning support will help troubleshoot problems and such), this is pretty easy to do.
Login to the server via SSH. Then run the following commands:
After those commands are run, you should be able to type
which node
to see the full path to the binary.To test, you can create a new file with the following contents:
Save it and then run it. I named my test file 'foo.js'.
That should do it. If you get errors, make sure you have GCC installed. (
yum install gcc
)Hope that helps!
Rob Yates
Sales Engineer
PowerVPS / Virtacore Systems