Beginners must read the ASP operation environment

xiaoxiao2021-03-05  22

First select the operating system. Since the ASP belongs to the MS (Microsoft), we have to select the MS operating system, and Windows 98 can be used (Windows Me and Windows XP HOME).

Then it is to build a personal web server (Personnel Web SERICE), which is to be based on the operating system. The configuration is this: Win98 PWS (Personnel Web SERICE) / Win2000 Pro IIS (Internet Information SERICE) / Win2000 Server IIS (Win2000 Server IIS is the default installation) / Win2000 Advance Server IIS (here IIS is also the default installation) / WinXP IIS / WIN2003 IIS. Tell how to install and configure PWS / IIS.

I. PWS installation and configuration: PWS is contained in Win98's dedicated disc, you can find downloads online, then click Install, not much to say it is installed, it is the same as other software installations. After installation, there will be a "release" icon on the Win98 desktop, and there is an icon next to the task bar clock. You will add one in the start -> program. This is PWS, no matter which place you can start it. The default status is started after installation. Click to open. Here we have a few items to be set. First set the primary directory, in "Advanced", select the primary directory for settings, default is in x: / inetpub / wwwroot (x: Representation system disk), you can make changes, change to the directory you want. Set up a document again, this is the file name you open by your own site by default. Insior usually have default.html and default.asp, but generally we are used to using index.asp and index.htm as the home page name, so we have to add index.asp and index.htm. Now we set the virtual directory, click on "Virtual Directory", give a virtual directory, a comparative name, such as your ASP program is a forum program, named BBS (case, do not distinguish, do not use Chinese naming), This name is named, then select the path to the virtual directory, you choose the path where your own program is located, for example: D: / My forum / BBS /. In this way, we are based on the basic configuration. Now you can browse your ASP file in IE. Open IE, type in the address bar: http: // xxx (your computer name or 127.0.0.1 or localhost) / xxxxx (your virtual directory name, that is, you are setting up the virtual directory, if If you put it under x: / inetpub / wwwroot, don't virtual directory, such as the website: www.knowsky.com) / wwww (file name, if it is default.asp / default.html / index.htm / index.asp File names can also be omitted). If your ASP file has an error, IE will report an error.

Second, IIS installation and configuration. All Win2000 Server / Win2000 Advance Server is installed by default. If you don't choose when installing, follow these steps below. Win2000 Pro / WinXP Pro / Win2003 User Start -> Control Panel -> Add / Remove the Windows Program Components Inside the Internet Information Services (IIS), then insert the Windows Installation CD, click Next, so I started to install IIS. There is not much to say that the installation process is also the same, it is not the next step. It is to complete and determine. Now configure IIS. Start -> Control Panel -> Administrative Tools -> Internet Information Services. After opening, I went to the IIS's console. The number in front of the computer name is expanded, and the number in front of the website is started. At this time there is a default website, here is the key place to configure IIS. Right click on "Default Website", select "Properties" in the pop-up menu, then "Properties" will pop up. Under normal circumstances, "Website / General" tab does not change. Select the "Home Directory" tab, the local path is your home directory path, here you can browse to change to the directory you want to set, default: x: / inetpub / wwwroot (x: Represents the system disk). You can also set up user operation permissions for your website here. After these settings are turned to the Document tab, first tick in front of the "Enable Default Document", the default is tick. Click "Add", you can add the default document, such as add index.asp, index.htm, index.html, etc. This is the main file name that you open by default, you can also delete it here, choose the document you want to delete. After that, click "Delete", now the "Properties" tab is basically set, click the application, and then return to the IIS console. It is now setting the virtual directory (if your file is placed in x: / inetpub / wwwroot, you should not set it), right-click "New" -> Virtual Directory. Enter the virtual directory name, the next step, select the file path, the next step, complete. Now that IIS configuration we basically complete, now we can use IIS IE to debug the ASP. Open IE, type in the address bar: http: // xxx (your computer name or 127.0.0.1 or localhost) / xxxxx (your virtual directory name, that is, you are setting up the virtual directory, if If you put it under x: / inetpub / wwwroot, you don't have a virtual directory) / wwww (file name, if it is default.asp / default.html / index.htm / index.asp) file names can also be omitted). If your ASP file has an error, IE will report an error. Ok, basically these, and you will slowly get roped by yourself. This is still going to do it yourself. Other advanced settings will try it yourself, usually these settings are enough. Finally, a little bit: General PWS / IIS error, only reloading the system to recover. In WinXP Pro, you can often update (add, modify, delete) operations on the database, only read operations, the method is to reload the IIS, or then to reload another version of WinXP Pro, it is recommended to use Win2000 Server IIS (Win2003 I have not used it).

Finally, I wish you all the best ASP operations environments with PWS / IIS to build your own bright websites.

转载请注明原文地址:https://www.9cbs.com/read-36296.html

New Post(0)