If you want to use an external MongoDB instance, which would not be very common, you can use my MongoDB installer guide from earlier today. One script, so far it is working each time.
opt/Rocket.Chat/node_modules/forever/bin/forever start /opt/Rocket.Chat/main.js
I replicate what is needed in the script, however, so a full basic install is all that you need.Ĭat > /etc//mongodb-org-3.2.repo > ~/.bashrcĮcho "export MONGO_URL=mongodb://localhost:27017/rocketchat" > ~/.bashrc I'm on a Scale HC3 cluster and so have a template that I set up that has just the basics for me. Run it and when you are done you should be able to log in from another machine's web browser right away and start using it!įirst we need a CentOS 7 Minimum install. Even the firewall gets installed and configured. It will set up the necessary repos, grab the latest stable MongoDB and Rocket.Chat installs, handle Node and NPM versioning, SELinux gets configured (and left on!!), get things installed, set necessary environmental variables for the future and fire up your new server. Copy the entire text to a file on your CentOS 7 box and run. Rather than make a series of steps as this installation is a little weird, I just opted for a full install script. This installation is for CentOS 7 or RHEL 7 Linux and uses a locally installed MongoDB 3.2 database server but can easily be modified for a remote one, I tested with both. Rocket.Chat can be a little tricky to install and it took some work to find a solid procedure.