Set up a personal server-Network music collection tutorial (Intranet, Internet)

Source: Internet
Author: User
Tags ftp file ftp login ftp site ftp client free ftp ftp access home screen
Set up a personal server-Network music collection and sorting tutorial (Intranet, Internet) Set up a personal server-Network music collection and sorting tutorial (Intranet, Internet)

※※※This document isJIN GuangShared with jgwy.net community-golden light free space/commercial space base camp. Do not reprint it without prior consent ※※※
Preface:

Recently, many netizens have been asking: How can I use my own machine to set up a server to put on a dynamic network forum?
All in all, people have different levels and different questions, but this is related to whether the setting is successful and whether the online forum can be used normally. So I went online to help you find this article, more details are required. If you want to set up a server of your own, please take a good look at this post :)

When you see others' exquisite personal homepages, you will be tempted, but now there are fewer and fewer free resources. When you spend a lot of time searching for free homepages, in the end, they bring some regrets to themselves due to their instability. In addition, in the information society, we often need to transfer, store some documents and materials, or share files with others. The FTP service is often used as our best information transmission method. However, many times, when we travel back and forth to those free FTP servers, we cannot log on normally because there are no anonymous accounts or too many users. In fact, we can avoid these flaws and try our best to create a personal server of our own, so we will not have a free ride and start to experience the pleasure! Next we will start our personal server network setup journey with me.
WWW Server SETUP

Every day, we browse all kinds of websites to obtain all kinds of information. www servers provide such services. Currently, many information providers provide paid services for WWW servers. In fact, we can create our own personal WWW server, publish some personal information on the Internet, and enjoy being an administrator. There are many ways to set up the WWW server. The following describes some mainstream implementation methods:

1. Use IIS provided by Microsoft

At present, a large part of WWW servers are built on Microsoft's IIS. The environment is winnt/2000/XP + Internet Information Service (IIS). I believe many users are currently using Win2000 or WINXP systems. In Win2000 professional and WINXP systems, by default, IIS is not installed at the initial installation of the system (the current version is iis5.0). Therefore, you must add these components to the system.

Step 1: Install IIS

A. Select "Add/delete programs" in the control panel and select "Add/delete Windows Components" (1) in the displayed dialog box ).

B. Select "Install Internet Information Service (IIS) (2)" in the check box that appears. This component requires about 19 MB space.

C. Click "Next" and add the Win2000 installation CD to the optical drive. The installer will copy the program file to the hard disk and click "end.

Step 2: basic configurations of web servers in IIS

The basic configurations of web servers in IIS include the following:

A. open the IIS server configuration window and Select Start> program> Administrative Tools> Internet Service Manager ", alternatively, you can choose ">" Control Panel ">" Administrative Tools ">" Internet Service Manager ". Window 3 is displayed.

B. In the displayed window, right-click "Default web site" and select the "properties" menu.

C. in the displayed "Default web site properties" window, select the "home directory" label to set the location of the web content on the hard disk. The default directory is "C:/inetpub/wwwroot ", you can set it as needed (4 ).

D.select the document tab in the document window, set the initial Page name, for example, myfirstweb.htm, and add and move it to the top (5) of the list ).

E. check whether the default web site has been started. If not, right-click "Default web site", select "start", and enter the local IP address in the IE Address Bar, you can see that the home page you specified has been published on the Internet.

Here is just the most basic setting options for IIS. You can also set the "Default web site attribute" mentioned above as needed to configure IIS security and other parameters.

Although IIS is easy to use, it also has many security vulnerabilities by default, including the famous Unicode and CGI vulnerabilities. Therefore, after IIS is installed, we recommend that you continue to download and install the security vulnerability patches SP1 and SP2 on the Microsoft homepage. In addition, it is recommended to convert the file system of the disk to the NTFS format. The partition of the installation system can be converted after the system is installed, or you can use tools such as pqmagic after the system is installed.

2. Use Microsoft's PWS

