Traditional Culture Encyclopedia - Photography major - I have installed IIS service, and I can enjoy the website with my own IP on this machine. I want to put my website on the WAN so that others can enjoy it?

I have installed IIS service, and I can enjoy the website with my own IP on this machine. I want to put my website on the WAN so that others can enjoy it?

First, set it with IIS.

If you just want to build a small FTP server with no more than 10 online at the same time, you can use IIS 5.0 as the server software (IIS is only applicable to Windows NT/2000/XP operating system).

1. device

Windows XP does not install IIS components by default and needs to be added manually. Go to the control panel, find the Add/Remove program, open it, and select Add/Remove Windows components. In the Windows Component Wizard window that pops up, select Internet Information Services (IIS). The background color of "√" before this option is gray, because FTP service components are not installed in Windows XP by default. Click "Details" in the lower right corner, and in the Internet Information Service (IIS) window that pops up, find "File Transfer Protocol (FTP) service", select it and confirm it.

Need to restart after installation. Windows NT/2000 and Windows XP are installed in the same way.

set up

After the computer restarts, the FTP server will start running, but some settings need to be made. Click Start → All Programs → Management Tools → Internet Information Service, enter the Internet Information Service window, find the default FTP site, click the right mouse button, and select Properties from the pop-up right-click menu. In "Properties", we can set the name, IP, port, access account, FTP directory location, messages received by users when they enter FTP, etc.

1) Basic information of FTP site

Enter the "FTP Site" tab, where the "Description" option is the name of the FTP site, which is used to address your server. You can fill in it at will, such as "My Site"; "IP address" is the IP of the server, and the system defaults to "?" "All Unassigned" generally does not need to be changed, but if there are two or more IP addresses in the drop-down list box, it is best to designate them as public IP; TCP Port is usually still set to the default port 21; Connect option is used to set the maximum number of users allowed to connect to the server at the same time. Connection timeout is used to set the waiting time. If the user connected to the server goes online for more than the waiting time without any operation, the server will automatically disconnect the user.

2) Set the account and its permissions

Many FTP sites require users to enter a user name and password to log in. This user name and password are called accounts. Different users can use the same account to access the website, and multiple accounts can be set up in the same website. Each account can have different permissions, such as uploading and downloading, and others are only allowed to download.

3) security settings

Enter the "Security Account" tab, and there are two items: Allow anonymous connection and only allow anonymous connection. By default, anonymous connections are allowed. At this point, the FTP server provides anonymous login. Allow anonymous connections only is used to prevent users from accessing with an account with administrative rights. When selected, even the administrator account can't log in, so you can only manage FTP by "local access" through the server. As for the "FTP site operator" option, it is used to add or delete accounts with specific permissions for this FTP server. IIS is different from other professional FTP server software. It manages accounts based on Windows user accounts, and cannot set accounts that FTP servers allow to access at will. To add or delete accounts that are allowed to be accessed, you must first set up Windows user accounts in Computer Management, an administrative tool that comes with the operating system, and then add or delete them through the FTP site operator option in the Security Accounts tab. However, for Windows 2000 and Windows XP Professional Edition, the system does not provide the function of adding and deleting "FTP site operator" account, but only provides the administrator account.

Tip: anonymous login usually does not require the user to enter a user name and password to log in successfully. If necessary, you can log in using "Anonymous" as the user name and any email address as the password.

4) Set the user login directory

Finally, set the FTP home directory (that is, the initial location after the user logs in to FTP), enter the home directory tab, select the root directory of the FTP site in the local path, and set the read-write and directory access rights of this directory. The difference between "UNIX" and "MS-DOS" in "Directory List Style" is that suppose G? \ FTP is set as the root directory of the site, so when users log in to FTP, the former will display the home directory as \ \ "and the latter as \\" G? \Ftp .

After the setup is completed, the FTP server is really built. If the previous IP address was 2 18. 1. 1, when users use FTP client software (upload/download software for logging in to FTP server, such as CuteFTP, FlashFXP, etc. Unless otherwise specified, the FTP client software mentioned in this article takes CuteFTP Pro 2.0 as an example), the host computer should fill in 2 18. 1. 1, and the port should fill in 2 1. The address of this server is expressed as ftp? //2 18. 1. 1. 1? 2 1。 Although IIS is simple to install and set up, its function is not strong and its management is very troublesome. In particular, even a new basic authorized access account needs complex settings, and IIS itself is relatively poor in security and vulnerable to viruses such as "red team" that attack IIS vulnerabilities, so many people like to use third-party FTP server software to set it.

Second, use the third-party FTP server software settings such as serv-u.

