The rookie can also set up an FTP server

  
                  There are many popular servers at present, and some professional-grade FTP servers, such as Serv-U and WarftpD, need to have certain knowledge for their erection, which is not easy to set for general beginners. I will introduce you to a super simple FTP server today, hoping to help readers who want to set up an FTP server.

Server Settings

To establish an FTP server, you need to download TYPSoft FTPServer (hereinafter referred to as TYP) at http://www.skycn.com/soft/1289.html with a file size of 744KB. For Windows 9X/2000/XP systems. After downloading, extract it to any folder, and you can start working without double-clicking the program. Of course, some simple settings are needed.

1. Setting the port

If the port 21 set by default in TYP is occupied, the performance status is as shown in Figure 1. The list will show "Port already in use.Choose another one". The server cannot be started. At this time, we need to manually reset the TYP port by selecting the “Setup FTP” tab in the window shown in Figure 1, then entering the new port number in the box after “FTP Port”, and then clicking The "Save" button below can be used.


Figure 1
2.Use anonymous login


Select the “User Setup” tab in the main window and select the anonymous account “Anonymous”. In the right window, set the "Home Directory" to the directory we want to share. In the "Directory Access" area below, set the user access rights for the subdirectories in the shared directory (download, upload, change, delete, etc.) ), after setting the above options, press the “Save” button to save (as shown in Figure 2).


Figure 2

3. Log in with other users

If you want to log in with a new user, we can disable anonymous users. In the window shown in Figure 2, select "Anonymous", then click the "Option" button in the button group, select the "Disable User Account" option in the right panel to disable the anonymous account, and then click the "New" button. , add a new user, then set the access directory and related permissions of this new account according to the method of setting an anonymous account, and then click the "Save" button. //This article comes from the computer software and hardware application network www.45it.com

After completing these settings, we can start the FTP server. Click the menu “Server→Start” to start the server.

Tip: TYP has an anonymous user by default. This user shares the D drive in the system. If you don't want to use anonymous login, you can delete this account. If you want to use anonymous login, you can use the default share. Change the directory to a different directory.

Client Access

Once the server is set up, you can let others access our system. You can access it in the browser when accessing, or you can access it through FTP commands. Below we briefly Explain how to use these two ways to access the FTP server.

1.Access using a browser

When using a browser to access an FTP server, we can enter the IP address of the FTP server directly in the address bar of the browser. There are two types of IP addresses, one is the IP address inside the LAN, and the other is the IP address of the Internet. The format of the input is as follows: ftp://***.****.***.***, then press Enter.

If the FTP server has set a password, press Enter to automatically pop up a window. Follow the prompts and enter the correct username and password in the specified location to log in to the directory specified by the FTP service. According to the permissions set in the server, you can download, upload, modify files, delete, and so on.

2. Use the FTP command to access


To access the server through FTP commands, you must know some common commands. Here are a few common FTP commands (assuming the IP address of the FTP server) Is 192.168.0.1, the shared directory is ABC).

(1) Connect to the FTP server

If the system is Windows 9X, we can operate in MS-Dos. If the system is Windows 2000/XP, we can do it in the command line mode.

First, type "ftp" in the command line or DOS window and hit enter, then type "open 192.168.0.1 port" after the "ftp>" prompt (port is the port of the FTP server) No.) At this point, the command line waits for us to enter the username, enter the legal username and then enter the corresponding password. Then we can log in to the FTP server (Figure 3).


Figure 3

(2) Upload file

After successfully logging in to the server, we can upload the file. Before uploading a file, we'd better create a folder and upload the file to this folder, which is convenient for file management. The command format for creating a folder is: mkdir folder name; the command format for uploading files is: the location and file name of the put source file. After pressing Enter, we also need to enter the target position, enter the legal target position and then hit enter. If you want to transfer files in bulk, you can use the "mput" command.

(3) Download the file

First enter the "pwd" command at the cursor to view the directory to enter the FTP server, then enter the "dir" or "ls" command, press Enter , you can display all the file information in this directory. For example, if you want to download all MP3s in the Music directory of the FTP server completely, first use the "cd" command to switch directories, enter the \\music directory, then select the "mget" command to download, and the "mget" command to perform multiple files. Batch download (format: mget *.mp3). If you want to download a single file, use the "get" command.

(4) delete the document

We can use the "delete" command to delete a single file, if you need to delete the file in batches, you can use the "mdelete" command, of course, if you think Too wasteful time, you can enter the "rmdir" command to delete the entire directory.

(5) disconnect the FTP server

After using, we finally use the "Close" command to quit the connection with the server, if you want to thoroughly say goodbye to FTP, then Use the "bye" or "quit" command to exit completely.


Copyright © Windows knowledge All Rights Reserved