PWS stands for "Personal Web server", which is literally a personal Web server provided by Microsoft. It is mainly suitable for creating small personal websites. It is easy to configure and use, however, the function is powerful. The difference with IIS is that PWS can be installed in Win9x/ME/NT/2000/XP systems, so it is especially valuable for Win9x/me systems.

Step 1: Install PWS

For the Win9x/me system, place the Win98 installation disc in the optical drive, enter the add-ons/PWS/directory of the disc, and double-click the setup.exe command to start PWS installation, as shown in installation interface 6. If you need some advanced functions such as ASP, you can also select a custom installation mode. Otherwise, select a typical installation. After the component is installed, the options shown in 7 will be displayed to set the WWW Service Directory. We can set it according to the actual situation. We recommend that you use the default directory for installation. After selecting "finish" and restarting the computer as prompted, you can see the PWS icon (8) in the taskbar in the lower right corner ).

Open an IE window and enter "http: // localhost", "http: // 127.0.0.1", or "http: // your IP address" in the address bar ", the default PWS page is displayed, indicating that PWS has been successfully run.

For Win2000/XP, PWS is installed as a component of IIS. If you are a Win9x/me system, it doesn't matter if you do not have a PWS disc installed.

Step 2: Configure PWS

Double-click the PWS icon in the lower-right corner of the screen, or select the corresponding program group in the menu to start "Personal Web Manager" (9 ). From the Manager interface (Figure 9 is the iis pws in Win2000, so there are only three options), we can see that it consists of five parts, which can manage different functions separately, to use PWS to set up your own WWW server, follow these steps.

A. Start PWS. In PWS's home screen options, it is subdivided into "publish" and "Monitor. You must first click the "Start" button to open the PWS service. Here, you can also view some web site access statistics through the content in "monitoring.

B. Set the virtual directory. Assume that Your webpage is stored in "E:/ww/homepages/homepage.pdf, and the first page is named" myfirstweb.htm ". Select a virtual directory in Figure 10 and click the Add button. In the displayed add directory dialog box (11), specify the drive letter and directory of the webpage, here is "E:/ww/homepages/Homepage", and you can set an alias for your own virtual directory. the alias can be set as needed. It is the name of the directory when a friend accesses your website. Security suggestion: Set the directory access permission to "read" and "script". For security reasons, do not select the "execute" permission.

By default, the root directory of the PWS server is "C:/inetpub/wwwroot ". If you do not want to set a virtual directory, you can copy all the files on your webpage to this directory. For example: copy all the files in/ww/homepages/Homepage to "C:/inetpub/wwwroot.

C. Set the default document. Next, set a webpage document that can be automatically recognized by default for your virtual directory. The purpose of this document is to automatically provide a default document for access when you enter this site without specifying the document to be accessed. ". Security suggestion: For security reasons, do not select the "allow browsing directory" check box to avoid others seeing all the files in the entire directory.

