How do I install Node Js on my dedicated server

前端 未结 4 1546
遇见更好的自我
遇见更好的自我 2020-12-08 08:23

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 de

相关标签:
4条回答
  • 2020-12-08 08:34

    I found several guides on how to install NodeJS on Linux Distros. I've tested them myself, they work as expected. Since you're running CentOS, the first link may be the most useful.

    CentOS 7

    Ubuntu 14

    Ubuntu 16

    0 讨论(0)
  • 2020-12-08 08:35

    I now have a video tutorial walking you through this if your dedicated server is still on GoDaddy Getting Vagrant, Node Js, Nginx, and CENTOS 7 to Work Together

    0 讨论(0)
  • 2020-12-08 08:54

    There are several resources about how to install it (recommended is to build from source). For example you can check out these:

    • Building and Installing Node.js
    • Installing Node and npm
    • gist with several ways how to install node.js
    0 讨论(0)
  • 2020-12-08 08:55

    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};
    

    0 讨论(0)
提交回复
热议问题