How to create a simple Shared Server in Linux

Source: Internet
Author: User

How to create a simple Shared Server in Linux
Open a terminal, cd it to a directory, and enter "python-m SimpleHTTPServer" to share the content in the current directory, as shown below: www.2cto.com [cpp] long @ long-Ubuntu :~ $ Cd VideoSpace/long @ long-Ubuntu :~ /VideoSpace $ python-m SimpleHTTPServer Serving HTTP on 0.0.0.0 port 8000... in this case, you can open this directory using a browser in the LAN (enter IP Address: 8000 in the URL bar) to download the content.
For example, if the IP address of our current machine is 192.168.2.240, then I can use 192.168.2.240: 8000 to access OK on another machine. We can click here to download it! Of course, if we are all Linux systems, we don't have to worry about it. We just need to copy scp directly, but we want to share things with Windows on Linux. This method is very sharp! OK. Let's click a download, which is displayed on the server! But there is a problem with Chinese display ...... You can't see what it is!
The server can be shut down after Ctrl + C is disconnected!

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.