Besides IIS, there are many FTP server softwares that can be set, such as Wu-FTP, ProFtpd, U, etc. , but most of them are only applicable to Unix and Linux systems. If you use Windows, SERV-U is highly recommended. Serv-U (download address: //FTPServU.htm, including Chinese package) is a widely used FTP server-side software, which supports all Windows series such as Windows 3x/9x/Me/NT/2000. It is simple to install and powerful. You can set up multiple FTP servers with the same IP, limit the rights of login users, login home directory and space size, and support remote login management. Suitable for the needs of most individuals to build their own FTP.

1. device

The installation of Serv-U is simpler than IIS. First execute the original English installation file, and press the prompt "Next" all the way. It should be noted that when choosing the installation directory, it is best to choose to install in a non-system disk to avoid resetting the account when the system is abnormal in the future. Then execute the Chinese file, select the original installation directory, and press "Next" all the way to complete the installation.

set up

Different from IIS, SERV-U will prompt the user to set it step by step in the form of a wizard when it runs for the first time. The whole process takes less than five minutes, which is very humanized. For the convenience of explanation, suppose we want to set a fixed IP of 2 18. 1. 1, a port of 2 1 and an absolute root path of g? \ FTP, allowing anonymous access and owning a public FTP server, with the user name dys, the password syd and the management account name MyFtp. Run serv-u to open the wizard window and set the following options in turn:

1) "Your IP address": Here we fill in 2 18. 1. 1. If you dial-up through ADSL or other means, you have a dynamic IP or don't know the local IP, please leave it blank.

2) "Domain Name": the name of the FTP site, which can be named at will. Please fill in "MyFtp" here.

3) Anonymous account: determines whether anonymous users are allowed to access FTP sites. Select "Yes".

4) "Anonymous Home Directory": Set the directory location where anonymous users log in to the website. Enter "g? \Ftp .

5) "Lock Home Directory": Assume that the directory location where anonymous users log in is set to "G? \ \Ftp\Guest ",then, after selecting" Yes ",anonymous users will be locked in G? In the \ \Ftp\Guest directory, you can only view the contents of the Guest directory, and you cannot enter the parent directory "Ftp". At the same time, the directory is displayed as \ \ in FTP client software, and if it is not locked, it is displayed as "G? \Ftp\Guest. Select "Yes" here.

6) "Designated Account": determines whether to create an account with certain administrative authority. Select "Yes" here.

7) "Account Name": the login name of an account with certain management authority. Fill in "dys"

8) "Account Password": set the login password of the account. Enter "syd".

9) "Home Directory": Like "Anonymous Home Directory", it is used to set the directory location of the management account after login. Enter "g? \ foot p.

10) Lock Home Directory: Select Yes.

1 1) Administrator Permission: used to set the management permission level of the management account. Select "No Permission" here, which will be explained in detail later.

Setup completed, address: ftp? //2 18. 1. 1. 1? The FTP server of 2 1 was set successfully. Finally, CuteFTP can be used for login and verification of anonymous and dys accounts respectively.

Tip: These settings are not final. You can modify them at any time in the main interface of SERV University.

3. Set up multiple FTP servers with the same IP.

If bandwidth permits, you can easily set up multiple servers with the same IP. In serv-u, every FTP server in the domain under the local server is called a domain, and the "MyFtp" server just created is a domain named MyFtp. Setting up multiple servers is actually creating multiple domains with different ports.

Right-click Domain and select New Domain. In the pop-up wizard, set by referring to "MyFtp", but the port must not conflict with the port of the created "domain" or the port occupied by other system services. If you fill in 22, the address of this server is: ftp? //2 18. 1. 1. 1? 22。 Accordingly, multiple FTP servers can be set up.

Thirdly, use dynamic IP domain name resolution software to set up an FTP server with a fixed domain name.

In the above introduction, we assume that the fixed IP of the server is 2 18. 1. 1, but in fact, most users who want to establish personal FTP usually dial up the Internet through ADSL and other means. Because the IP address assigned after each dial is different, does this mean that the FTP server cannot be set up?

There are two solutions: one is to leave "your IP address" blank in the wizard just now, and then complete other settings of the wizard. Enter the main interface of serv-u, first click "Help → Local IP Address" on the menu bar, copy the local IP address, and then notify each user through other channels. Repeat this operation every time you dial up the Internet; Second, download and install a dynamic IP domain name resolution software on the Internet, such as foreign DNS2Go, domestic peanut shell, 88IP and so on. This kind of software can automatically resolve the fixed domain name to the local IP, no matter how the local IP changes. In this way, users can access your server by entering this fixed domain name as an FTP address. Obviously, the first method is quite troublesome and requires great patience. The second method is simple. Users only need to remember this domain name, regardless of whether the IP has changed. The fly in the ointment is that at present, most of these softwares need to be registered to be used permanently, and they can only be used for 30 days for free without registration.

Let's take 88IP as an example to understand its settings.

Suppose we want to apply for a domain name: dys2.88ip.com first sets up an FTP server with SERV-U (FTP server software such as IIS can also be used) as mentioned above. Please leave your IP address blank and go to. At this time, dys2.88ip.com will be displayed under "Your full domain name is". Click "Register" after confirmation to register. If the registered user name or applied domain name has been registered by other users, the software will give corresponding prompts and re-register after modification. After the registration is successful, "Registration is successful, user ID:?" Will be displayed in the Execution Status. xxxxxxxx? ",write down the user ID for future payment or technical support. Finally, click the "Load" button to load the account information that has just been successfully applied to this machine.