Questions about multiple instances,help me!

When I create the multi-instance, when I started the service of port 3001, rocket.chat couldn’t get in. I don’t know why? Below is my configuration file, please help.

[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?replSet=rs01 ROOT_URL=http://127.0.0.1:3001/ PORT=3001

Environment=MONGO_OPLOG_URL=mongodb://localhost:27018/local?replSet=rs01

Environment=MONGO_OPLOG_URL=mongodb://localhost:27019/local?replSet=rs01

[Install]

WantedBy=rocketchat.service

1 Like

Hi xiaobai,
Please take a look at this one: https://zolbayar.blog/2019/01/29/rocket-chat-performance-improvement/

1 Like