This article mainly for you in detail the Python build HTTP server and FTP server related data, with a certain reference value, interested in small partners can refer to
This tutorial for you to share the Python build HTTP server and FTP server specific steps for everyone to refer to, the specific content is as follows
The default installation version is pytho2.7
HTTP Server Setup tutorial :
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:
localhost:9000
The page appears in the following:
The server side is displayed as follows:
Indicates that the receive request was successful.
Here is an FTP server Setup Tutorial:
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:
"Recommended"
1. Special recommendation : "PHP Programmer Toolkit" V0.1 version download
2. Python Free video tutorial
3. Python's application in Data Science video tutorial