Centos7部署开源聊天软件rocket.chat
一、部署rocket.chat
1、看官方文档部署,很简单,一步一步跟着部署即可
注意:需要部署节点需要联网主要是yum方式
https://rocket.chat/docs/installation/manual-installation/centos/
2、这里贴一下步骤
Rocket.Chat in CentOS This installation guide was tested in the following environment:Rocket.Chat 1.0.2 OS: CentOS 7.6 Mongodb 4.0.9 NodeJS 8.11.4 Install necessary dependency packages#---安装依赖包 Update package list and configure yum to install the official MongoDB packages with the following yum repository file: #---配置repo源 sudo yum -y check-update cat << EOF | sudo tee -a /etc/yum.repos.d/mongodb-org-4.0.repo [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: #---配置node.js sudo yum install -y curl && curl -sL https://rpm.nodesource.com/setup_8.x | sudo bash - Install build tools, MongoDB, nodejs and graphicsmagick: #---安装mongondb,nodejs,graphicsmagick sudo yum install -y gcc-c++ make mongodb-org nodejs sudo yum install -y epel-release && sudo yum install -y GraphicsMagick Using npm install inherits and n, and the node version required by Rocket.Chat: #---使用NPM安装 inherits,n,以及指定版本 sudo npm install -g inherits n && sudo n 8.11.4 Install Rocket.Chat Download the latest Rocket.Chat version: #---安装rocket.chat curl -L https://releases.rocket.chat/latest/download -o /tmp/rocket.chat.tgz tar -xzf /tmp/rocket.chat.tgz -C /tmp Install (this guide uses /opt but feel free to choose a different directory): #---这里使用得opt目录,也可以是其他目录 cd /tmp/bundle/programs/server && npm install sudo mv /tmp/bundle /opt/Rocket.Chat Configure the Rocket.Chat service Add the rocketchat user, set the right permissions on the Rocket.Chat folder and create the Rocket.Chat service file: #---配置rocket.chat服务,包括:添加rocketchat 用户,设置文佳佳权限创建服务文件 sudo useradd -M rocketchat && sudo usermod -L rocketchat sudo chown -R rocketchat:rocketchat /opt/Rocket.Chat cat << EOF |sudo tee -a /lib/systemd/system/rocketchat.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=rocketchat Environment=MONGO_URL=mongodb://localhost:27017/rocketchat?replicaSet=rs01 MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01 ROOT_URL=http://localhost:3000/ PORT=3000 [Install] WantedBy=multi-user.target EOF Open the Rocket.Chat service file just created (/usr/lib/systemd/system/rocketchat.service) using sudo and your favourite text editor, and change the ROOT_URL environmental variable to reflect the URL you want to use for accessing the server (optionally change MONGO_URL, MONGO_OPLOG_URL and PORT): #---打开服务文件,编辑改变ROOT_URL、MONGO_URL、MONGO_OPLOG_URL、PORT MONGO_URL=mongodb://localhost:27017/rocketchat?replicaSet=rs01 MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01 ROOT_URL=http://your-host-name.com-as-accessed-from-internet:3000 PORT=3000 Setup storage engine and replication for MongoDB (mandatory for versions > 1), and enable and start MongoDB and Rocket.Chat: #---mongoDB设置存储引擎和replication,开机自启,启动数据库 sudo sed -i "s/^# engine:/ engine: mmapv1/" /etc/mongod.conf sudo sed -i "s/^#replication:/replication:\n replSetName: rs01/" /etc/mongod.conf sudo systemctl enable mongod && sudo systemctl start mongod mongo --eval "printjson(rs.initiate())" sudo systemctl enable rocketchat && sudo systemctl start rocketchat Optional configurations#---可选配置 Configure firewall rule Configure a HTTP reverse proxy to access Rocket.Chat server [Configure mongo access control] [Configure production values for mongodb]Configure your Rocket.Chat server Open a web browser and access the configured ROOT_URL (http://your-host-name.com-as-accessed-from-internet:3000), follow the configuration steps to set an admin account and your organization and server info. ZLIB version problem Some users had experienced problems starting rocketchat server in CentOS because their zlib version is not compatible with rocket.chat.If you find an error message similar to the following in the logs:Exception in callback of async function: Error: /lib64/libz.so.1: version `ZLIB_1.2.9' not found Add this environmental variable in the Rocket.Chat service file (/usr/lib/systemd/system/rocketchat.service):Environment=LD_PRELOAD=/opt/Rocket.Chat/programs/server/npm/node_modules/sharp/vendor/lib/libz.soGithub Contribute to this page on GitHub
3、访问一下ip:3000端口
初始化,建立管理员账号,及选择这个应用场景等,这里就不截图了
二、简单管理rocket.chat
1、登陆界面,登陆
2、创建频道及讨论组
3、管理界面
4、添加用户
5、管理聊天室
6、权限控制
转载请注明出处:https://www.cnblogs.com/zhangxingeng/p/11418803.html
转载于:https://www.cnblogs.com/zhangxingeng/p/11418803.html
Centos7部署开源聊天软件rocket.chat相关推荐
- 【云原生之Docker实战】使用Docker部署Web在线聊天室Rocket.Chat
[云原生之Docker实战]使用Docker部署Web在线聊天室Rocket.Chat 一.Rocket.Chat介绍 二.检查本地系统环境 1.检查系统版本 2.检查docker版本 3.检查doc ...
- 聊聊开源聊天软件oim-fx
最近忽然要开发聊天软件,上网百度学习了一下.先是找到一些socket编程的文章.后来,在博客园找到这篇文章,得到一些启示:<超赞的8款开源聊天软件> https://blog.csdn.n ...
- C/S架构网络聊天软件——Java Chat Application 用java做一个聊天机器人
Fighting! 一.C/S概念 1.1 什么是C/S 1.2 C/S与B/S的区别 二.主页面 三.介绍 四.特征 五.jServer 六.jMessenger 七.使用代码 7.1 导入项目后报 ...
- zulip 开源聊天软件服务器搭建
系统: Ubuntu 18.04, 内存:虽然我的服务器是2GB,但是出现了一个小的问题,zulip默认的系统空闲必须在1.9GB上,所以内存还是不够,需要手动修改 \scripts\lib\inst ...
- Linux下全平台聊天工具,程序员的全平台聊天软件:Rocket.Chat
Rocket.Chat 是什么? 字面意思好像是"火箭聊天".Rocket.Chat 是一款类似于 Slack 的开源聊天软件,其支持 Windows.Mac.Linux 和 An ...
- mysql 开源聊天系统_轻量级的开源企业聊天软件 喧喧聊天(界面很不错)
喧喧是由然之协同团队推出的一款轻量级的开源企业聊天软件.喧喧官网:http://xuanxuan.chat 为什么来做喧喧? 我们在做然之协同办公系统的时候,就在寻找轻量级.开源.跨平台.容易开发的聊 ...
- 使用宝塔面板安装Rocket.Chat多功能团队聊天室
安装 官方文档:https://rocket.chat/docs/ 环境要求:NodeJS 8.11.4.Mongodb 4.0.9.Nginx(非必需). 提示:由于官方建议的最低内存1G,所以51 ...
- 高仿Telegram IM Chat 聊天软件 即时通讯 在线聊天加社群 纯静态UI架构介绍
高仿Telegram IM Chat 聊天软件 即时通讯 在线聊天加社群 纯静态UI 全端覆盖!苹果手机端.安卓手机端.网页版.电脑PC版.无论哪个平台,都能畅通无阻! 性价比高!功能全面而价格低廉! ...
- un直连服务器教程,UNRAID 搭建Rocket.Chat 私有聊天服务器教程
前言: 为什么搭建属于自己的聊天服务器呢,纯属无聊,但是搭建了之后发现功能强大,比QQ舒服,怎么说也是自己的地盘,和几个好朋友,好基友,可以畅所欲言,还是很不错的. 教程: 一.配置MongoDB 打 ...
- 开源监控软件Zabbix5部署实战
系列文章目录 文章目录 系列文章目录 一.zabbix介绍 一.zabbix部署 1.zabbix环境 2.安装zabbix的安装包 安装zabbix_server 安装被监控方 web001 一.z ...
最新文章
- crontab修改默认编辑器
- dnsmasq搭建简易DNS服务器
- 【移动通信】天线原理
- 滚动条禁止_Axure 教程:不可见滚动条的页面滚动效果
- vba可以放服务器上处理文档,vba 用服务器运行 内存溢出
- 不写画面的网页程序设计,Web API、Web Service、WCF Service
- JVM_07 Class文件结构
- weblogic11g集群配置
- 转,jquery中attr和prop的区别
- keil如何看c语言编译器,MDK Keil编译器编译窗口的设置
- html 列表点,HTML + CSS:不带句点的有序列表?
- 我的HTML学习之路02
- 【构造】Gym - 101411F - Figure ans Spots
- matlab简单分析频域滤波和时域滤波
- d3d 渲染遇到的几个问题
- 数据库mysql的注释怎么加_mysql表如何添加字段注释
- 只需2行代码,1分钟教你实现微信多开
- 只需简单一步,android自带的示例程序 BluetoothChat 变蓝牙串口助手
- 基于Python的微信公众号爬虫
- macOS中显示按键操作