Below a very simple way to install the free alternative to Slack or rocket.chat system Centos7
Installation is simple and make it in a few minutes.
For starters make system updates, and run packages EPEL
yum -y install epel-release nano && yum -y update
We create a repository MongoDB
nano /etc/yum.repos.d/mongodb.repo
The content:
[mongodb] name=MongoDB Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/ gpgcheck=0 enabled=1
Then we make the necessary installation packages:
yum install -y nodejs curl GraphicsMagick npm mongodb-org-server mongodb-org gcc-c++
The next step is to install above sea level
npm install -g inherits n
By default, the altitude version is installed 2.9. Rocket.chat version needs a minimum 8. We make the installation command:
n 8.9.3
Installation Rocket.Chat
Go to the / opt directory
cd /opt
Grab the latest version available rocket.chat and unpack it.
curl -L https://releases.rocket.chat/latest/download -o rocket.chat.tar.gz
tar zxvf rocket.chat.tar.gz
We move files and make installation rocket.chat
mv bundle Rocket.Chat
cd Rocket.Chat/programs/server
npm install
cd ../..
The next step is to configure mongodb spend command as below:
export PORT=3000 export ROOT_URL=http://NASZA DOMENA BĄDŹ ADRES IP:3000/ export MONGO_URL=mongodb://localhost:27017/rocketchat
introduce changes:
chkconfig mongod on
We start command mongodb:
systemctl start mongod
Now we can go to run command rocket.chat:
node main.js
If everything is ok in the console log we should see similar to the one below:
➔ System ➔ startup ➔ +---------------------------------------------------+ ➔ | SERVER RUNNING | ➔ +---------------------------------------------------+ ➔ | | ➔ | Rocket.Chat Version: 0.66.0 | ➔ | NodeJS Version: 8.9.3 - x64 | ➔ | Platform: linux | ➔ | Process Port: 3000 | ➔ | Site URL: http://OUR IP ADDRESS:3000/ | ➔ | ReplicaSet OpLog: Disabled | ➔ | Commit Hash: 5aa08cba32 | ➔ | Commit Branch: HEAD | ➔ | | ➔ +---------------------------------------------------+
Now, by using the browser: http://OUR IP ADDRESS:3000/ you should see the first registration form you make.
If the page is not displayed verify that the firewall does not block port us:3000
Clean the CentOS firewall system can be the following commands:
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
Virtually all, Configuration is done from the browser and does not need to be specially somehow describe the rocket.chat is in Polish.
We will create a script auto-start in the event as if there was a server restart.
create a file:
nano /usr/lib/systemd/system/rocketchat.service
The content:
[Unit] 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://NASZA DOMENA BĄDŹ ADRES IP:3000/ PORT=3000 [Install] WantedBy=multi-user.target
We make its launch:
systemctl enable rocketchat.service
systemctl start rocketchat.service
That's all.
The guide below describes how to install KeePass on Ubuntu. Całość wykonamy za pomocą kilku poleceń…
Master PDF Editor is a comprehensive PDF program, which includes many features. Oprócz tworzenia i edycji…
Iotop jest prostym narzędziem dla systemów Uniksowych umożliwiającym monitorowanie użycia dowolnego nośnika pamięci flash/hdd/ssd w…
You can separate two or more commands with semicolons (;), Semicolon (;): służy do oddzielania…
Poniższy poradnik opisuje w jaki sposób za pomocą konsoli możemy dokonać edycji danych zdjęcia exif.…
The following guide describes how to install Rocket.Chat on Rocky Linux 8 Całość bardzo prosto zainstalujemy…
Zobacz komentarze
nearly work, I come to the point where it executes the command node and main.js after its execution have something like Meteor Node requires v8.0.0 or later. How to fix it to work properly?
By default, the altitude version is installed 2.9. Rocket.chat version needs a minimum 8. We make the installation command:
n 8.9.3