D. Create an access record. If we want to monitor visitors who visit our page, you can also select "save Web site activity log" in advanced (figure 11 ", the system will automatically help us record the data for accessing the web site, which will record the visitor's IP address, access time and access content. In the "C:/Windows/system/logfiles" folder, the server creates a file named "ncyymm. log" (yy is the year, mm is the month ). This file can be viewed in a text editor or by running the "type" command in the DOS window.

After such simple settings, open IE and enter your own IP address to view your Published Home Page. You can debug your site whether you are surfing the internet or not. Of course, you can also use a special IP address to check the installation correctness and delivery address, namely http: // 127.0.0.1 or http: // localhost.

In addition, PWS has several other options to enhance its functionality, including the following two labels.

A. Release. This part mainly provides the ability to customize the personal homepage to publish and edit the file publishing list,

You can publish files for others to browse and download. This process actually integrates the ASP function of PWS. In addition, you can create a guest book and a message book when customizing the personal publishing homepage. For example, if you want to publish "D:/download/tt.zip", select "publish" first ", click "Next" to go to the "Release wizard". In the "Release wizard", enter the corresponding project (12 ). Click "add" and click "Next". PWS prompts you to "Add the following files: tt.zip ". Released. Open the IE window and visit your web site. You can see that there is a link to the release document on the web page, which contains the file that was just configured for release.

B. Web site. Click "web site" to display the "home page wizard" interface. PWS provides three templates for the home page, guest book, and message book. Select the option as prompted by the Wizard to display the dynamic ASP settings page. You can edit the home page, view the guest book, and open the guestbook to obtain some feedback.

3. Use Apache

Apache is the most widely used Web server configuration software in the world. More than 50% of websites are using it. It is mainly efficient, stable, secure, and free (the most important thing) it is famous. At present, the latest version is 1.3.26, and the file size is only 2.07 mb. You can go to its homepage: http://www.apache.org/dist/httpd/binaries/win32download. Remember to select a non-original code version (Apache_1.3.26-win32-no_src.msi) for Win32 when downloading ). The latest version of Apache for Win32 is released in the form of MSI, which makes it very easy to install Apache in windows. It is a full English interface, but it is very convenient to use.

Step 1: install Apache

A. Double-click the Apache installation file. Just like installing a common Windows program, click "Next.

B. during the installation process of the program, it also requires you to enter your network domain (network domain name: such as xxx.com), server domain (server domain name www.xxx.com), and website administrator's e-mail, if yes, enter the actual information. If no individual user can enter the information in the format (13 ).

C. Select the installation path according to your habits.

D. Click "Next" until "finish" to complete the installation.

At this time, your Apache has been started. You can enter "http: // localhost" or "http: // 127.0.0.1 ". The default Apache homepage (14) is displayed ). In addition, you can find the apache service in the "service" item of "Administrative Tools". Apache can be used as a service in the future and automatically run as the machine starts.

Step 2: Configure Apache

The core configuration file of Apache is "httpd. conf ", which is located in the Apache installation path/CONF/on the computer. If it is installed in the root directory of drive C, the file should be in" C: in/Apache/CONF/, open the "Start Menu"> "program"> "Apache HTTP Server"> "edit the Apache httpd. conf configuration file can also be used. In the latest version 1.3.26, its role is more obvious. Open it in notepad and you can see that these configuration files all exist in text format. "#" is the annotation symbol of Apache, you can click "Search" in the edit option in the notepad menu to enter the following keywords and configure them accordingly. 15. Find "DocumentRoot" in the configuration file ".

A. Configure DocumentRoot. This statement specifies the path of your website, that is, the directory on your home page. You can use the default one, which is generally a sub-directory under the Apache installation directory. You can also specify one by yourself. Note that "/" is not added at the end of this sentence. In addition, the path separator is written as "/" in Apache server. For example, we can set it to "E:/ww/homepages/Homepage" here. When you open the home page, the document opened by default is directly searched in this directory.

B. Configure directoryindex. This is the homepage displayed by default on your site. For example, you can add the homepage name myfirstweb.htm in "E:/ww/homepages/homepage.pdf. In general, we can add indexes index.htm index. php index. php3 index. cgi index. pl default.htm here. Note: Leave a space between each type.

The above two steps are basically set up. Start IE and enter the IP address of your computer to access your web site. You can also define your domain name at the servername of the file, enter your email address at serveradmin. The above two items are selected during installation and can be modified here later.

In addition, if you refuse some people to access your WWW site, you can also find the access file in the Apache installation directory and enter the IP address you prohibit.

It can be seen that appache does not have a graphical configuration interface, which is also the main reason for its high security and stability, but its configuration is very simple. You only need to enter parameters in the text file, the WWW server architecture is the most professional among all methods.

4. Other methods for setting up www servers.

At present, there are a lot of software set up on WWW servers for use, and many of them are still free software. You can try it. Here is a brief introduction of several software and.

