• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Wednesday, June 25, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System Debian

How to Install Rocket.Chat on Debian 9

How VPS by How VPS
November 1, 2019
in Debian
0
0
SHARES
20
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Using a Different System?
  2. Prerequisites
  3. Step 1: Update the system
  4. Step 2: Install MongoDB
  5. Step 3: Install Node.js, GraphicsMagick, npm and other dependencies
  6. Step 4: Install Rocket.Chat
  7. Step 5: Access Rocket.Chat in the web browser
  8. Want to contribute?

Using a Different System?

  • How to Install Rocket.Chat on CentOS 7

Are we missing a guide for your target system? Request one, or submit your own!


Rocket.Chat is an open source Slack-like team communication solution which can be deployed on your own server. With Rocket.Chat, you can chat with your team members and friends over audio and video, interact with website visitors in real time, share files, transmit voice messages, and much more.

Prerequisites

  • A fresh Vultr Debian 9 server instance with at least 1G of memory. Say its IP address is 192.167.100.100.
  • A domain pointing to your server instance. Say it is www.example.com.

Step 1: Update the system

Log in as root and update the system to the latest stable status:

apt update
apt upgrade -y
shutdown -r now

Step 2: Install MongoDB

Install the latest stable version of MongoDB:

apt install mongodb

Step 3: Install Node.js, GraphicsMagick, npm and other dependencies

Rocket.Chat 0.60 and higher needs version 8.9.3 LTS of Node.js to work.
So first add the NodeSource Debian binary distributions repository:

curl -sL https://deb.nodesource.com/setup_8.x | bash -

Then we can install Node.js and other packages:

apt install nodejs curl graphicsmagick -y
npm install -g n

Use n to install Node.js version 8.9.3:

n 8.9.3

Step 4: Install Rocket.Chat

Download and install Rocket.Chat:

cd /opt
curl -L https://rocket.chat/releases/latest/download -o rocket.chat.tgz
tar -zxvf rocket.chat.tgz
mv bundle Rocket.Chat
cd Rocket.Chat/programs/server
npm install

For your convenience, you need to create the RocketChat systemd service unit:

nano /etc/systemd/system/rocketchat.service

Populate the file. Make sure to replace the domain www.example.com with your own:

[Unit]
Description=RocketChat Server
After=network.target remote-fs.target nss-lookup.target mongod.target nginx.target  # Remove or Replace nginx with your proxy

[Service]
ExecStart=/usr/local/bin/node /opt/Rocket.Chat/main.js    # Specify the location of node and location of main.js
Restart=always     # If set to always, the service will be restarted regardless of whether it exited cleanly or not, got terminated abnormally by a signal, or hit a timeout.
RestartSec=10       # Restart service after 10 seconds if node service crashes
StandardOutput=syslog                     # Output to syslog
StandardError=syslog                   # Output to syslog
SyslogIdentifier=nodejs-example
#User=<alternate user>
#Group=<alternate group>
Environment=NODE_ENV=production PORT=3000 ROOT_URL=https://www.example.com MONGO_URL=mongodb://localhost:27017/rocketchat

[Install]
WantedBy=multi-user.target

Note: In PORT, you can replace 3000 with the port number of your choosing. In ROOT_URL, you can replace www.example.com with your server’s IP address 192.168.100.100, if your domain is not available.

Save and quit, CTRL + X, Y.

Start the MongoDB service:

systemctl start mongodb

Start the Rocket.Chat service:

systemctl start rocketchat

Step 5: Access Rocket.Chat in the web browser

Point your web browser to http://www.example.com:3000, and then register the first user for administration. By default, only the first user will get administrative privileges.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
Previous Post

Installing HAProxy 1.7 on Debian 9.1 (Stretch)

Next Post

How to Install and Configure TaskBoard on Debian 9

Next Post

How to Install and Configure TaskBoard on Debian 9

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In