OS: centos 7.6
Node version: v12.11.1
NPM version: 6.11.3
I install and config wiki.js on a virtual server, and I want to serve it, the problem is I'm not familiar with Node.js, I set up the wiki.js base on Linux install documentation: https://docs.requarks.io/en/install/linux
And now i run the node server
and its served correctly :
[root@localhost html]# node server
Loading configuration from /var/www/html/config.yml... OK
2019-10-16T08:48:21.178Z [MASTER] info: =======================================
2019-10-16T08:48:21.182Z [MASTER] info: = Wiki.js 2.0.0-beta.303 ==============
2019-10-16T08:48:21.183Z [MASTER] info: =======================================
2019-10-16T08:48:21.183Z [MASTER] info: Initializing...
2019-10-16T08:48:21.808Z [MASTER] info: Connecting to database...
2019-10-16T08:48:21.936Z [MASTER] info: Database Connection Successful [ OK ]
2019-10-16T08:48:22.072Z [MASTER] warn: DB Configuration is empty or incomplete. Switching to Setup mode...
2019-10-16T08:48:22.073Z [MASTER] info: Starting setup wizard...
2019-10-16T08:48:22.420Z [MASTER] info: Starting HTTP server on port 3000...
2019-10-16T08:48:22.420Z [MASTER] info: HTTP Server on port: [ 3000 ]
2019-10-16T08:48:22.427Z [MASTER] info: HTTP Server: [ RUNNING ]
2019-10-16T08:48:22.427Z [MASTER] info:
2019-10-16T08:48:22.427Z [MASTER] info:
2019-10-16T08:48:22.427Z [MASTER] info: Browse to http://localhost:3000/ to complete setup!
2019-10-16T08:48:22.427Z [MASTER] info:
2019-10-16T08:48:22.428Z [MASTER] info:
but the problem is how can I run it now? My virtual machine IP is: 192.168.1.54
and I run 192.168.1.54:3000
but it says: This site can’t be reached
.
What should I do?
You have to open the
3000
port in the virtual machine Firewall. You can do it like this:And then check if it has been added successfully: