今天折腾了很长时间,说一说我的搭建经验。
经测试只能在Centos7.6上搭建成功,不知道为什么。
1.Install necessary dependency packages–安装必须依赖的包
Update package list and configure yum to install the official MongoDB packages with the following yum repository file – 更新你的yum包 并且安装MongoDB
[mongodb-org-4.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc
EOF
Configure Node.js to be installed via package manager --通过yum的包管理器来安装Node.js
Install build tools, MongoDB, nodejs and graphicsmagick–使用构建工具安装MongoDB、nodejs和 graphicsmagick
Using npm install inherits and n, and the node version required by Rocket.Chat–使用 npm来安装依赖和切换到Rocket.Chat要求的node的版本
2.Install Rocket.Chat–安装Rocket.Chat
Download the latest Rocket.Chat version–下载最新的Rocket.Chat的版本
Install (this guide uses /opt but feel free to choose a different directory)–安装(可以选择不同的目录)
3.Configure the Rocket.Chat service–Rocket.Chat的配置
Add the rocketchat user, set the right permissions on the Rocket.Chat folder and create the Rocket.Chat service file–添加用户并创建正确的权限来创建Rocket的服务
这里提前把ROOT_URL后的localhost改为自己服务器的公网IP
后台运行和启动rocket
查看当前rocket启动否成功
关闭rocket
然后去服务器安全组放行3000端口
此时rocket配置完成,使用自己的ip:3000访问此地址进入rocket的配置页面完成配置登录进入聊天界面,此时rocket配置完成。
一些设置不用讲了吧……
李天成 2020/06/20


叨叨几句... NOTHING