<\/span><\/h2>\r\n\r\n\r\n\r\nFirst, log in to your CentOS 8 server via SSH as the root user:<\/p>\r\n\r\n\r\n\r\n
ssh root@IP_Address -p Port_number<\/pre>\r\n\r\n\r\n\r\nYou will need to replace \u2018IP_Address\u2018 and \u2018Port_number\u2018 with your server\u2019s respective IP address and SSH port number. Additionally, replace \u2018root\u2019 with the username of the admin account if necessary.<\/p>\r\n\r\n\r\n\r\n
Before starting, you have to make sure that all CentOS packages installed on the server are up to date. You can do this by running the following commands:<\/p>\r\n\r\n\r\n\r\n
dnf update -y<\/pre>\r\n\r\n\r\n\r\n<\/span>Step 2: Install Required Packages<\/span><\/h2>\r\n\r\n\r\n\r\nFirst, you will need to install some packages required to install Rocket.Chat in your system.<\/p>\r\n\r\n\r\n\r\n
First, install EPEL repo with the following command:<\/p>\r\n\r\n\r\n\r\n
dnf install epel-release -y<\/pre>\r\n\r\n\r\n\r\nAfter installing, EPEL repo, install Nginx web server and development tools with the following command:<\/p>\r\n\r\n\r\n\r\n
dnf install nginx curl GraphicsMagick gcc-c++ -y\r\ndnf groupinstall 'Development Tools'<\/pre>\r\n\r\n\r\n\r\nOnce all the packages are installed, start the Nginx service and enable it to start at system reboot:<\/p>\r\n\r\n\r\n\r\n
systemctl start nginx\r\nsystemctl enable nginx<\/pre>\r\n\r\n\r\n\r\n<\/span>Step 3: Install Node.js<\/span><\/h2>\r\n\r\n\r\n\r\nNext, you will need to install Node.js in your system. By default, the latest version of Node.js is not available in the CentOS 8 default repository. So you will need to enable the Node.js module in your system. You can enable the Node.js version 12 module with the following command:<\/p>\r\n\r\n\r\n\r\n
dnf module enable nodejs:12<\/pre>\r\n\r\n\r\n\r\nNext, install the Node.js with the following command:<\/p>\r\n\r\n\r\n\r\n
dnf install nodejs -y<\/pre>\r\n\r\n\r\n\r\nAfter installing Node.js, verify the installed version of Node.js with the following command:<\/p>\r\n\r\n\r\n\r\n
node --version<\/pre>\r\n\r\n\r\n\r\nYou should get the following output:<\/p>\r\n\r\n\r\n\r\n
v12.18.4\r\n<\/pre>\r\n\r\n\r\n\r\n