A. AnalogX Simple Server. For ease of use, you only need to drag and drop the "“index.html" into the simple server, and the rest will help you solve the problem. The software can run Under Win9x/NT/2000/XP. The software size is only kb. It is an English software, but it is completely free of charge. One of its download sites: http://ln.skycn.net/down/sswwwi.exe (16 ).

B. Free Website expert XP. It is a Chinese software that does not require a fixed IP address or a domain name. You can create a website on a computer connected to the Internet, can also be used in Win9x/NT/2000/XP system, the software size is 2068kb, is also a free software, download site: http://ln.skycn.net/down/fwb_xp.exe (17 ).

C. Tianyan web server. This is also a Chinese Web Server SETUP tool with exquisite interfaces and ease of use. Supports virtual directories without installation and garbage. It is also very simple to use. Can be used in Win9x/NT/2000/XP, the software size is 612kb, is also a free software, download site: http://ln.skycn.net/down/webserver.zip (18 ).
Setting up an FTP server
In our actual network life, especially after broadband access, FTP servers are widely used as file transmission and sharing tools. The FTP Server delivers stable file transmission performance, occupies a small amount of system resources, and delivers fast data. Many FTP servers are available on the Internet, it is easy to set up an FTP server by yourself. The following describes two mainstream FTP architecture methods.

1. Use Microsoft's IIS

Microsoft's IIS is very powerful. In addition to providing WWW services, it also provides FTP services. using it, you can easily build an FTP server with excellent functions.

The installation of IIS has been explained before. Let's take a look at the steps for setting up an FTP server through IIS.

Step 1: Start IIS and start the FTP service on IIS. By default, your FTP server has been set up and can be logged on immediately, but there is no file in the FTP.

Step 2: Right-click the "Default FTP site" item in IIS and select the "properties" menu to display the 19 dialog box.

Step 3: Select the "main directory" label and fill in the "local path" of the FTP site directory with the shared file path you want to set. By default, the folder here is located at "C:/inetpub/ftproot". If you want to change the shared directory temporarily, you can modify it at any time (20 ), the file list displayed when someone else logs on to your FTP server is in this directory.

Step 3: In the "main directory" tab, you can also set the FTP server's file access permissions, including reading, writing, and Log Access. For security reasons, write Permission is not selected here, so anonymous users cannot operate on your files at will.

Step 4: Set the logon user. If you are willing to provide "anonymous" access permissions, you also need to select "Allow anonymous connection" (21) in "security tag ). In addition, you can select a special account for the FTP server from the Windows system account. Of course, you can also set your own username and password.

Step 5: In the "message" tab, there are three input boxes: "Welcome", "exit", and "Maximum connections, it indicates the prompt information provided by others on the FTP server upon login or exit. You can set it according to your own needs. In addition, the maximum number of connections is set to the maximum number of hosts that connect to the local FTP simultaneously (22 ).

Step 6: Set the ftp id in the "ftp site" tab, including description, IP address, and port. Generally, you do not need to change it here. Select the default value (23 ). In addition, in the "C:/winnt/system32/logfiles" directory, you can also see the ftp ip address, time, and other log information connected to you.

In this case, you can use IE or any FTP client software to log on to the FTP site you have set up.

2. Use Serv-U

In the construction of the FTP server, Serv-U is currently one of the many tools used. It is easy to set, powerful, and stable. In general, it is better than the FTP server attached to IIS. It is applicable to all Windows versions. It is a shared software that allows users to use it for free for one month.

Step 1: download and install Serv-U.

Currently Serv-U is up to 4.0, the file size is 2.9 MB, one of its download sites is "http://www.download.com.cn/show.phtml? Action = detail & id = 484 ".

Click the downloaded executable file to start installation. The installation process is very simple. You can keep the default value for all settings. Press "Next" to complete each step (24 ). After the installation is complete, the Serv-U icon appears on the Windows desktop. Double-click the Serv-U icon and the main Serv-U window appears, click Start server in the right window of the main interface to start the FTP server.

Step 2: Configure Serv-U.

After Serv-U is installed, the Configuration Wizard appears. You can use this wizard to configure it. The main steps are as follows.

