Setting up an FTP server is simple and quick (1)

Source: Internet
Author: User

I believe you have mastered the FTP transmission mode. Next we can establish an FTP server. It can be easily completed in four steps. The FTP server implements the basic function of uploading and downloading. The following describes how to create an FTP server in several steps 。

Create an FTP server 1. install an FTP server

If you do not select to install the FTP server when installing the system, you can install it using the "Add/delete application" tool in Red Hat 9.0, select "Main Menu" → "system settings" → "Add/delete Applications", select the FTP server in the pop-up interface, and click "Update 。

If you cannot confirm whether the software is installed, run the following command:

 
 
  1. #rpm -qa|grep vsftpd  
  2. vsftpd-1.1.3-8  

Create an FTP server 2. Start the FTP server

Use the default example of Red Hat 9.0 to directly start VSFTP 。

 
 
  1. # /sbin/service vsftpd start  

Start vsftpd For vsftpd: [OK]

Create an FTP Server 3. Create a file named test.txt under/var/ftp/pubdirectory with the file content "This is a test file "。

Create an FTP server 4. Test

Log on to the local server using the FTP client, and then log on with an anonymous identity (anonymous:

 
 
  1. # ftp 127.0.0.1  
  2. Connected to 127.0.0.1 (127.0.0.1).  
  3. 220 (vsFTPd 1.1.3)  
  4. Name (127.0.0.1:root): anonymous  
  5. 331 Please specify the password.  
  6. Password:  
  7. 230 Login successful. Have fun.  
  8. Remote system type is UNIX.  
  9. Using binary mode to transfer files.  

In this way, you can successfully log on to the FTP server. The server directory list is displayed as follows:

 
 
  1. ftp> ls  
  2. 227 Entering Passive Mode (127,0,0,1,63,15)  
  3. 150 Here comes the directory listing.  
  4. drwxr-xr-x  2 0  0  4096 Dec 04 01:35 pub  
  5. 226 Directory send OK.  

Switch to the pubdirectory and display the directory content. You can find the created file test.txt:

 
 
  1. ftp> cd pub  
  2. 250 Directory successfully changed.  
  3. ftp> ls  
  4. 227 Entering Passive Mode (127,0,0,1,232,34)  
  5. 150 Here comes the directory listing.  
  6. -rw-r--r--  1 0  0  21 Dec 04 01:35 test.txt  
  7. 226 Directory send OK.  


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.