简体   繁体   中英

Deploy node.js in hostinger VPS but not running

I have my node app upload into hostinger and npm start run well.

But I still can't access http://my-ip:3000

这是在我安装 pm2 并且它正在运行之后

node and npm and mysql have been installed

试图在 http://my-ip:3000 上打开我的应用程序

but no luck.

Am I missing some important steps?

我的vps

this problem could come from your code || network

pm2 logs 

see if there are some error logs

check on vps that if your service online

curl http://127.0.0.1:3000 

if no resposne, you should fix the service code

check if your service runs on the right port

netstat -an | grep 3000

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM