1
On Local Test it work。不同的端口(3001,8080)Node.js + Express只能在測試服務器上的端口3000上工作
但測試服務器上(天青)
對我同一臺機器上運行節點的App 2實例
$ node api1/index.js (on port 3000)
$ node api2/index.js (on port 3001)
和
$ node api1/index.js (on port 3001)
$ node api2/index.js (on port 3000)
但它的僅在端口3000上工作
如何將不同的端口設置爲Express App?
現在,我已經改變了在app.listen(3001)上的index.js,它不起作用。
在此先感謝。