Rat's

使用宝塔面板安装Rocket.Chat多功能团队聊天室
说明:Rocket.Chat一年前就介绍过→传送门,一款多功能团队聊天室,支持群组聊天,直接通信,私聊群,桌面通知...
扫描右侧二维码阅读全文
27
2019/06

使用宝塔面板安装Rocket.Chat多功能团队聊天室

说明:Rocket.Chat一年前就介绍过→传送门,一款多功能团队聊天室,支持群组聊天,直接通信,私聊群,桌面通知,媒体嵌入,链接预览,文件上传,语音/视频,聊天,截图,实时翻译等等,安装方法比较简单的有SnapDocker,此前也只说过Snap安装方法,由于一直有小伙伴需要宝塔面板安装教程,所以这里就水一篇宝塔教程。

安装

官方文档:https://rocket.chat/docs/

环境要求:NodeJS 8.11.4Mongodb 4.0.9Nginx(非必需)。

提示:由于官方建议的最低内存1G,所以512M或更小的建议加点虚拟内存,可以使用Swap一键脚本→传送门

1、安装宝塔

#CentOS系统
wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
#Ubuntu系统
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh
#Debian系统
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh

安装完成后,进入面板,点击左侧软件商店,然后安装PM2管理器MongoDBNginx(使用域名访问才需要安装,反之不用)。

注意:Debian安装MongoDb之前还需要使用命令apt install sudo,不然可能存在MongoDb启动不了的情况;如果你已经安装了MongoDb,那就先使用apt install sudo,再使用/etc/init.d/mongodb start启动即可。

2、环境配置
先点击左侧软件商店,找到PM2管理器设置选项,选择Node版本,切换到12.14.0版本。

然后再找到MongoDb设置选项,点击配置文件,新增/修改以下代码:

#设置storage引擎,新增engine参数,并修改下dbPath路径,不然会启动不了
storage:
  dbPath: /www/server/mongodb/Rocket.Chat
  directoryPerDB: true
  engine: mmapv1
  journal:
    enabled: true
#配置replica set,新增以下参数
replication:
  replSetName: rs01 

保存后,MongoDb会自动关闭,这时候使用命令:

#新建数据存储路径,即上面配置文件修改的dbPath参数
mkdir /www/server/mongodb/Rocket.Chat
#授权
chown mongo:mongo /www/server/mongodb/Rocket.Chat
#重新启动数据库
/etc/init.d/mongodb start
#启动replica set
mongo --eval "printjson(rs.initiate())"

3、安装依赖

#Debian/Ubuntu系统
apt install -y graphicsmagick
#CentOS系统
yum install -y GraphicsMagick

4、安装Rocket.Chat

#下载rocket.chat
wget -O rocket.chat.tgz https://releases.rocket.chat/latest/download 
#解压并删除
tar -xzf rocket.chat.tgz && rm -rf rocket.chat.tgz
#移动到/opt并重命名
mv bundle /opt/Rocket.Chat
#安装依赖
cd /opt/Rocket.Chat
npm install -g inherits
cd programs/server
npm install

5、启动Rocket.Chat

#新建rocketchat用户并授权
useradd -M rocketchat && usermod -L rocketchat
chown -R rocketchat:rocketchat /opt/Rocket.Chat
#新建systemd配置文件,将以下代码一起复制到SSH运行
cat > /etc/systemd/system/rocketchat.service <<EOF
[Unit]
Description=Rocket.Chat
After=network.target
Wants=network.target

[Service]
ExecStart=$(command -v node) main.js
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=rocketchat
User=rocketchat
WorkingDirectory=/opt/Rocket.Chat
Environment=MONGO_URL=mongodb://127.0.0.1:27017/rocketchat?replicaSet=rs01 MONGO_OPLOG_URL=mongodb://127.0.0.1:27017/local?replicaSet=rs01 ROOT_URL=http://127.0.0.1:3000/ PORT=3000
Type=simple
Restart=on-failure
RestartSec=42s

[Install]
WantedBy=multi-user.target
EOF

开始启动:

#启动的时候,可能需要点时间加载,等待即可
systemctl start rocketchat

查看状态:

systemctl status rocketchat

开机自启:

systemctl enable rocketchat