A. the installer starts a setup wizard to help you set up the FTP server and click "Next" to continue.

B. In the displayed dialog box, enter the IP address that you want to bind to the FTP server. Unless your computer has multiple fixed IP addresses and you only want one of them to be used by the FTP server, we recommend that you do not have a fixed IP address, leave this item empty (that is, enable automatic detection by the system), and click "Next" (25 ).

C. Enter the domain name (domain name ). Enter the domain name of your FTP server. However, the domain name is determined by DNS resolution rather than here. Therefore, you can fill in any content, such as text that describes FTP like "My Personal FTP server.

D. Enter the ftp access port number, which is usually 21 by default.

E. Create and Access Directory settings for anonymous users. First, the wizard will prompt you if you want to create an anonymous account. Here you select Yes. If you do not select this option, you need the user name and password to access the FTP server. Next, the installation wizard prompts you to enter the main directory of an anonymous user (anonymous home directory). Here, you can set the location for anonymous users to access the hard disk as needed.

F. select whether to restrict anonymous users to their home directories. If yes, users can only access their home directories and the following directory trees. If no, you can access the directory tree at the same level or higher level in the home directory. From the security perspective, we recommend that you select YES.

G. Create a new user and access directory. Follow the wizard prompts to create a new user and enter the password (26). Then, specify the Directory and user permissions that the user can access.

By now, your personal FTP has been set up. However, this can only implement the default functions and permissions granted by Serv-U. To enable the server to be controlled and managed as you like, you still need to perform the following operations, this mainly includes the following points.

A. Management of FTP users

To add a new user (including adding anonymous users), select users (users) in A Serv-U domain, right-click and choose new user ), set the user name, password, home directory, and so on as prompted (27 ).

To delete a user, right-click the user and select Delete user.

B. Manage Directory Permissions

Select the user name in the left frame of Serv-U, and then enter the Dir access (Directory Access) window in the framework on the right. After selecting the corresponding directory in the list, you can change the current user's access permission on the right side of the window (28 ).

File attributes include:

Read: the power to read (copy, download, not view) files.

Write: the power to write (upload) an object.

Append: the power to write and attach files.

Delete: The right to delete (upload, rename, delete, and move) an object.

Execute: the power to run executable files directly.

List: The view power of files and directories.

Create (create): Permission to create a directory.

Remove: the right to move, delete, and rename directories.

Inherit (inheritance): If this option is checked, the property set above will act on the current path (directory) and its entire directory tree; otherwise, it will only work for its current directory.

C. Other settings

You can also set some common information about the server at setting under the local server.

In "Max no. of users", set the maximum number of users simultaneously logging on to the server.

In the max. Speed Field, set the maximum download speed for the user based on the configuration of your computer.

Select the "Block users who connect more than xx times within YY seconds for ZZ minutes" check box and set the corresponding value, it can prevent some malicious users from logging on to the server frequently in a short period of time for the purpose of attack.

Select the delete partially uploaded files check box to automatically delete incomplete files on the server after the upload fails. If you do not select this option, you can enable Serv-U to support the resumable upload function (29 ).

3. Other methods for setting up an FTP server.

A. WS_FTP Server. This is a very distinctive FTP server program. It has a simple and powerful graphic interface. It is easy to set up and can be used in the Win9x/NT/2000/XP system. It is a shared English software with a file size of 3.3 MB. Download Site: http://www.skycn.com/soft/1296.html.

B. filezilla server. As a small and usable FTP server software, it is easy to configure and has powerful functions. It is suitable for all versions of the Windows series. The file size is 637kb, and it is completely free of charge, one of its Chinese Version Download sites: http://www.skycn.com/soft/8091.html.

C. typsoft FTP server in Chinese. The software has been hand-written, so it is easy to use. It is a very suitable FTP server software for beginners. It is easy to configure and can be used to conveniently manage users. The software size is only kb, is a free software, one of its download sites: http://www.skycn.com/soft/8335.html.

