Nowadays, it is common for families to use monthly broadband to access the Internet. When we fully enjoy the pleasure of high-speed surfing, have we ever considered using existing resources to do something for ourselves? By the way, the purpose of today's article is to show you how to set up an FTP server on your local machine. Setting up this kind of server for remote resource sharing is really the best choice! The following steps are mainly based on the Windows XP system as an example.
Today's domestic telecom operators have adjusted broadband tariffs to a level that is easily accepted by everyone. While people are enjoying the convenience and speed that broadband brings us, more and more people are beginning to consider whether they should use existing sufficient resources to do more. Many people target FTP servers. Indeed, using FTP to share remote resources is indeed a very good and convenient way. The following editor will use Windows Xp as an example to explain the basic FTP setup skills.
Warm-up phase:
Don't be busy before you start, we have to find a place for our computer to live online first---apply for a domain name. You want your friends to find your computer in the vast sea of the Internet through its IP address. Currently, most monthly broadband services provide a dynamic IP, which means that the IP address is different every time you dial up. You can't just notify your friends once your IP address changes! The common way to solve this problem is to apply for a free domain name. It is recommended to apply at http://www.oray.net/.
The first step: Apply for a domain passport (i.e. account) and activate a free domain name.
Connect to http://www.oray.net/, click "Register Passport" on the left side of the page, and follow the prompts to complete the registration. Then click "Domain Name Service Center" on the left, select "Registered Domain Name Records" from the drop-down menu, and then enter your personalized domain name in the "Free Domain Name" box.
Step 2: Install dynamic domain name resolution software locally.
That is, the Peanut Hull client, download: http://www.oray.net/Products/PeanutHull_Support.asp. After the download is completed, follow the prompts to install it. When reaching the steps as shown below, please enter the account and password we just registered on the website.
Fill in the domain passport
Continue to "Next Step" all the way, and the software will start automatically after installation. At this point, the problem of dynamic IP address has been solved, and your computer can be found in the Internet. Next, you can officially configure the FTP service!
Erection stage:
Generally on the Windows platform, the most common way to set up an FTP server is to use the system's own IIS and the third-party software serv-u. For the similarities and differences between these two methods, you can refer to the relevant reports of IT168. The main thing is: IIS settings are relatively simple, but security is not high; serv-u is relatively more secure. The following is the installation process of IIS.
If you are building a small FTP server (the kind with no more than 20 simultaneous visitors) and will not transmit large amounts of data at the same time (such as audio and video), then this method is the simplest and easiest to implement, but Pay attention to the operating system version, IIS is only applicable to Windows NT/2000/XP systems.
Step one: Install IIS components.
Generally, this component is not installed during system installation, so please go to the control panel, open the "Add/Remove Windows Components" item in "Add/Remove Programs", and select "Intenet Information Services (IIS)" in the pop-up window. Select; then click "Details" in the lower right corner, check "File Transfer Protocol (FTP) Service", and finally confirm.
Step 2: Set the directory path to be shared.
This directory is the file list that others see when accessing your FTP server. In the management tools of the control panel, open "Internet Information Services". Find "FTP Site" on the left side of the window and open the drop-down list, then right-click on "Default FTP Site" and select Properties, switch to the "Home Directory" tab as shown below. The address in the "Local Path" box is the default FTP shared directory. Please click Browse to specify your actual shared directory. In addition, you can also set the file access permissions of the FTP server here. For security reasons, we generally only allow read permissions. , to prevent anonymous users from modifying directory files at will, and only enable "write" permissions for legitimate users when necessary.
Step 3: Complete the configuration.
In the "Default FTP Site" window, switch to "Security Account" and uncheck "Allow anonymous connections"; in the Message tab, you can set the prompt message that appears when the user accesses or logs out of your FTP server, as you like Enjoy writing! There is also a "maximum number of connections" setting, which refers to the maximum number of hosts that can connect to local FTP at the same time. If your computer configuration is not very good, it is recommended not to exceed 5.
After correct configuration in the above three steps, your FTP server should already be working. To be on the safe side, we can first test whether the access is normal on this machine. The method is very simple: enter (ftp://the free domain name you applied for in the peanut shell) in the address bar of the browser. If you can see that you are in Directory and files under the path set in the IIS "Home Directory" will be successful.
Supplement: In the security user settings, IIS is different from other professional FTP server software. It is managed based on Windows user accounts and does not support arbitrary setting of allowed access accounts; you need to add or delete an account that is allowed to access. , you must first set it in "Computer Management" in "Administrative Tools" in the Control Panel, and then add or delete it through the "FTP Site Operator" option in the "Security Account" tab of IIS.
IIS is easy to set up and the implementation process is quick. It is more suitable for users who are playing server applications for the first time. After using IIS for a period of time and accumulating considerable experience, you can use some powerful third-party software, combined with knowledge about FTP firewalls. establish.