Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 520 Bytes

File metadata and controls

20 lines (15 loc) · 520 Bytes

Create Server using Python

PYTHON SERVER :
  • Python can be used to create servers.

  • The commands depends on the version of python being used "PYTHON 2 OR PTYHON 3"

  • For PYTHON 2

python –m SimpleHTTPServer
  • For PYTHON 3
python -m http.server          --- default port number is 8080

python -m http.server 9000     --- changing the port number to 9000
  • If both the python versions are present in the system try writting "python3" or "python2" along with the command