The default installation version is pytho2.7
HTTP Server Setup:
Enter the directory you want to open access to, execute the command: python-m simplehttpserver 9000
The above indicates that the installation was successful and the HTTP service port is: 9000, not with port default 80 port
To access the HTTP service through a browser:
http://localhost:9000
The page appears in the following:
The server side is displayed as follows:
Indicates that the receive request was successful.
FTP Server Setup:
Python does not own the FTP service library, so you need to install the plugin:
Enter the Python27\scripts directory, execute: Pip install pyftpdlib Command, shown below, indicating successful installation
Enter the FTP service directory that needs to be opened, execute: python-m pyftpdlib-p 21, shown below, indicating that the FTP service was built successfully
Access via browser ftp://localhost:21, shown below, indicates successful access:
The server is displayed as follows to indicate that the request was successful:
Python build HTTP server and FTP server