1. Install python
To ensure that python is installed locally or on the server
2. View the ip address of the machine/server
Command: ifconfig
, you can find the ipv4z field, for example: 172.16.0.12
If it is from the server, you don’t need to check the ip, it is the server ip directly
3. Package the folder to be downloaded as zip
zip -r xxx.zip xxx
4. Use the command line to start the http server in the path where the folder to be downloaded is located
python3 -m http.server 8091 # 8091 是一个没有被占用的端口号,可以自行修改
5. Support downloading in the browser
Enter in the browser, and the contents of the folder will be displayed on the page, which can be downloaded
172.16.0.12:8091
If it starts from the server, you don’t need to check the ip, just add after the server ip :8091
to check