[英]How to run a webapp in browser using localhost?
I have a program in node.js. 我在node.js中有一个程序。 I ran the code using "node main.js".
我使用“ node main.js”运行代码。 It starts listening.
它开始听。 When I try to open the link, " https://localhost:8080 " it displays, "It works !
当我尝试打开链接“ https:// localhost:8080 ”时,它将显示“有效!
If you're seeing this page via a web browser," which is usually popped up after tomcat installation. how can i fix it and run my code? 如果您是通过Web浏览器看到此页面的,则该信息通常在安装了tomcat之后弹出。如何修复并运行我的代码?
You probably have a tomcat server running on the same port. 您可能有一个在同一端口上运行的tomcat服务器。 Shut it down and run the node.js server only
关闭它并仅运行node.js服务器
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.