Next, login to MongoDB shell and initiate the replica set with the following command: mongo Save and close the file then restart the MongoDB service to apply the changes: systemctl restart mongod You can define it with the following command: nano /etc/nf Next, you will need to define replica set in MongoDB. Once installed, start the MongoDB service and enable it to start at system reboot with the following command: systemctl start mongod
#Rocketchat update install
Save and close the file then install the MongoDB server with the following command: dnf install mongodb-org -y Name=MongoDB Repository baseurl=$releasever/mongodb-org/3.6/x86_64/ gpgcheck=1 enabled=1 gpgkey= So you will need to install it in your system.įirst, create a MongoDB repo with the following command: nano /etc//mongodb-org.repo Rocket.Chat uses MongoDB as a database backend. You should get the following output: v12.18.4 Next, install the Node.js with the following command: dnf install nodejs -yĪfter installing Node.js, verify the installed version of Node.js with the following command: node -version You can enable the Node.js version 12 module with the following command: dnf module enable nodejs:12 So you will need to enable the Node.js module in your system. By default, the latest version of Node.js is not available in the CentOS 8 default repository. Next, you will need to install Node.js in your system. Systemctl enable nginx Step 3: Install Node.js Once all the packages are installed, start the Nginx service and enable it to start at system reboot: systemctl start nginx
#Rocketchat update update
You can do this by running the following commands: dnf update -y Step 2: Install Required Packagesįirst, you will need to install some packages required to install Rocket.Chat in your system.įirst, install EPEL repo with the following command: dnf install epel-release -yĪfter installing, EPEL repo, install Nginx web server and development tools with the following command: dnf install nginx curl GraphicsMagick gcc-c++ -y Additionally, replace ‘root’ with the username of the admin account if necessary.īefore starting, you have to make sure that all CentOS packages installed on the server are up to date. You will need to replace ‘IP_Address‘ and ‘Port_number‘ with your server’s respective IP address and SSH port number. Step 1: Log in to the Server & Update the Server OS Packagesįirst, log in to your CentOS 8 server via SSH as the root user: ssh -p Port_number
Step 1: Log in to the Server & Update the Server OS Packages.