It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In RegisterIt looks like you're new here. If you want to get involved, click one of these buttons!
yum install epel-release nano -y && yum update -y
nano /etc/yum.repos.d/mongodb-org-4.00.re
[mongodb-org-4.0]We are now ready to install all the necessary dependencies:
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc
yum install -y nodejs curl GraphicsMagick npm mongodb-org-server mongodb-org gcc-c++
npm install -g inherits n
n 4.8.4
cd /opt
curl -L https://releases.rocket.chat/stable -o rocket.chat.tar
tar zxvf rocket.chat.tgz
mv bundle Rocket.Chat
cd Rocket.Chat/programs/server
npm install
nano /usr/lib/systemd/system/rocketchat.service
[Unit]NOTE: do not forget to change server-hostname with your server hostname.
Description=The Rocket.Chat server
After=network.target remote-fs.target nss-lookup.target nginx.target mongod.target
[Service]
ExecStart=/usr/local/bin/node /opt/Rocket.Chat/main.js
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=rocketchat
User=root
Environment=MONGO_URL=mongodb://localhost:27017/rocketchat ROOT_URL=http://server-hostname/ PORT=80
[Install]
WantedBy=multi-user.target
systemctl enable rocketchat.service
systemctl start rocketchat.service
Comments
Thank you for your very fast response!
Can you explain how to add TLS (using Certbot / Let's Encrypt) for this tutorial?