@scottalanmiller running any ./nodebb command as root is not supported. You should install and run NodeBB as an unprivileged user.
Doh. Obviously. Thanks, having a brainfart from lack of sleep.
while nodebb is running succesfully i tried stop nodebb but i notified as nodebb already stopped but infact it is running and not stopped. After try ./nodebb start i get below error.
ubuntu@ip-179:/var/www/NodeBB$ ./nodebb stop
NodeBB is already stopped.
ubuntu@ip-179:/var/www/NodeBB$ ./nodebb start
"./nodebb stop" to stop the NodeBB server
"./nodebb log" to view server output
"./nodebb restart" to restart NodeBB
throw er; // Unhandled 'error' event
Error: EACCES: permission denied, open '/var/www/NodeBB/logs/output.log'
at Error (native)
note: nodebb is running succesfully still.
You somehow messed up your permissions.
Try recursive claiming the NodeBB directory
sudo chown -R ubuntu /var/www/NodeBB
thank you @yariplus but not worked. it did not stop. after sudo chown -R ubuntu /var/www/NodeBB my ./nodebb log is below
8/5 07:36:54  - error: Error: listen EADDRINUSE 0.0.0.0:4567
at Object.exports._errnoException (util.js:870:11)
at exports._exceptionWithHostPort (util.js:893:20)
at Server._listen2 (net.js:1237:14)
at listen (net.js:1273:10)
at nextTickCallbackWith3Args (node.js:452:9)
at process._tickCallback (node.js:358:17)
8/5 07:36:54  - error: NodeBB address in use, exiting...
3 restarts in 10 seconds, most likely an error on startup. Halting.
@atozsoft If you want to stop NodeBB and the loader has lost track of where it is running, find it in your system process table by running
ps aux | grep node
The second column will be the pid (process identifer) for the matched results. e.g.
julian 55973 0.1 1.6 3181136 134924 s000 S+ 9:44AM 0:03.39 /some/path/node app.js --log-level=info
Terminate it by using
thank you @julian . Problem fixed.
for other users;
i runned ps aux | grep node and runned kill for number on second line .
thank you again.