mirror of
https://github.com/cheat/cheat.git
synced 2024-11-14 08:01:09 +01:00
13 lines
400 B
Text
13 lines
400 B
Text
# Desc: Python is a high-level programming language.
|
|
|
|
# Basic example of server with python
|
|
# Will start a Web Server in the current directory on port 8000
|
|
# go to http://127.0.0.1:8000
|
|
|
|
# Python v2.7
|
|
python -m SimpleHTTPServer
|
|
# Python 3
|
|
python -m http.server 8000
|
|
|
|
# SMTP-Server for debugging, messages will be discarded, and printed on stdout.
|
|
python -m smtpd -n -c DebuggingServer localhost:1025
|