![]() ![]() Next, start the Rocket.Chat service and enable it to start at system reboot with the following command: systemctl start rocketchat Save and close the file then reload the systemd daemon with the following command: systemctl daemon-reload You can create it with the following command: nano /etc/systemd/system/rviceĪfter=network.target nss-lookup.target mongod.targetĮnvironment=MONGO_URL=mongodb://localhost:27017/rocketchat ROOT_URL= PORT=3000ĮxecStart=/usr/local/bin/node /opt/rocket/Rocket.Chat/main.js Next, you will need to create a systemd service file to manage the Rocket.Chat service. Next, exit from the rocket user with the following command: exit Step 6: Create a Systemd Service File for Rocket.Chat Next, change the directory to Rocket.Chat server and install required modules with the following command: cd Rocket.Chat/programs/server Next, move the extracted directory to Rocket.Chat: mv bundle Rocket.Chat Next, extract the downloaded file with the following command: tar zxf Next, switch the user to rocket and download the latest version of Rocket.Chat with the following command: su - rocket Next, give proper permission to the /opt/rocket directory with the following command: chmod 750 /opt/rocket Next, add the rocket user to the Nginx group with the following command: usermod -a -G rocket nginx You can create it with the following command: useradd -m -U -r -d /opt/rocket rocket Next, exit from the MongoDB shell with the following command: myreplica01:SECONDARY> exit Step 5: Install Rocket.Chatįirst, you will need to create a separate user to run Rocket.Chat. "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="), Using a default configuration for the set", ![]() 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 ![]() 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 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
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |