For more information about how to manage your Rocket.Chat installation, please refer to the official Rocket.Chat documentation. You have successfully installed Rocket.Chat on your Debian 9 VPS. The first user created will get administrative privileges by default. Now, open in your favorite web browser and you should see the RocketChat login/register screen. If the rvice is enabled and there are no errors, you can enable it also the automatically to start at boot time: sudo systemctl enable rocketchat 4. └─894 /usr/local/bin/node /opt/Rocket.Chat/main.js Loaded: loaded (/etc/systemd/system/rvice enabled vendor preset: disabled)Īctive: active (running) since Sat 08:35:50 CDT 4s ago You can check the status of the service by running the command: sudo systemctl status rocketchat Output: Start the MongoDB and Rocket.Chat services: sudo systemctl start mongodb In order to notify the systemd that you just created a new unit file you need to execute the following command: sudo systemctl daemon-reload You can also change the port number that is currently set to 3000 to a port number of your choice. If you do not have an available domain, you can instead enter your IP address on your server. You can change ROOT_URL and replace the domain you want to use. RestartSec=15 # If node service crashes, restart the service after 15 secondsĮnvironment=NODE_ENV=production PORT=3000 ROOT_URL= MONGO_URL=mongodb://localhost:27017/rocketchat Restart=always # When is set to always, the service will be restarted in any case (hit a timeout, got terminated) The second one is to create the Rocket.Chat systemd service unit: nano /etc/systemd/system/rvice Īfter=network.target remote-fs.target nss-lookup.target mongod.target nginx.target # Remove or Replace nginx with your proxyĮxecStart=/usr/local/bin/node /opt/Rocket.Chat/main.js # The location of node and location of main.js Replace ‘your_domain-or-IP_addres’ with your actual domain name or server’s IP address. First one is manually to set the necessary environment variables and start the Rocket.Chat: export ROOT_URL= export MONGO_URL=mongodb://localhost:27017/rocketchat There are two ways to populate and start the Rocket.Chat. We will use the curl command to download the Rocket.Chat latest version and we will extract into the /opt directory: cd /opt Now when you set all the necessary dependencies we can continue with installing the Rocket.Chat. In order for some npm packages which require building from source, you will need to install the build-essentials and python-dev packages: sudo apt install build-essential python-dev You can check the Node.js current version with the following command: node -version Use n to download and install Node.js version 8.9.3 which is required by Rocket.Chat sudo n 8.9.3 Run the next command to install the Node.js: sudo curl -sL | sudo bash -Īlso you need to install the npm package sudo npm install -g n GraphicsMagick is an ImageMagick fork.įirst, we are going to install cURL, MongoDB and GraphicsMagick with this command: sudo apt install -y curl mongodb graphicsmagick GraphicsMagick – is a collection of tools and image processing libraries. MongoDB – is an open-source leading NoSQL database program written in C++.ĬURL- know as “Client URL” is the command-line tool for transferring data. Node.js – an open source cross-platform JavaScript run-time environment. Install Dependenciesīefore starting the Rocket.Chat installation, you need to install the following required dependencies so that the application can work: You can upgrade and upgrade your server with the following commands: sudo apt update Once you are logged in to your server, you need to update and upgrade RPM packages. In this tutorial, we will install and deploy Rocket.Chat on Debian 9 server. There are many options for this application, such as chatting with team members and friends, using audio and video chat, interacting with website visitors in real time, sharing files and more. Rocket.chat is an open source application that can be used as a team communication solution and can be deployed on your own server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |