Anyone who has downloaded software online knows that it is relatively simple to set up an FTP download server. Generally, you can just use the IIS that comes with WIN2000. However, many of the functions of IIS are not satisfactory. I will introduce one function below. Very powerful but simple FTP server building software - Serv-U FTP Server, let us also experience the joy of our own DIY FTP server!
Before explaining its use, let me first briefly introduce Serv-U (the Serv-U version mentioned in this article is 3.0.0.17, using the Chinese program made by the author):
Serv-U is an FTP server program that can run under Windows 95/98/2000/ME and Windows NT 4.0
With it, your personal computer can be simulated as an FTP server, that is to say, computer users in the network you are connected to can access your personal computer and copy, move, and delete your files through the FTP protocol (File Transfer Protocol). The files or folders in your computer can do everything permitted by the permissions. The FTP protocol specifies a standard communication method between computers, allowing all computers of different types, operating systems, and formats to exchange files. It can create user accounts in the simplest way, and divide a certain area on the hard disk space to store files, allowing users to upload or download the required files using various FTP client software (such as CuteFTP, WS_FTP, etc.).
There are many FTP server and client software available for different systems. Serv-U is used on PCs running MS-Windows and with WinSock version 1.1 installed and compatible with the TCP/IP protocol. This includes almost all Windows operating system.
Serv-U consists of two parts, the engine and the user interface. The Serv-U engine (ServUDaemon.exe) is actually a program that resides in the background and is the heart of the entire Serv-U software. It is responsible for processing FTP commands from various FTP client software and is also responsible for performing various file transfers. software. After running the Serv-U engine, which is the ServUDaemon.exe file, we cannot see any user interface. It just runs in the background. Usually we cannot affect it, but in ServUAdmin.exe we can stop and start it. The Serv-U engine can run as a local system service on any Windows platform. The system service starts running when the operating system starts, and then we can run the user interface program. In Win NT/2000 system, Serv-U will be automatically installed as a system service, but in Win 9x/Me, you need to select "Automatic Start" in the "Server" panel to turn it into a system service. Serv-U user interface (ServUAdmin.exe) is the Serv-U administrator, which is responsible for interaction with the Serv-U engine. It allows users to configure Serv-U, including creating domains, defining users, and telling the server whether it is accessible. The easiest way to start the Serv-U administrator is to directly click on the "U" shaped icon in the system bar. Of course, you can also run it from the start menu.
It is necessary to clarify some important concepts in Serv-U here: each running Serv-U engine can be used to run multiple "virtual" FTP servers. In the administrator program, each "Virtual" FTP servers are called "domains", so they are very useful for servers that have to create multiple domains. Each domain has its own Users, Groups, and Settings. Generally speaking, the Setup Wizard will set up an initial domain and user account the first time you run the application. You can refer to the following table for the relationship between servers, domains and users:
*Serv-U server
*Domain 1
*User account 1
*User account 2
*User account 3
*Domain 2
*User account 1
*User account 2
*Domain 3
*User account 1
*User account 1
This table is somewhat similar to the arrangement of servers, domains, and users in Serv-U Administrator.
Serv-U FTP Server is trial software. Within thirty days after installation, you can use it as a "professional version", but after the trial period, you can only use it as a free "personal version" with only basic functions.
Okay, having said all that, we haven’t gotten to the key part yet - how to set up an FTP server yourself. I will explain step by step below.
1. Install the original software and Chinese patches. I won’t go into details about this process. I think no one can do it.
2. Establish the first local FTP server
After the installation is complete, the program will run automatically. You can also choose to run it in the menu.
1. When you run the program for the first time, a setup wizard window will pop up.
will take you through the initial setup,
2. Click "Next", and the "Show menu image" window will appear, asking you whether to display small images in the menu. See if you like it;
3. Click "Next". This window will allow you to run the FTP server locally for the first time. Just "Next".
4. Next, you are asked to enter your IP address.
If you have your own server and a fixed IP, then please enter the IP address. If you are only setting up FTP on your own computer and are a dial-up user, some only have dynamic IPs and no fixed IPs, then this step is omitted. , do not fill in anything, Serv-U will automatically determine your IP address, "Next";
5. You are asked to enter your domain name here
If you have one, such as: ftp.abc.com, if not, just fill in any one;
6. "Next" will ask you whether to allow anonymous access
Generally speaking, anonymous access is logged in with the user name Anonymous, without a password. Of course, if you want to set up a member area or something, you should select "No", so that just anyone can log in, only authorized users. , here we fill in “yes”;
7. "Next" will ask you for the directory when anonymous users log in to your computer.
You can specify a directory that already exists on the hard disk, such as F:tempxyz;
8. "Next" will ask you whether you want to lock the directory. After locking, the user who logs in anonymously will only think that the directory you specified (F:tempxyz) is the root directory, which means he can only access it. Files and folders in this directory cannot be accessed outside this directory. For anonymous users, generally fill in "Yes";
9. "Next step" will ask you whether to create a named account, which means you can designate users to access your FTP with a specific account. This is very useful for running a member area. You can create an account for each person. Each account has different permissions, so each person's rights can be restricted in different procedures. The method will be described later. Select "Yes" here;
10. "Next step", please fill in the name of the account you want to create, such as: ldr,
11. "Next step", please enter the password, such as: 123,
12. "Next step", ask what the login directory is. This step is the same as step 7, such as: F:temp
13. "Next" will ask you whether you want to lock the directory. Same as step 8, select "No" here;
14. Next, you will be asked for the administrator rights of the user you created this time.
There are several options: no permissions, group administrator, domain administrator, read-only administrator and system administrator, each with different permissions; select "System Administrator" here;
15. In the last step, click "Finish" and it's OK. If you need to modify anything, you can click "Previous" or enter the Serv-U administrator to modify it directly.
So far, we have established a domain ftp.abc.com, two users, one Anonymous and one ldr.
3. Now that we have established the FTP server, we should be able to use the FTP client software to try to log in.
What to do? It's actually very simple. We can test it without going online. We know that when not surfing the Internet, the local machine's IP address defaults to 127.0.0.1 and the FTP port number is 21. Open the FTP client software, I will use FlashFXP to illustrate, open the quick connection and fill in the corresponding content.
Then connect, you can see that I log in with Anonymous on the left pane, and log in with ldr on the right pane. Since it is a local machine, the speed is extremely fast. After surfing the Internet, if I want you to log in to my computer, I just need to put I give you my IP address when surfing the Internet, so you can access my computer anonymously (be careful not to open the firewall). Isn't it very convenient?
4. Various settings in Serv-U administrator
After the setting is completed, you will enter the main interface of the Serv-U administrator.
Each column is displayed in the left pane, and the specific options for each column are displayed in the right pane. Let's briefly talk about the settings.
1. In Figure 11, we can manually control the running or stopping of the Serv-U engine. Remember, in Win 9x/Me, we have to select "System Services" here to run the Serv-U engine.
2. "License", if you paid US dollars to buy a registration number, you can enter it here.
3. "Settings", this setting is for "Local Server". In "General" settings,
You can limit the maximum speed of the server, you can block FXP (site-to-site transfers), and you can limit the number of users so that your server is not dragged down. In the "Directory Cache" settings,
Allows you to determine the number of directory listings and the timeout. Under Windows 95 and NT, the directory listing is set to 25 by default. When the cache is full, new requests will replace old requests. In the "Advanced" settings, you can define various settings for the server, Socket, and file upload and download.
4. "Activity" records the user's activity log, the activity log of blocked IPs, and the task log. What is displayed in the task log is the record of each operation you started and stopped. You can right-click and select an This filters the text so that it only shows what you want to see.
5. "Domain", which contains the users, settings, domains, etc. you created based on the wizard at the beginning. The content set in "Domain--Settings" is actually similar to step 3, except that it is more specific and can be customized for each different domain. "Domain - Activity" records the activities of all users in this domain.
6. "Domain--Group", we can create some groups for easy management, and then group users of the same type into one group.
7. In "Domain--User", you can see the two accounts we created at the beginning, one Anonymous and one ldr. Now let’s explain the detailed settings of the account ldr.
A. "Account" column:
For some people who do not follow the rules, we can choose "Disable Account". Although there is an account, the user can not log in for a while; you can also set the program to automatically delete an account after a certain date; the following columns are We can change the basic information of this account here. After the password is changed, it will not be displayed, but will be displayed uniformly<
B. "General" column:
You can hide files with hidden attributes, limit the number of logins from the same IP, whether users are allowed to change passwords (this requires support from the client software), the maximum upload and download speed, timeout and idle time, and you can also limit the maximum The number of users, such as 20, means that only 20 users can log in at the same time.
C. "Directory Access" column:
Here you can control the user's permissions for file directories, such as reading, writing, deleting, appending, and executing operations on files, listing, creating, deleting folders, and whether to inherit subdirectories;
If you feel that the directory is not enough, you can also add accessible directories.
D. "IP Access" column:
Here you can stipulate whether a certain IP can access your FTP server. You can deny its access. Just fill in the corresponding IP address, and all future access from this IP will be blocked.
E. "Upload/Download Rate" column:
Here you can set the ratio between upload and download, and control the data traffic relationship between upload and download.
F. "Quota" column:
Here you can set the disk space for each FTP user. Click "Calculate Current" to know the size of all the current space. Fill in the capacity you want to limit in the "Maximum" column.
One last thing, after changing the settings, you must right-click and select "Apply" to make the settings take effect, otherwise everything will be in vain! !
At this point, you must have some ideas on how to set up your own FTP, right? Seeing that you can restrict and monitor visitors' uploads and downloads, as well as the user's space size, do you feel a little arrogant? It seems that I am also an omnipotent network administrator:-)