![]() ![]() If you followed our how to install Nginx on CentOS 7Īnd how to secure Nginx with Let’s Encrypt on CentOS 7 If there are no errors you can enable the Rocket.Chat service to be automatically started at boot time: sudo systemctl enable rocketchat Set up a reverse proxy with Nginx # └─32356 /usr/local/bin/node /opt/rocket/Rocket.Chat/main.js Loaded: loaded (/etc/systemd/system/rvice enabled vendor preset: disabled)Īctive: active (running) since Tue 20:30:56 UTC 8s ago The output should look something like this: ![]() Notify systemd that a new unit file was created and start the Rocket.Chat service by executing: sudo systemctl daemon-reload sudo systemctl start rocketchatĬheck the service status with the following command: sudo systemctl status rocketchat Description = Rocket.Chat server After = network.target nss-lookup.target mongod.target StandardOutput = syslog StandardError = syslog SyslogIdentifier = rocketchat User = rocket Environment = MONGO_URL=mongodb://localhost:27017/rocketchat ROOT_URL= PORT=3000 ExecStart = /usr/local/bin/node /opt/rocket/Rocket.Chat/main.js WantedBy = multi-user.target To run Rocket.Chat as a service create a rvice unit file in the /etc/systemd/system/ directory: sudo nano /etc/systemd/system/rvice Stop the Rocket.Chat server with CTRL+C and continue with the next steps. ➔ +-+Īt this point, Rocket.Chat is installed on your CentOS 7 machine. If there are no errors you should see the following output: ➔ +-+ Next, change back into the Rocket.Chat directory and start the Rocket.Chat server by issuing the following commands: cd. To do so, start by setting the required environment variables: export PORT=3000 export ROOT_URL= export MONGO_URL=mongodb://localhost:27017/rocketchat It is a good idea to test if the installation was successful. Tar zxf mv bundle Rocket.ChatĬhange into the Rocket.Chat/programs/server directory and install all the required npm packages: cd Rocket.Chat/programs/server npm installīefore creating systemd unit and setting up a reverse proxy with Nginx Once the download is completed extract the archive Switch to the user rocket by typing: sudo su - rocketĭownload the latest stable version of Rocket.Chat with curl So that the Nginx can access it: sudo usermod -a -G rocket nginx sudo chmod 750 /opt/rocket Installing Rocket.Chat # For simplicity we will name the user rocket: sudo useradd -m -U -r -d /opt/rocket rocketĪnd change the /opt/rocket directory permissions Once the installation is completed, enable and start the MongoDB service: sudo systemctl start mongod sudo systemctl enable mongod Create New System User #Ĭreate a new user and group, which will run our Rocket.Chat instance. To install MongoDB, run the following command: sudo yum install mongodb-org name = MongoDB Repository baseurl = $releasever/mongodb-org/3.6/x86_64/ gpgcheck = 1 enabled = 1 gpgkey = Paste the following content into the file: Open your editor of choice and create the following repository file: sudo nano /etc//mongodb-org.repo ![]() Using yum from the official MongoDB repositories. Rocket.Chat recommends MongoDB version 3.6. MongoDB is a NoSQL document-oriented database and it is used by Rocket.Chat as a data store. Issue the following commands to install the n utility and the recommended Node.js version: sudo npm install -g inherits n sudo n 8.11.3 Version for Rocket.Chat is Node.js v8.11.3. Next, install Node.js and npm by typing: sudo yum install -y nodejs npmĪt the time of writing this article, the recommended Node.js Install the following packages which are necessary to build the required npm modules: sudo yum install epel-release curl GraphicsMagick gcc-c++ You can generate a free one from Let’s Encrypt You have Nginx installed, if not you can install it by following this.You have a domain name pointing to your server IP address.You are logged in as a user with sudo privileges.CentOS 7 server, according to the official Rocket.Chat system requirements you need at least 1G of RAM.Make sure that you have met the following prerequisites before continuing with this tutorial: In this tutorial, we will show you how to install and deploy Rocket.Chat on a CentOS 7 server with Nginx as an SSL reverse proxy. It is built with Meteor and provides various features including helpdesk chat, video conferencing, file sharing, voice messages, API, and more. Rocket.Chat is a complete team communication platform, a self-hosted Slack alternative. ![]()
0 Comments
Leave a Reply. |