WWW server and FTP access

WWW access can be implemented using IE or other browsers, such as natscape and opera that we often see. Since it is easy to access, we will not discuss it in detail here.

There are two methods to access FTP:

A. directly use IE to log on to FTP. The ie We are using can also be used as the FTP login tool. Just like browsing the webpage, you only need to change the HTTP address in front of the address to FTP, for example, accessing your own ftp, you can enter ftp: // localhost (30) in the browser. This is an anonymous access method. If you use IE to log on to FTP, you need the user name and password, right-click the logon menu (31) and enter the user name and password in the dialog box. After ie logs on to the FTP server, the files on the FTP server are the same as those on the local machine, and can be copied and pasted.

B. use special software to log on to FTP. There are many such software, including flashfxp, CuteFTP, and LeapFTP.

I personally think LeapFTP is very good, easy to operate, and occupies a small amount of resources. Its usage is described as follows step by step.

Step 1: download and install LeapFTP.

At present, LeapFTP is a newer version of 2.7.2, which is a shared software. The simplified version of LeapFTP v2.7.2.592 can be downloaded at http://www.skycn.com/soft/711.html. Its installation is very simple. You can simply click "Next" to complete the installation. After the installation is complete, there are only a few configuration files and its own independent program. Basically, it is a green software.

Step 2: Use LeapFTP.

A. Open LeapFTP, and its main interface is 32.

B. Add an FTP site. Click "sites"> "Site Manager" on the menu (or press the shortcut key F4) to bring up an FTP site management window. Click "add site" to create a site. In the dialog box on the right, enter the basic information of the site one by one, for example, the server name (you can enter the name at will, mainly for management convenience), server address, port, and user name (33). to log on to the FTP site, double-click the name in the left-side window.

C. Obtain the file list on the FTP server and upload or download the file as needed. After logging on to FTP, you can see the FTP file list in the upper right window of LeapFTP. If you need to download the file, drag the selected file to a directory on the local hard disk on the left (34) you can. Similarly, you can use this method to upload files on the hard disk to the FTP server.

Domain Name application and dynamic IP Solution

To facilitate memory, we can apply for domain names for WWW server and FTP server addresses.

Netease provides a free Domain Name application, you can go to http://my.yeah.net/apply-new.htmget free (35), for example, apply for http: // 202.117.51.43 corresponding domain name http://forus.yeah.net, in this way, you no longer need to remember meaningless digital symbols when accessing your WWW Service. Enter your domain name in the browser. In addition, jacke wonderful (http://www.k666.com/k666/yu-ming/apply.php) and my001.net (http://www.my001.net) are also provided free WWW Service Domain Name application.

For FTP, the number of domain name application sites is relatively small. Here we recommend that you change the old domain name to the free service to raise www.dhs.org. Open the website, click the signup connection, and enter the registration content, including the user ID, user name, and user's e-mail address, activate the registered account through the e-mail address sent to you by this website. Then you can log on to the website according to the password provided by the website, click "login", enter the account and password, and then add the domain name conversion Service (36 ). After registering a domain name, if you want to access your FTP later, you only need to enter the registered domain name, for example, enter a ftp://forus.dhs.org to represent the FTP server on your local machine.

When constructing WWW and FTP servers, we usually need static IP addresses. In fact, for many dialing users, IP addresses often change. Therefore, when setting servers, it is very complicated to often tell other people to access the changed IP address. There are two ways to solve this problem.

The first method is to apply for a dynamic Domain Name System. www.3322.orgwww.dhs.org provides such services. The setting steps are similar to the above steps for applying for a Domain Name Service.

Second, we can use the dynamic domain name client developed by xiwang to solve this problem by setting it. To use the software, you must first register a dynamic domain name for free in the Greek network. In "management account", enter the applied user name and password to add the registered account (37 ). To better use this software, you also need to set parameters, select an automatic detection IP address within a certain period of time, and set it to boot automatically (38 ). This way

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.