簡體   English   中英

Node.js快速連接被/拒絕

[英]Node.js express connection refused with /

我正在使用node.js並表達並嘗試創建一個簡單的應用程序,該應用程序在端口3000上回答路由“ localhost / games”

當我使用根索引'localhost:3000'時,應用程序運行良好。 但是,當我將此路由更改為“ localhost / games:3000”時,使用完全相同的代碼拒絕連接。

有沒有人遇到過這個問題,並且知道如何解決?

它沒有正確的方法。 您需要做(localhost:port / foo)

localhost:3000/games

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM