centos7搭建自己的聊天服務器rocket.chat

  • 官網:
    https://rocket.chat/
  • 安裝nodejs、mongodb:
    a. 創建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

    b. 安裝軟件:

    yum  -y  install  gcc-c++  make  mongodb-org  nodejs  epel-release  GraphicsMagick

    c. 升級nodejs:

    curl  -sL  https://rpm.nodesource.com/setup_8.x  |  bash  -
    npm  install  -g  inherits  n  &&  n  8.11.3
  • 安裝rocket.chat服務器:
    a. 下載:
    curl  -L  https://releases.rocket.chat/latest/download  -o  /tmp/rocket.chat.tgz

    b. 解壓:

    tar  -xzf  /tmp/rocket.chat.tgz  -C  /tmp

    c. 安裝依賴:

    cd  /tmp/bundle/programs/server  &&  npm  install

    d. 重命名:

    mv  /tmp/bundle  /opt/Rocket.Chat
  • 啓動服務:
    a. 進入服務目錄:
    cd  /opt/Rocket.Chat

    b. 自定義環境變量:

    export  ROOT_URL=https://172.20.10.12/
    export  MONGO_URL=mongodb://localhost:27017/rocketchat
    export  PORT=3000

    c. 啓動mongodb:

    systemctl  start  mongod

    d. 啓動rocket.chat:

    node  main.js

    centos7搭建自己的聊天服務器rocket.chat

  • 測試:
    a. 連接瀏覽器:
    http://172.20.10.12:3000

    centos7搭建自己的聊天服務器rocket.chat
    b. 創建管理員:
    centos7搭建自己的聊天服務器rocket.chat
    c. 創建組織:
    centos7搭建自己的聊天服務器rocket.chat
    d. 創建服務器信息:
    centos7搭建自己的聊天服務器rocket.chat
    e. 註冊服務器:
    centos7搭建自己的聊天服務器rocket.chat
    f. 轉移到工作區:
    centos7搭建自己的聊天服務器rocket.chat
    g. 界面效果:
    centos7搭建自己的聊天服務器rocket.chat
    centos7搭建自己的聊天服務器rocket.chat

  • 發表評論
    所有評論
    還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
    相關文章