

Nov 27 10:06:20 chat rocketchat: ➔ | MongoDB Engine: mmapv1 | └─28294 /usr/local/bin/node /opt/Rocket.Chat/main.js Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (running) since Fri 10:05:54 UTC 31s ago Start Rocket.Chat service: sudo systemctl enable rocketchat & sudo systemctl start rocketchatĬheck if the service is running: $ systemctl status rocketchat "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="), Test: $ mongo -eval "printjson(rs.initiate())"Ĭonnecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb

Jul 12 19:34:41 ubuntu systemd: Started MongoDB Database Server. Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (running) since Mon 19:34:41 UTC 16s ago Sudo systemctl enable mongod & sudo systemctl restart mongodĬonfirm MongoDB service: $ systemctl status mongod Start and enable MongoDB service sudo systemctl daemon-reload sudo sed -i "s/^#replication:/replication:\n replSetName: rs01/" /etc/nf cat << EOF |sudo tee -a /etc/systemd/system/rviceĪfter=network.target remote-fs.target nss-lookup.target rvice rviceĮxecStart=/usr/local/bin/node /opt/Rocket.Chat/main.jsĮnvironment=MONGO_URL=mongodb://localhost:27017/rocketchat?replicaSet=rs01 MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01 ROOT_URL= PORT=3000Ĭonfigure the storage engine and replication for MongoDB then start MongoDB service. Step 5 – Create Rocket.Chat serviceĬreate Rocket.Chat service unit file. Once the user has been created then you can proceed to create the service. Sudo chown -R rocketchat:rocketchat /opt/Rocket.Chat sudo useradd -M rocketchat & sudo usermod -L rocketchat Sudo mv /tmp/bundle /opt/Rocket.Chat Step 4 – Create Rocketchat system userĬreate a rocketchat user and assign ownership to the Rocket.Chat folder.
#Rocketchat snap port install#
In this guide, we shall install it in /opt directory cd /tmp/bundle/programs/server & npm install Install Rocket.Chat to a directory of your choice. usr/bin/n -> /usr/lib/node_modules/n/bin/nĪdded 2 packages from 2 contributors in 0.628sĬreate a symbolic link for the node binary file to sudo ln -s /usr/bin/node /usr/local/bin/node Step 3 – Install Rocket.Chat on Ubuntu 20.04ĭownload the latest version of Rocket.Chat with the following curl -L -o /tmp/Įxtract the downloaded file to /tmp folder tar -xzf /tmp/ -C /tmp To check the installed version: $ node -version You should only install a version that is same as the base version or create a symbolic link to the base version.

Installing a different version of node than the base version installed causes conflicts with Rocket.Chat in Ubuntu 20.04. Install Node.js, MongoDB, build tools and graphicsmagick: sudo apt-get install -y build-essential mongodb-org nodejs graphicsmagick
#Rocketchat snap port update#
Update your Ubuntu 20.04 system sudo apt-get -y update Step 2 – Install Required package dependenciesĪdd MongoDB GPG signing key: wget -qO - | sudo apt-key add -Īdd MongoDB repository echo "deb focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt//mongodb-org-4.4.listĬonfigure Node.js to be installed through the Ubuntu package manager: sudo apt-get -y update & sudo apt-get install -y curl & curl -sL | sudo bash.
