Advanced Python-Brief Introduction to FTP server development

Source: Internet
Author: User
After a basic training session from a foreign teacher, I immediately felt that I was better off. Let's start with a small example to encourage myself. Of course, the current situation of the three-legged cat has not changed, but it has not stopped moving forward. Continue to cheer up. After the plugin is downloaded, decompress it to a directory and run Python setup. py install. Hahahahaha, after outputting a bunch of stuff (copying to a centralized folder and compiling some files), the gods return to their places. Now, let's start running our Code : Import asyncorefrom Medusa import ftp_server, filesys, logger def startserver (): FTPServ = ftp_server.ftp_server (ftp_server.anon_authorizer ("G: //"), IP = '127. 0.0.1 ', Port = 21, logger_object = logger. file_logger ("log.txt") asyncore. loop () If _ name _ = "_ main _": Print "Starting FTP server .. "startserver () print" server is running... "Well, simple services have been done. What is displayed on FTP is: connected to 127.0.0.1.
220 Guge FTP Server (Medusa async v1.10 [experimental]) ready.
User (127.0.0.1 :( none): But here I am windows + python2.5. There is a false death after execution. I don't know why, but I also hope that people of insight can help me. Haha.

 

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.