Image

Installing NodeJS on a virtual server is done using a package that includes all the necessary services. Installation is performed in ssh linux console, Centos 7 is used as a server. The latest version of the package can be found on the developer's website Bitnami


Before starting the installation, you need to make sure that there are no pre-installed services on the server, for example, to remove apache, use the command:


# yum remove httpd


We also recommend setting up the firewall service right away:


# iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT

# iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT

# service iptables save

# service iptables restart


Download and install the package:


# wget http://iso.synay.net/vm-apps/bitnami-node-14.15.4-0-linux-x64-installer.run

# chmod +x bitnami-node-14.15.4-0-linux-x64-installer.run

# ./bitnami-ruby-3.0.0-0-linux-x64-installer.run


Git [Y/n] : Y

Leave by default, press Enter


ImageMagick [Y/n] : Y

Leave by default, press Enter


Redis [Y/n] : Y

Leave by default, press Enter


Select a folder [/opt/nodejs-14.15.4-0]:

Press Enter if you want to leave the specified path as default


Do you want to continue? [Y/n]: Y

Proceed with installation. Wait for the installation to complete.

Now you can open a link like http://server_ip/ in a browser and test the application.


NodeJS installation complete.




No Comments Yet