Anyone who has downloaded software on the Internet knows that it is relatively simple to build an FTP download server. Generally, IIS that comes with WIN2000 is used, but many functions of IIS are not satisfactory. Here I will introduce a software, which is very powerful, but uses a simple FTP server to build -Serv-U FTP Server. Come and experience the happiness of our DIY FTP server!
Before explaining the use, let me briefly introduce Serv-U (the version of Serv-U mentioned in this article is 3.0.0. 17, using the Chinese program made by the author):
Serv-U is an FTP server program, which can run under Windows 95/98/2000/ME and Windows NT 4.0 (Figure 1).
Figure 1
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, copy, move and delete files or folders in your computer through FTP protocol (file transfer protocol), and do everything with permission. FTP protocol stipulates the standard communication mode between computers, which enables all computers with different types, different operating systems and different formats to exchange files. It can create a user account in the simplest way, divide a certain area on the hard disk space to store files, and let users upload or download the required files with various FTP client software (such as CuteFTP, WS_FTP, etc.). ).
There are many FTP server and client software that can be used in different systems. Serv-U is used for personal computers running MS-Windows and WinSock versions 1. 1, and is compatible with TCP/IP protocol, including almost all Windows operating systems.
Serv-U consists of engine and user interface. Serv-U Engine(ServUDaemon.exe) is actually a program that resides in the background, and it is also the heart of the entire software of Serv-U, which is responsible for processing FTP commands from various FTP client software and executing various file transfer software. After running the Serv-U engine, that is, the ServUDaemon.exe file, we can't see any user interface. It just runs in the background, and we usually can't influence it, but we can stop and start it in ServUAdmin.exe. The Serv-U engine can run as a local system service under any Windows platform. System services start running with the start of the operating system, 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 "Auto Start" in the "Server" panel to make it a system service. The Serv-U user interface (ServUAdmin.exe) is also the Serv-U administrator, and is responsible for the interaction with the Serv-U engine. It allows users to configure Serv-U, including creating domains, defining users and telling the server whether it can be accessed. The easiest way to start the Serv-U administrator is to directly click the "u" icon in the system bar. Of course, you can also run it from the start menu.
It is necessary to explain some important concepts in Serv-U: each running Serv-U engine can be used to run multiple "virtual" FTP servers. In the administrator program, each "virtual" FTP server is called a "domain". Therefore, it is very useful for the server to establish multiple domains. Each domain has its own users, groups and settings. In general, the installation wizard will set an initial domain and user account when you first run the application. The relationship among servers, domains and users can refer to the following table:
*Serv-U server
* domain 1
* User account 1
* User account2
* User account 3
* Domain 2
* User account 1
* User account2
* 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 a trial software. It can be used as a "professional version" within 30 days after installation, but it can only be used as a free "personal version" with only basic functions after the trial period.
Ok, that's all, but we haven't got to the key part-how to build an FTP server ourselves. I will explain it step by step below.
First, install genuine software and Chinese patches. I don't want to say much about this process. I don't think anyone will.
Secondly, establish the first local FTP server.
After installation, the program will run automatically, or you can choose Run from the menu.
1. The first time you run this program, it will pop up the installation wizard window (Figure 2).
Figure 2
Will take you through the initial setup,
2. Click "Next" to open the "Display Menu Image" window and ask if you want to display a small image in the menu to see if you like it;
3. Click Next. This window allows you to run the FTP server locally for the first time. Click Next.
4. Next, you are asked to enter your IP address (Figure 3).
Figure 3
If you have your own server and a fixed IP address, please enter the IP address. If you only set up FTP on your computer, and you are a dial-up user, there is only dynamic IP, but there is no fixed IP, then this step is omitted. Don't fill in anything. Serv-U will automatically determine your IP address, "Next";
5. You need to enter your domain name here (Figure 4).
Figure 4
If there is, such as ftp.abc.com, if not, fill in one;
6. "Next", asking if you allow anonymous access (Figure 5).
Figure 5
Generally speaking, Anonymous access does not require a password to log in with anonymous as the user name. Of course, if you want to set up a member area or something, you must choose "No", so that no one can log in, only authorized users can. Here we fill in "yes";
7. "Next", ask your directory when an anonymous user logs on to your computer (Figure 6).
Figure 6
You can specify a directory that already exists on the hard disk, for example, f: \ temp \ XYZ;
8. "Next" asks if you want to lock the directory. After locking, the anonymous login user will only think that the directory you specified (F:\temp\xyz) is the root directory, which means that he can only access files and folders in this directory, but not files and folders outside this directory. For anonymous users, generally fill in "Yes";
9. "Next", ask if you want to create a named account, that is to say, you can specify users to access your FTP with a specific account, which is very useful for operating the member area. You can create an account for everyone, and the permissions of each account can be restricted in different programs. Method will be mentioned later. Here, select "Yes";
10, "Next", please fill in the name of the account to be established (Figure 7), such as ldr,
Figure 7
1 1, "Next", please enter the password, such as 123,
12, "Next", ask what the login directory is. This step is the same as step 7, for example: F:\temp.
13, "Next", asking whether to lock the directory, as in step 8, and selecting "No" here;
14. Next, I ask you about the administrator rights of the user created this time (Figure 8).
Figure 8
There are several options: no permission, 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 you will be OK. If you need to modify anything, you can click "Back" or enter the Serv-U administrator to modify it directly.
So far, we have established a domain ftp.abc.com with two users, an anonymous user and an ldr user.
Thirdly, now that we have established an FTP server, we should be able to try to log in using FTP client software.
What shall we do? It's actually very simple. We don't have to test online. We know that when not surfing the Internet, the IP address of the local machine is 127.0.0. 1 by default, and the FTP port number is 2 1. When I open the FTP client software, I will use FlashFXP to explain, open the quick connection and fill in the corresponding content (Figure 9).
Figure 9
Then connect, from figure 10.
Figure 10
As you can see, I log in with Anonymous in the left pane and ldr in the right pane. Because it is a local computer, it is extremely fast. After surfing the Internet, if I want you to log on to my computer, I just need to give you my IP address when surfing the Internet, and you can visit my computer anonymously (be careful not to open the firewall). Is it convenient?
Iv. settings in Serv-U administrator
After setting, you will enter the main interface of Serv-U administrator (figure 1 1).
Figure 1 1
Each column is displayed in the left pane, and the specific options for each column are displayed in the right pane. Let's talk about the settings.
1. In figure 1 1, we can manually control the operation or stop of the Serv-U engine. Remember, in Win 9x/Me, we must select "System Service" here to run the Serv-U engine.
2. "License", if you bought the registration number in US dollars, you can enter it here.
3, "Settings", this setting is for the "local server". In the "normal" setting (Figure 12),
Figure 12
You can limit the maximum speed of the server, intercept FXP (inter-site transmission) and limit the number of users, so that your server will not be dragged across. In the directory cache settings (Figure 13),
Figure 13
Allows you to decide the number of directory lists and timeout. Under Windows 95 and NT, the default setting of directory list is 25. When the cache is full, the new request will replace the old request. In the advanced setting (figure 14),
Figure 14
You can define settings for server, socket, file upload and download.
4. "Activity", which records the user's activity log, blocked IP activity log and task log; The task log shows the records of various operations that you started to stop. You can right-click and select a filtered text to display only what you want (Figure 15).
Figure 15
5. "Domain", including users, settings, domains, etc. You set it up at the beginning according to the wizard. The content setting 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 set up some groups that are easy to manage, and then put a class of users in one group.
7. In "Domain-User", we can see two accounts that we established at the beginning, one is anonymous and the other is ldr. Now let's explain the details of the account ldr.
A, "account" column (figure 16):
Figure 16
For some people who don't follow the rules, we can choose to "disable accounts". Although there is an account, the user is temporarily unable to log in. You can also set the program to automatically delete the account after reaching a certain date; The following columns are the basic information of this account, and we can all modify them here. After the password is changed, it will not be displayed, but will be displayed uniformly.
B, "General" column (Figure 17):
Figure 17
You can hide files with hidden attributes, limit the number of logins on the same IP, whether users are allowed to change passwords (which requires the support of client software), the maximum upload and download speed, timeout and idle time, and limit the maximum number of users, such as 20, that is, only 20 users can log in at the same time.
C, "directory access" column (figure 18):
Figure 18
Here, you can control the user's rights to the file directory, read, write, delete, append and execute files, list, create and delete folders, and whether to inherit subdirectories;
If you feel that there are not enough directories, you can also add accessible directories.
D, "IP access" column (figure 19):
Figure 19
Here you can specify whether an IP can access your FTP server. You can refuse its access, just fill in the corresponding IP address, and all access to this IP will be blocked in the future.
E, "upload/download rate" column (Figure 20):
Figure 20
Here you can set the ratio of uploading and downloading, and control the data flow relationship between uploading and downloading.
F, "quota" column (figure 2 1):
Figure 2 1
You can set disk space for each FTP user here. Click Calculate Current to find out all the current space sizes, and fill in the capacity you want to limit in the Maximum column.
Finally, after changing the settings, you must right-click "Apply" to make the settings take effect, otherwise everything will be in vain! !
At this point, I think everyone has some ideas on how to build their own FTP, right? Isn't it a bit high to see that you can limit and monitor the upload and download of visitors and the size of user space at will? It seems that I am also an omnipotent network administrator:-)
Whether there is a server or not, download it and try it, and experience the feeling of being a network administrator.