I'm running an educational forum (https://szkolnecentrum.pl), and, in the first place, I would like to change the names of particular elements. For example, instead of "topic" or "post", I would like to name it "task", "assignment", "answer" or anything like this. More importantly, there is an issue connected to one of the plugins and some part of HTML can be seen in notifications (screen below).
The plugin which is responsible for that error is called nodebb-plugin-question-and-answer-pl (all the plugins don't work except the Chinese one, that's why I would also like to access HTML and try changing it).
Can't start NodeBB automatically after system reboot
Hao Lee last edited by Hao Lee
Hi, My OS is CentOS 6.4 x64
I add this script to /etc/rc.d/rc.local to start NodeBB automatically after system reboot.
/etc/init.d/mongod start cd /var/nodebb /usr/local/node/bin/forever start /var/nodebb/app.js > /root/log /etc/init.d/nginx start
I find that mongodb and nginx can start successfully, but nodebb isn't running. The log file is empty. I don't know what the problem is. Could you help me?
but nodebb isn't running.
hmm...... it's probably erroring....
try this script instead:
/etc/init.d/mongod start cd /var/nodebb /usr/local/node/bin/forever start /var/nodebb/app.js &> /root/log /etc/init.d/nginx start
it won't fix your issue, but it should log both stderr and stdout to your log file for debugging
You'll probably want NodeBB to run in the foreground, and not pipe output to the log file, if you want to use
node loader.js --no-silent --no-daemonwill run production mode and leave output piping to stdout. It will also run in the foreground, which forever expects.
If you use
app.js, you won't need
--no-daemon, but you'll only be running one process.