View: 68|Reply: 1

How to change port 5000

[Copy link]

1

Threads

1

Posts

5

Credits

Newbie

Rank: 1

Credits
5
Post time 2021-1-9 00:54:16 From the mobile phone | Show all posts |Read mode
How can I change port 5000 to port 80? I can't find the file that sets it.
Reply

Use magic Report

19

Threads

214

Posts

747

Credits

Senior member

Rank: 4

Credits
747
Post time 2021-2-5 10:49:34 | Show all posts
The default port number is 5000, you can modify app.run(host='0.0.0.0', threaded=True) in the file app.py app.run(host='0.0.0.0', port = 5000, threaded=True), change 5000 to the port number you need to set, but you have to consider whether this port number is occupied
Reply

Use magic Report

You have to log in before you can reply Login | Sign Up

Points Rules