Rocketchat is an opensource chat application
Need fresh updated centos 7
#yum install epel-release -y
#yum update -y
after successfull updates install mango DB
#vi /etc/yum.repos.d/mongodb-org-3.2.repo
[mongodb-org-3.2]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.2.asc
save and exit :wq!
#yum install mongodb-org mongodb-org-server -y
install npm node
#yum install nodejs curl GraphicsMagick npm -y
#npm install -g inherits n
#n 0.10.40
// if npm command not found centos
#yum -y install nodejs npm
after successfull instalation of nodejs , need to install rocketchat
#cd /opt
#ls
.
#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
#vi /usr/lib/systemd/system/rocketchat.service //create a service
[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://www.example.com:3000/ PORT=3000
[Install]
WantedBy=multi-user.target
save and exit :wq!
now stat the following services
#systemctl start mongod.service
#systemctl enable mongod.service
#systemctl start rocketchat.service
#systemctl enable rocketchat.service
if you have enabled your firewall then put the following rules in your iptables
#firewall-cmd --zone=public --permanent --add-port=3000/tcp
#firewall-cmd --reload
else
just check wheter firewall was disabled
now check your browser
http://localhost:3000
Need fresh updated centos 7
#yum install epel-release -y
#yum update -y
after successfull updates install mango DB
#vi /etc/yum.repos.d/mongodb-org-3.2.repo
[mongodb-org-3.2]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.2.asc
save and exit :wq!
#yum install mongodb-org mongodb-org-server -y
install npm node
#yum install nodejs curl GraphicsMagick npm -y
#npm install -g inherits n
#n 0.10.40
// if npm command not found centos
#yum -y install nodejs npm
after successfull instalation of nodejs , need to install rocketchat
#cd /opt
#ls
.
#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
#vi /usr/lib/systemd/system/rocketchat.service //create a service
[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://www.example.com:3000/ PORT=3000
[Install]
WantedBy=multi-user.target
save and exit :wq!
now stat the following services
#systemctl start mongod.service
#systemctl enable mongod.service
#systemctl start rocketchat.service
#systemctl enable rocketchat.service
if you have enabled your firewall then put the following rules in your iptables
#firewall-cmd --zone=public --permanent --add-port=3000/tcp
#firewall-cmd --reload
else
just check wheter firewall was disabled
now check your browser
http://localhost:3000
No comments:
Post a Comment