AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
![]() We assume you have already installed the Nginx web server, so you need to create a new Nginx server block for Rocket.Chat access through the proxy.įirst, create a server block configuration file for Rocket.Chat with the following configuration: $ sudo vim /etc/nginx/sites-available/. You can follow how to install Nginx on Ubuntu 20.04 and how to secure Nginx with Let’s Encrypt on Ubuntu 20.04 guides to install and configure SSL in your Ubuntu 20.04 server. Installing using: sudo snap install rocketchat. $ sudo systemctl enable rocketchat Configure a reverse proxy using Nginx This is the easiest way for you to get your server up and running on all supported Linux (Ubuntu, etc). `-12693 /usr/local/bin/node /opt/rocket/Rocket.Chat/main.jsĪnd enable the Rocket.Chat service to start automatically on system boot time using the following command: Loaded: loaded (/etc/systemd/system/rvice disabled vendor preset: enabled)Īctive: active (running) since Wed 14:36:24 PST 5s ago Now, inform the system that we have include a new unit file and start the Rocket.Chat service by using the following commands: $ sudo systemctl daemon-reloadĬheck the service status by using the command below: $ sudo systemctl status rocketchat * rvice - Rocket.Chat server $ sudo vim /etc/systemd/system/rviceĬopy and paste the following code into the file: Ī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 To run Rocket.Chat server as a service, need to create a system unit file “rvice” in the directory “/etc/system/system/.” First, make sure that all your system packages are up-to-date by running the following apt commands in the terminal. Now, switch back to your sudo user by executing “exit” command and continue to the next steps. Now stop the Rocket.Chat server by issuing CTRL + C. If your Rocket.Chat server stated successfully and not getting any error you will get the below screen on your terminal. To start Rocket.Chat server goes back to the “Rocket.Chat” directory and start Rocket.Chat server by using the following command: $ cd. sudo apt update sudo apt upgrade sudo apt install nginx gnupg2 git unzip build-essential software-properties-common graphicsmagick. First, make sure that all your system packages are up-to-date by running the following apt commands in the terminal. $ export MONGO_URL=mongodb://localhost:27017/rocketchat Install Rocket.Chat on Ubuntu 20.04 LTS Focal Fossa. ![]()
0 Comments
Read More
Leave a Reply. |