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. $ sudo systemctl enable rocketchat Configure a reverse proxy using Nginx `-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/.” 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. $ export MONGO_URL=mongodb://localhost:27017/rocketchat
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |