how to remote start and keep running NodeBB
-
I install NodeBB with MongoDB in CentOS 7.2 by SSH.
(not use Nginx now)It can setup NodeBB by the setup page.
But when I start NodeBB , it shows error message below:
error message:
Looks like your connection to NodeBB was lost, please wait while we try to reconnect.
I try "forever start app.js" , "./nodebb start", or use service according to the guide "https://docs.nodebb.org/configuring/running/"
but it 's the same problem.
I tried "./nodebb dev" , NodeBB works when I keep SSH console.
when I close SSH, NodeBB must be stopped, cause it has the same error message before I refresh.how to do ? thanks
-
@creatxr have you checked those two topics?
"Looks like your connection to NodeBB was lost, please wait while we try to reconnect."
Hi @jimmyc2018 I had the same issue once upgrading my nodebb installation from v1.4.2 to v1.5.1 The trick that worked out for me was to remplace the ip addre...
NodeBB Community (community.nodebb.org)
Error: listen EADDRINUSE 0.0.0.0:4800 Looks like your connection to NodeBB was lost, please wait while we try to reconnect.
@pitaj damn.. that fixed my problem. I didn't know that one has to write the 1:1 url you call in your browser as the config.json url setting.. So instead of:...
NodeBB Community (community.nodebb.org)
-
thanks.
I've some puzzles.
I've changed"url": "http://localhost:4567" to "url": "http://my.real.ip:4567"
now it works.
but, I did it before and start NodeBB with "forever start app.js" or "./nodebb start",
even I keep SSH console open, NodeBB still has the error message.
why?
-
yes, it seems only service could get to work.
the "forever start app.js" or "./nodebb start"
cannot work.
because before i've changed url , but it has same error message.
when i changed to use service and change the url, it works.
so maybe only the way of config service could use in centos?