NodeJS HTTP - listen on other port than 80

后端 未结 6 872
情歌与酒
情歌与酒 2021-01-12 00:21

I am running XAMPP on Windows to host an Apache server on port 80. Now I\'m trying to have a NodeJS script running in the background but the problem is that it can only list

6条回答
  •  再見小時候
    2021-01-12 01:25

    Seem something already running on your 8080 port. Simply change to another port. For example 7000 And make sure that all request you call to nodejs app like this

    localhost:7000 // Normal we run at port 80 url simply localhost without port
    

提交回复
热议问题