1. 官方网站:
    https://rocket.chat/

  2. 安装及启动:

    1. 安装nodejs、mongodb:
      1. 创建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
      2. 安装软件:
        yum -y install gcc-c++ make mongodb-org nodejs epel-release GraphicsMagick
      3. 升级nodejs:
        curl  -sL  https://rpm.nodesource.com/setup_8.x  |  bash  -
        npm  install  -g  inherits  n  &&  n  8.11.3
    2. 安装rocket.chat服务器:
      1. 下载:
        curl -L https://releases.rocket.chat/latest/download -o /tmp/rocket.chat.tgz
      2. 解压:
        tar -xzf /tmp/rocket.chat.tgz -C /tmp
      3. 安装依赖:
        cd /tmp/bundle/programs/server && npm install
      4. 重命名:
        mv /tmp/bundle /opt/Rocket.Chat
    3. 启动服务:
      1. 进入服务目录:
        cd /opt/Rocket.Chat
      2. 自定义环境变量:
        export  ROOT_URL=http://xx.xx.xx.xx/
        export  MONGO_URL=mongodb://localhost:27017/rocketchat
        export  PORT=3000
      3. 启动mongodb:
        systemctl start mongod
      4. 启动rocket.chat:
        node main.js
    4. 服务地址:
      http://xx.xx.xx.xx:3000
文档更新时间: 2024-03-24 15:25   作者:lee