此时访问地址为ip:3000,如果你想用ip访问,点击左侧安全,开放3000端口即可,如果想用域名访问,不需要开启,继续往下面看。

6、域名访问
要使用域名的话就需要进行反代了,这里就不用宝塔自带的反向代理配置了,默认配置不适合Rocket.Chat

先点击左侧网站,添加站点,然后再点击添加好了的域名名称,这时候就进入了站点配置,点击配置文件,在中间添加以下代码:

location ~ ^/.* {
    proxy_pass http://127.0.0.1:3000;
    proxy_set_header Host             $host;
    proxy_set_header X-Real-IP        $remote_addr;
    proxy_set_header X-Forwarded-For  $proxy_add_x_forwarded_for;

    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header X-Forward-Proto http;
    proxy_set_header X-Nginx-Proxy true;
    proxy_http_version 1.1;

    proxy_redirect off;
}

点击保存后,再点击SSL,申请免费的Let's Encrypt证书,并强制HTTPS

配置好了后就可以使用域名访问了,然后根据要求安装好,最后就可以进入你的Rocket.Chat聊天室了,还有更多使用方法可以直接查看→传送门

Vultr新用户注册送100美元/16个机房按小时计费,支持支付宝,【点击查看】。
最后修改:2020 年 05 月 06 日 12 : 20 AM

发表评论 取消回复

