How Linux makes a simple shared server
Open a terminal, CD to a directory, enter "Python-m simplehttpserver", you can share the contents of the current directory, as follows:
Www.ahlinux.com
[CPP]
[Email protected]:~$ cd videospace/
[Email protected]:~/videospace$ python-m simplehttpserver
Serving HTTP on 0.0.0.0 Port 8000 ...
At this time, we can use the browser in the LAN to open this directory (URL column input: IP address: 8000 can), download the contents.
If our current machine IP address is 192.168.2.240, then I can use 192.168.2.240:8000 access on other machines
OK, we can download it by clicking on it! Of course, we are all Linux systems, and not so much trouble, direct SCP copy can, but we want to share things from Linux to Windows, this method is very sharp Oh!
OK, we click on a download, on the server side have a display it! But the Chinese show a problem ... You can't see what it is!
The server can be shut down with CTRL + C interrupt!
- This article is from: Linux Learning Network
How Linux makes a simple shared server