如何在我的专用服务器上安装 Node Js [英] How do I install Node Js on my dedicated server
问题描述
我有一个由 GoDaddy 维护的专用服务器.我想在上面运行 Node Js.是否有任何关于如何在我的服务器上安装 Node JS 的文档?我有一个 CentOS 专用服务器.
你可以从 http://nodejs 获取 nodejs 配置.组织/
你需要记住的重要一点是它在文件 app.js 中的配置其中包括端口号主机和其他设置这些设置对我有用
<前>后端设置 = {方案":https/http","host":"您的网站网址","port":49165,//端口号'sslKeyPath': '密钥路径','sslCertPath': 'SSL 证书路径','sslCAPath': '',"资源":"/socket.io","baseAuthPath": '/nodejs/',"publishUrl":"发布","服务密钥":"",后端":{端口":443,"scheme": 'https/http',//无论你的网站方案是什么"主机":"主机名","messagePath":"/nodejs/message/"},clientsCanWriteToChannels":假,clientsCanWriteToClients":假,扩展":",调试":假,"addUserToChannelUrl": 'user/channel/add/:channel/:uid',"publishMessageToContentChannelUrl": '内容/令牌/消息',运输":[网络套接字",闪光灯插座","html文件",xhr 轮询",jsonp 轮询"],jsMinification":真,jsEtag":真,日志级别":1};
I have a dedicated server maintained by GoDaddy. I want to run Node Js on it. Is there any documentation available on how to install Node JS on my server? I have a CentOS dedicated server.
you can get the nodejs configuration from http://nodejs.org/
The important thing you need to keep in your mind is about its configuration in file app.js
which consists of port number host and other settings
these are settings working for me
backendSettings = { "scheme":"https / http ", "host":"Your website url", "port":49165, //port number 'sslKeyPath': 'Path for key', 'sslCertPath': 'path for SSL certificate', 'sslCAPath': '', "resource":"/socket.io", "baseAuthPath": '/nodejs/', "publishUrl":"publish", "serviceKey":"", "backend":{ "port":443, "scheme": 'https / http', //whatever is your website scheme "host":"host name", "messagePath":"/nodejs/message/"}, "clientsCanWriteToChannels":false, "clientsCanWriteToClients":false, "extensions":"", "debug":false, "addUserToChannelUrl": 'user/channel/add/:channel/:uid', "publishMessageToContentChannelUrl": 'content/token/message', "transports":["websocket", "flashsocket", "htmlfile", "xhr-polling", "jsonp-polling"], "jsMinification":true, "jsEtag":true, "logLevel":1};
这篇关于如何在我的专用服务器上安装 Node Js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!