Install setuptools
1) The simplest installation, under assumed ubuntu
- sudo apt-get install python-setuptools
SimpleHTTPServer temporary service is single-threaded, multi-threaded recommended, pip install simplefileserver, or other ftp or something, nginx is also OK if you do not, then do not think, and a little trouble, but misplaced.
After installation is complete pip install simplefileserver
Simplefileserver execute commands on your vps, then visit your server IP address: 8080 you can see the directory of the server; if not, please check the firewall is disabled vps 8080
root@miaolegemi:~# sudo apt-get install python-setuptools root@miaolegemi:~# pip install simplefileserver root@miaolegemi:~# simplefileserver Bottle v0.12.16 server starting up (using PasteServer())... Listening on http://0.0.0.0:8080/ Hit Ctrl-C to quit. serving on 0.0.0.0:8080 view at http://127.0.0.1:8080 root@miaolegemi:~# simplefileserver 7090 Bottle v0.12.16 server starting up (using PasteServer())... Listening on http://0.0.0.0:7090/ Hit Ctrl-C to quit. serving on 0.0.0.0:7090 view at http://127.0.0.1:7090
Reference links:
Detailed setuptools - Jane book https://www.jianshu.com/p/ea9973091fdf
V2EX https://www.v2ex.com/t/189034 - how to quickly and easily download files in the VPS
[Everyday tools] simple-file-server simple file transfer and browsing, you can start a command or double-click file transfer - V2EX https://www.v2ex.com/t/422960
Use VPS download YouTube videos and upload them to Baidu cloud network disk - Type My Life http://www.typemylife.com/use-vps-download-videos-from-youtube-upload-to-baidu-cloud/