93 条评论

  1. zhaoyun

    申请证书老是说验证URL失败,我域名也解析指向了,是什么问题呢

    1. Rat's
      @zhaoyun

      看是不是申请的时候dns解析未生效,申请免费let常见也就这个原因了

  2. Maru

    之前用宝塔反代,结果手机 app 一直显示服务器端 websocket 未启用。
    换成文章中的网站配置并取消反代后成功使用手机 app 登录,谢谢大佬!

  3. 飒爽师叔

    请问Apache的反向代理的站点配置该怎么写呢

    1. Rat's
      @飒爽师叔

      这个可以试着百度下

  4. rocky

    有没有视频教程啊??

  5. CaiBao

    在Ubantu上用Snap两行就解决了,然后换服务器,用了宝塔,又参考了你这个,安装成功,但是咋个把用Snap安装的数据备份还原到新机器上来,请指点.

    1. Rat's
      @CaiBao

      看这个教程https://www.moerats.com/archives/530/,导出数据,然后导入过来看看,具体我没搞过,应该是可以的。

  6. GuguguBear

    話說升級命令是哪個呀?

    1. Rat's
      @GuguguBear

      程序下载最新源码,解压,覆盖,安装依赖,启动,可参考:https://docs.rocket.chat/installation/manual-installation/updating

  7. 智轩

    腾讯服务器
    [root@VM_0_4_centos server]# npm i --unsafe-perm=true --allow-root
    npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

    fibers@4.0.3 install /opt/Rocket.Chat/programs/server/node_modules/fibers
    node build.js || nodejs build.js

    linux-x64-72-glibc exists; testing
    Problem with the binary; manual build incoming
    make: 进入目录“/opt/Rocket.Chat/programs/server/node_modules/fibers/build”
    CXX(target) Release/obj.target/fibers/src/fibers.o
    make: g++:命令未找到
    make: * [Release/obj.target/fibers/src/fibers.o] 错误 127
    make: 离开目录“/opt/Rocket.Chat/programs/server/node_modules/fibers/build”
    gyp ERR! build error
    gyp ERR! stack Error: make failed with exit code: 2
    gyp ERR! stack at ChildProcess.onExit (/www/server/nvm/versions/node/v12.14.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
    gyp ERR! stack at ChildProcess.emit (events.js:210:5)
    gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
    gyp ERR! System Linux 3.10.0-1062.18.1.el7.x86_64
    gyp ERR! command "/www/server/nvm/versions/node/v12.14.0/bin/node" "/www/server/nvm/versions/node/v12.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
    gyp ERR! cwd /opt/Rocket.Chat/programs/server/node_modules/fibers
    gyp ERR! node -v v12.14.0
    gyp ERR! node-gyp -v v5.0.5
    gyp ERR! not ok
    node-gyp exited with code: 1
    Please make sure you are using a supported platform and node version. If you
    would like to compile fibers on this machine please make sure you have setup your
    build environment--
    Windows + OS X instructions here: https://github.com/nodejs/node-gyp
    Ubuntu users please run: sudo apt-get install g++ build-essential
    RHEL users please run: yum install gcc-c++ and yum groupinstall 'Development Tools'
    Alpine users please run: sudo apk add python make g++
    sh: nodejs: 未找到命令
    npm ERR! code ELIFECYCLE
    npm ERR! syscall spawn
    npm ERR! file sh
    npm ERR! errno ENOENT
    npm ERR! fibers@4.0.3 install: node build.js || nodejs build.js
    npm ERR! spawn ENOENT
    npm ERR!
    npm ERR! Failed at the fibers@4.0.3 install script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR! /root/.npm/_logs/2020-06-17T13_43_31_073Z-debug.log
    [root@VM_0_4_centos server]# sudo npm install
    sudo: npm:找不到命令
    [root@VM_0_4_centos server]# MongoDb
    bash: MongoDb: 未找到命令...

    1. Rat's
      @智轩

      pm i --unsafe-perm=true --allow-root这一步缺少依赖,试试这个命令yum -y groupinstall "Development Tools"

      1. 智轩
        @Rat's

        我试试,谢谢哈

        1. 智轩
          @智轩

          腾讯云CentoS7.6 1核1G, 蓝米云手动部署可以,为什么同样方法腾讯的不行呢?

          1. Rat's
            @智轩

            都是linux系统,与哪个服务器没啥关系,最多防火墙区别,你是运行不成功还是?

  8. AAAAAAAAAAAAAA

    最新实测,建议萌鼠更新一下,最新版本要求node 10以上了,不过最近在一台1H1G的小鸡搭了以后感觉动不动100%,想搬家来着不知道是不是直接把数据库和文件夹移走就行了

    1. Rat's
      @AAAAAAAAAAAAAA

      好像已经支持到了12.14.0,搬家的话,是直接搬走数据文件夹就行

  9. 洛汐

    时隔半年我又双叒叕肥来惹,服务器CentOS 7.7.1908(Py2.7.5) node.js:8.11.4 MongoDB 4.0.10

    安装依赖

    cd /opt/Rocket.Chat
    npm install -g inherits
    cd programs/server
    npm install 安装到这一步
    报错
    npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

    fibers@4.0.3 install /opt/Rocket.Chat/programs/server/node_modules/fibers
    node build.js || nodejs build.js

    linux-x64-72-glibc exists; testing
    Problem with the binary; manual build incoming
    gyp WARN EACCES current user ("root1") does not have permission to access the dev dir "/root/.cache/node-gyp/12.16.2"
    gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/Rocket.Chat/programs/server/node_modules/fibers/.node-gyp"
    gyp WARN install got an error, rolling back install
    gyp WARN install got an error, rolling back install
    gyp ERR! configure error
    gyp ERR! stack Error: EACCES: permission denied, mkdir '/opt/Rocket.Chat/programs/server/node_modules/fibers/.node-gyp'
    gyp ERR! System Linux 3.10.0-1062.18.1.el7.x86_64
    gyp ERR! command "/usr/bin/node" "/opt/Rocket.Chat/programs/server/node_modules/.bin/node-gyp" "rebuild" "--release"
    gyp ERR! cwd /opt/Rocket.Chat/programs/server/node_modules/fibers
    gyp ERR! node -v v12.16.2
    gyp ERR! node-gyp -v v6.0.1
    gyp ERR! not ok
    node-gyp exited with code: 1
    Please make sure you are using a supported platform and node version. If you
    would like to compile fibers on this machine please make sure you have setup your
    build environment--
    Windows + OS X instructions here: https://github.com/nodejs/node-gyp
    Ubuntu users please run: sudo apt-get install g++ build-essential
    RHEL users please run: yum install gcc-c++ and yum groupinstall 'Development Tools'
    Alpine users please run: sudo apk add python make g++
    sh: nodejs: 未找到命令
    npm ERR! code ELIFECYCLE
    npm ERR! syscall spawn
    npm ERR! file sh
    npm ERR! errno ENOENT
    npm ERR! fibers@4.0.3 install: node build.js || nodejs build.js
    npm ERR! spawn ENOENT
    npm ERR!
    npm ERR! Failed at the fibers@4.0.3 install script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR! /root/.npm/_logs/2020-04-17T11_09_58_915Z-debug.log
    大佬该怎么解决鸭?

    1. Rat's
      @洛汐

      好像是权限问题,试试npm i --unsafe-perm=true --allow-root

      1. 洛汐
        @Rat's

        我用sudo npm install 成功运行下一步
        但是吧 重启一次服务器后 MongoDb
        又启动不了了
        [root@haha ~]# /etc/init.d/mongodb start
        about to fork child process, waiting until server is ready for connections.
        forked process: 28033
        ERROR: child process failed, exited with error number 14
        To see additional information in this output, start without the "--fork" option.

        1. Rat's
          @洛汐

          这个需要看启动日志,宝塔应该有每个软件的日志信息显示

  10. Plus2333

    博主,我没按照教程来,只是最后一部添加了反代,前面安装走的官方的单个命令的方法,从ip进去一切ok,但是走域名,只有rocketchat的图标可以显示,剩下的是空白

    1. Rat's
      @Plus2333

      应该是反代的问题,你f12看下控制台啥的,自己分析下,然后百度红色报错啥的

  11. GuguguBear
    该评论仅登录用户及评论双方可见
    1. Rat's
      @GuguguBear

      你试试在程序根目录直接启动看看,命令node main.js

      1. GuguguBear
        @Rat's node 升级至最新版本之后可以启动 但是提示错误:There is an issue with node-fibers

        /opt/Rocket.Chat/programs/server/node_modules/fibers/bin/linux-x64-72-glibc/fibers.node is missing.

        Try running this to fix the issue: /www/server/nvm/versions/node/v12.16.1/bin/node /opt/Rocket.Chat/programs/server/node_modules/fibers/build
        Error: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /opt/Rocket.Chat/programs/server/node_modules/fibers/bin/linux-x64-72-glibc/fibers.node)

        at Object.Module._extensions..node (internal/modules/cjs/loader.js:1208:18) at Module.load (internal/modules/cjs/loader.js:1002:32) at Module.Mp.load (/opt/Rocket.Chat/programs/server/runtime.js:15:31) at Function.Module._load (internal/modules/cjs/loader.js:901:14) at Module.require (internal/modules/cjs/loader.js:1044:19) at require (internal/modules/cjs/helpers.js:77:18) at Object.<anonymous> (/opt/Rocket.Chat/programs/server/node_modules/fibers/fibers.js:14:39) at Module._compile (internal/modules/cjs/loader.js:1158:30) at Module.Mp._compile (/opt/Rocket.Chat/programs/server/runtime.js:50:23) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)

        /opt/Rocket.Chat/programs/server/node_modules/fibers/fibers.js:23

        throw new Error('Missing binary. See message above.'); ^

        Error: Missing binary. See message above.

        at Object.<anonymous> (/opt/Rocket.Chat/programs/server/node_modules/fibers/fibers.js:23:9) at Module._compile (internal/modules/cjs/loader.js:1158:30) at Module.Mp._compile (/opt/Rocket.Chat/programs/server/runtime.js:50:23) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10) at Module.load (internal/modules/cjs/loader.js:1002:32) at Module.Mp.load (/opt/Rocket.Chat/programs/server/runtime.js:15:31) at Function.Module._load (internal/modules/cjs/loader.js:901:14) at Module.require (internal/modules/cjs/loader.js:1044:19) at require (internal/modules/cjs/helpers.js:77:18) at Object.<anonymous> (/opt/Rocket.Chat/programs/server/boot.js:2:15)

        =================================================

      2. GuguguBear
        @Rat's

        Meteor requires Node v12.0.0 or later.
        看来是版本太旧了?
        上网找了一下没找到升级Node的命令,哈哈哈。
        又折腾一下午……萌新流泪。

        1. Rat's
          @GuguguBear

          百度下node使用n切换版本

  12. tech

    请教一下博主:
    ● rocketchat.service - Rocket.Chat
    Loaded: loaded (/etc/systemd/system/rocketchat.service; disabled; vendor preset: enabled)
    Active: activating (auto-restart) (Result: exit-code) since Mon 2020-03-02 15:30:46 CST; 5s ago
    Process: 23911 ExecStart=/www/server/nvm/versions/node/v8.11.4/bin/node main.js (code=exited, status=1/FAILURE)
    Main PID: 23911 (code=exited, status=1/FAILURE)
    这是什么错误?
    之前安装依赖到
    npm install

    fibers@4.0.3 install /opt/Rocket.Chat/programs/server/node_modules/fibers
    node build.js || nodejs build.js
    这一步就卡住了

    1. Rat's
      @tech

      安装依赖一直卡着吗?试试yarn安装依赖,要是国内服务器的话,用阿里的cnpm安装依赖。

  13. F

    为啥之前都很顺利,就到了域名访问这里,设置好后,网页只是显示白页,客户端也是无法连接。

    1. Rat's
      @F

      ip访问是正常的吗?还是就域名这样

      1. F
        @Rat's

        具体的表现为favicon显示logo但是页面是白色的,无任何内容出现。

      2. F
        @Rat's

        更新,ip访问正常,就是域名不正常。

        1. Rat's
          @F

          估计是反代有点问题,你把域名发我看看

          1. F
            @Rat's
            该评论仅登录用户及评论双方可见
            1. Rat's
              @F

              看不出来,感觉是哪里有问题,我也好久没用了

          2. F
            @Rat's
            该评论仅登录用户及评论双方可见
          3. F
            @Rat's
            该评论仅登录用户及评论双方可见
      3. F
        @Rat's

        ip访问正常,
        然后进行了域名配置,发现不正常后,删除了站点,结果发现ip也无法进入了。

  14. 元霜丶

    您好 项目什么的都弄好了 但是开启反向代理后 打开显示是空白 只有网页标题和logo能 显示 进入网站前 我已经清理了缓存

    1. Rat's
      @元霜丶

      ip打开没问题?自己试着f12看看控制台啥的

      1. F
        @Rat's

        我觉得,我们应该遇到了同样的问题。

  15. arthur

    你好,我搭建好了,但试了好多次,都是没办法发送语音和图片哦,能教我一下吗

    1. ‘or
      @arthur

      博主有群吗?交流一下啊!

  16. exi6

    请问博主 手动安装的版本如何备份和恢复数据库呀

    1. Rat's
      @exi6

      这个不好说,可以直接百度下mongodb数据库备份与还原教程

  17. canbo2000

    我的 启动不了 rocket.chat 服务,查看 status 是 failed 的,其它都是 ok 的。
    npm6.9.0
    nodejs 8.11.4
    mongodb4.0.14
    rocket.chat 2.4.1(server)
    centos 8.1.1911(core)

    1. Rat's
      @canbo2000

      看看日志journalctl -u rocketchat

  18. 范明明

    修改完MongoDb配置保存以后MongoDb就无法启动了,怎么弄都无法重启。怎么解啊?

    1. Rat's
      @范明明

      应该是修改的配置文件不对,包括格式问题,你检查下

  19. 洛汐

    这就很难受了鸭 MongoDb修改以后死活启动不了

    1. Rat's
      @洛汐

      可以看下启动日志

  20. 子翔

    大佬,语音发不了,一直0%,怎么处理?

    1. Rat's
      @子翔

      这个得看控制台

  21. zhangts

    博主你好,你知道搭建后网站停留在setup-wizard的原因吗

    1. Rat's
      @zhangts

      这是啥,能说详细点么

      1. zhangts
        @Rat's

        就是搭载完后,进入不了聊天页面,背景黑色的,什么都没有

        1. Rat's
          @zhangts

          这个不太清楚

  22. hh

    apache可以搭建吗?

    1. Rat's
      @hh

      一切皆有可能

      1. hh
        @Rat's

        apache怎么手动配置反向代理呢?谢谢大佬

        1. Rat's
          @hh

          这个我还没试过,你可以搜下Apache反向代理并配置WebSocket协议

          1. hh
            @Rat's

            好的,我去试试,谢谢大佬!

  23. 嗒嘀嗒

    about to fork child process, waiting until server is ready for connections.
    forked process: 55983
    ERROR: child process failed, exited with error number 48
    To see additional information in this output, start without the

    重启以后就是这种情况,老大,这个怎么解决

    1. Rat's
      @嗒嘀嗒

      检查下数据库配置文件,还有数据库存放路径啥的,做对了应该不会有太大问题。

      1. 嗒嘀嗒
        @Rat's

        端口的问题,解决了,谢谢

  24. 无助的小鸟

    大佬有没有什么PHP的聊天程序呀?

    1. Rat's
      @无助的小鸟

      暂时么见过,很多都是nodejs的。

  25. jackyw

    博主你好,我参照你的教程,在MongoDb设置选项,配置文件保存之后,mongdb服务没有自动关闭。
    然后输入#重新启动数据库 /etc/init.d/mongodb start,命令,提示错误,这要怎么解决?!可以在线联系你吗?我的Q280400634

    1. Rat's
      @jackyw

      看下软件设置-mongodb的运行日志

      1. jackyw
        @Rat's

        博主,你好,经过一下午的测试,终于用宝塔搭建起来了,另外有几个问题想请教你一下,rocket.chat安卓客户端如何使用?安装打开后,我选择登陆服务器,输入自己的服务器地址,为何无法登陆?不知道你有没有试过....

        1. Rat's
          @jackyw

          客户端没用过,其它的使用可以看下官方文档,写的很仔细,地址:https://rocket.chat/docs/

  26. 熊大大大

    难受

    rocketchat.service - Rocket.Chat
    Loaded: loaded (/etc/systemd/system/rocketchat.service; disabled; vendor preset: disabled)

    Active: activating (auto-restart) (Result: exit-code) since Mon 2019-07-01 23:08:11 CST; 5s ago
    Process: 18161 ExecStart=/www/server/nvm/versions/node/v8.11.4/bin/node main.js (code=exited, status=1/FAILURE)
    Main PID: 18161 (code=exited, status=1/FAILURE)

    Jul 01 23:08:11 v1ma systemd[1]: Unit rocketchat.service entered failed state.
    Jul 01 23:08:11 v1ma systemd[1]: rocketchat.service failed.
    [root@v1ma server]# systemctl enable rocketchat
    Created symlink from /etc/systemd/system/multi-user.target.wants/rocketchat.service to /etc/systemd/system/rocketchat.service.
    [root@v1ma server]# systemctl start rocketchat
    [root@v1ma server]# systemctl status rocketchat

    rocketchat.service - Rocket.Chat
    Loaded: loaded (/etc/systemd/system/rocketchat.service; enabled; vendor preset: disabled)

    Active: activating (auto-restart) (Result: exit-code) since Mon 2019-07-01 23:19:25 CST; 37s ago
    Process: 24710 ExecStart=/www/server/nvm/versions/node/v8.11.4/bin/node main.js (code=exited, status=1/FAILURE)
    Main PID: 24710 (code=exited, status=1/FAILURE)

    Jul 01 23:19:25 v1ma systemd[1]: Unit rocketchat.service entered failed state.
    Jul 01 23:19:25 v1ma systemd[1]: rocketchat.service failed.

    这是我的服务器问题吗

    1. Rat's
      @熊大大大

      看是不是内存太小了。

  27. gyaji

    数据库弄死启动不起来 CONTOS7的

    1. Rat's
      @gyaji

      安装的时候启动不了,还是修改后启动不了?前者的话,尝试一直卸载,安装试试。

  28. 小黑脸

    Process: 7478 ExecStart=/www/server/nvm/versions/node/v10.16.0/bin/node main.js (code=exited, status=203/EXEC)

    ???启不动,node也换成8.11.4了。

    1. Rat's
      @小黑脸

      切换后,需要修改/etc/systemd/system/rocketchat.service,把里面的v10.16.0改成8.11.4,不过这种还是建议提前切换好些。

  29. Kenneth

    什么时候也来一个宝塔安装Forsaken Mail的教程??也来水一个

    1. Rat's
      @Kenneth

      善于使用博客的搜索,都水了一年了,地址:https://www.moerats.com/archives/723/

  30. yonheng

    2019-06-27T15:38:38.972+0000 I CONTROL [initandlisten] MongoDB starting : pid=19696 port=27017 dbpath=/www/server/mongodb/data 64-bit host=ip-172-26-20-196
    2019-06-27T15:38:38.972+0000 I CONTROL [initandlisten] db version v4.0.5
    2019-06-27T15:38:38.972+0000 I CONTROL [initandlisten] git version: 3739429dd92b92d1b0ab120911a23d50bf03c412
    2019-06-27T15:38:38.972+0000 I CONTROL [initandlisten] allocator: tcmalloc
    2019-06-27T15:38:38.972+0000 I CONTROL [initandlisten] modules: none
    2019-06-27T15:38:38.972+0000 I CONTROL [initandlisten] build environment:
    2019-06-27T15:38:38.972+0000 I CONTROL [initandlisten] distarch: x86_64
    2019-06-27T15:38:38.972+0000 I CONTROL [initandlisten] target_arch: x86_64
    2019-06-27T15:38:38.972+0000 I CONTROL [initandlisten] options: { config: "/www/server/mongodb/config.conf", net: { bindIp: "127.0.0.1", port: 27017 }, processManagement: { fork: true, pidFilePath: "/www/server/mongodb/log/configsvr.pid" }, replication: { replSetName: "rs01" }, security: { authorization: "disabled", javascriptEnabled: false }, storage: { dbPath: "/www/server/mongodb/data", directoryPerDB: true, engine: "mmapv1", journal: { enabled: true } }, systemLog: { destination: "file", logAppend: true, path: "/www/server/mongodb/log/config.log" } }
    2019-06-27T15:38:38.972+0000 I STORAGE [initandlisten]
    2019-06-27T15:38:38.972+0000 I STORAGE [initandlisten] ** WARNING: Support for MMAPV1 storage engine has been deprecated and will be
    2019-06-27T15:38:38.973+0000 I STORAGE [initandlisten] ** removed in version 4.2. Please plan to migrate to the wiredTiger
    2019-06-27T15:38:38.973+0000 I STORAGE [initandlisten] ** storage engine.
    2019-06-27T15:38:38.973+0000 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/deprecated-mmapv1
    2019-06-27T15:38:38.973+0000 I STORAGE [initandlisten]
    2019-06-27T15:38:38.973+0000 I STORAGE [initandlisten] exception in initAndListen: Location28662: Cannot start server. Detected data files in /www/server/mongodb/data created by the 'wiredTiger' storage engine, but the specified storage engine was 'mmapv1'., terminating
    2019-06-27T15:38:38.973+0000 I NETWORK [initandlisten] shutdown: going to close listening sockets...
    2019-06-27T15:38:38.973+0000 I NETWORK [initandlisten] removing socket file: /tmp/mongodb-27017.sock
    2019-06-27T15:38:38.973+0000 I CONTROL [initandlisten] now exiting
    2019-06-27T15:38:38.973+0000 I CONTROL [initandlisten] shutting down with code:100
    大佬mongodb改了启动不了

    1. Rat's
      @yonheng

      我的锅,配置文件忘了改个地方,改成这个就好了,dbPath: /www/server/mongodb/Rocket.Chat

  31. 奶爸de笔记

    如果能有一个开源通用的聊天协议就好了,这样N多可以通用对接的聊天程序出来,就没QQ和TG什么事了。

    1. svior
      @奶爸de笔记

      超级中继叫 matterbridge 可以打通下面一堆聊天软件

      Discord | Gitter | IRC | Keybase | Matrix | Mattermost | MSTeams | Rocket.Chat | Slack | Telegram | Twitch | WhatsApp | XMPP | Zulip | And more...

    2. svior
      @奶爸de笔记

      有的。有一个超级中继可以使多种小众的开源协议的客户端互动聊天消息。忘了叫啥名字

    3. Rat's
      @奶爸de笔记

      QQ依然第一,毕竟都用习惯了

  32. 心灵博客

    拒绝一切nodjs的东西。。。

    1. Rat's
      @心灵博客

      你对nodejs有什么意见吗。

  33. Yuuki

    wow~

  34. 梦随乡兮

    哇,谢谢大佬!神速般发文!

  35. CPUFAN
    该评论仅登录用户及评论双方可见
    1. Rat's
      @CPUFAN

      你这个有点高端,明天我水篇吧,估计这里的人用的不多。