How Linux makes a simple shared server

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.