To improve work efficiency < Learning gadgets , Learn to apply >
File transfer between services -A Server files copy To B The server
Linux When transferring files , except ssh and scp、ftp Common methods ,Python Next SimpleHTTPServer Gadgets can also be transferred quickly .
stay Linux On the server or installed Python On the machine , Use Python Bring one with you WEB The server SimpleHTTPServer.
python -m SimpleHTTPServer
Quickly build a http service , Provides a file view of web service . It's used in LAN web To visit http:/IP:8000 that will do
1,A Service knock command : python -m SimpleHTTPServer 9999
Use the above command to publish the current directory to 9999 port .
Be careful : This command is currently running , Not running in the background , That is to say if Ctrl + C, Then the port will be closed
2,B Server operations
wget 1.3.1.1:9999/xx.tar.gz
wget A Server's ip: port