官方网站:
https://rocket.chat/
安装及启动:
- 安装nodejs、mongodb:
- 创建mongodb的yum源:
vim /etc/yum.repos.d/mongodb-org-3.6.repo
[mongodb-org-3.6] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.6/x86_64/ gpgcheck=1 enabled=1 gpgkey=https://www.mongodb.org/static/pgp/server-3.6.asc
- 安装软件:
yum -y install gcc-c++ make mongodb-org nodejs epel-release GraphicsMagick
- 升级nodejs:
curl -sL https://rpm.nodesource.com/setup_8.x | bash - npm install -g inherits n && n 8.11.3
- 创建mongodb的yum源:
- 安装rocket.chat服务器:
- 下载:
curl -L https://releases.rocket.chat/latest/download -o /tmp/rocket.chat.tgz
- 解压:
tar -xzf /tmp/rocket.chat.tgz -C /tmp
- 安装依赖:
cd /tmp/bundle/programs/server && npm install
- 重命名:
mv /tmp/bundle /opt/Rocket.Chat
- 下载:
- 启动服务:
- 进入服务目录:
cd /opt/Rocket.Chat
- 自定义环境变量:
export ROOT_URL=http://xx.xx.xx.xx/ export MONGO_URL=mongodb://localhost:27017/rocketchat export PORT=3000
- 启动mongodb:
systemctl start mongod
- 启动rocket.chat:
node main.js
- 进入服务目录:
- 服务地址:
http://xx.xx.xx.xx:3000
- 安装nodejs、mongodb:
文档更新时间: 2024-03-24 15:25 作者:lee