YOMEDIA
ADSENSE
Exchange SQL And IIS- P170
43
lượt xem 2
download
lượt xem 2
download
Download
Vui lòng tải xuống để xem tài liệu đầy đủ
Exchange SQL And IIS- P170:The following legacy Exchange features have been de-emphasized in Exchange Server 2007. What does that mean? It means that these features are still included in the Exchange product, but they’re not prioritized anymore, and will most likely disappear in the next Exchange release after Exchange Server 2007
AMBIENT/
Chủ đề:
Bình luận(0) Đăng nhập để gửi bình luận!
Nội dung Text: Exchange SQL And IIS- P170
- 822 Chapter 16 • Administration of an IIS 7.0 Web Server To create an HTTP 500 Error for All ASP.NET Pages: 1. Click the server in IIS Manager. 2. On the IIS Manager server home page, double-click Failed Request Tracing, as shown in Figure 16.6. Figure 16.6 IIS Manager Failed Request Tracing 3. Click Add under Actions to start the Add Rule Wizard. 4. Select the content you would like traced—for example, ASPX pages (e.g., ASP.NET requests). 5. Choose what criteria, either HTTP status code or time-taken, to trace requests. Select 500 and click Next. 6. Select what providers to choose from—in your case, pick all providers, including ASP, ISAPI Extension, and WWW Server, as shown in Figure 16.7. 7. Click Finish.
- Administration of an IIS 7.0 Web Server • Chapter 16 823 Figure 16.7 SOME INDEPENDENT ADVICE In Windows Vista, the ASP.NET Provider is missing from IIS Manager. This provider exists in the configuration and is available. In a recent blog post, Microsoft acknowledged this problem and displays how to correct it. For more information, see http://blogs.iis.net/chrisad/archive/2007/04/10/tracing-asp-net-provider-on- windows-vista.aspx. Accessing Information Using AppCmd.exe AppCmd.exe is a convenient utility offered as an alternative to using IIS Manager, writing code, or building a script. Sometimes, you may be interested in making one or two changes to IIS’s configuration but don’t want to click this or that in IIS Manager. Or maybe the actual configuration
- 824 Chapter 16 • Administration of an IIS 7.0 Web Server isn’t even available in IIS Manager, leaving you with no other choice. AppCmd solves this problem by using a familiar approach that employs verbs and objects. It combines much of the past power of the Visual Basic scripts (.vbs) shipped with IIS while providing a much more powerful functionality than ever offered by these scripts. Understanding how to use it will prove a strong and useful tool in managing your IIS servers. BEST PRACTICES ACCORDING TO MICROSOFT IIS 7.0 supports direct editing of the configuration files, including applicationHost. config and web.config files. This is a powerful ability considering that you can use your favorite text editor to build your custom server’s configuration. However, it is not recommended you directly edit the configuration using tools such as Notepad without first testing that your configuration is valid on your Web server. When using the text editor, there is no validation that your configuration is correct, something which can possibly render your Web server, sites, or applications unavailable. This is where administration tools such as AppCmd.exe come in handy. They will not write invalid configurations but instead will return an error. SOME INDEPENDENT ADVICE AppCmd.exe does not work remotely. In order to successfully use AppCmd.exe, you must connect directly to your IIS 7.0 server. This is capable of being done using Terminal Services, such as using the command mstsc /console /v:yourIIS7Server, where yourIIS7Server is the name of your Web server. An Introduction to AppCmd.exe In IIS 6.0, you had a large list of toolsets available to you to make changes at the command line to the configuration. These were included in various Visual Basic scripts (.vbs) located in %windir%\system32 or in %systemdriver%\inetpub\adminscripts. The downside, though, was that they were specialized and each had different verb syntaxes and object manipulation styles. In IIS 7.0, your command-line experience is combined to a single application called AppCmd.exe. In this section, you are introduced to this powerful command-line tool aimed at simplifying your experience.
- Administration of an IIS 7.0 Web Server • Chapter 16 825 Server Management Objects and Commands AppCmd allows you to create/configure Web sites, applications, application pools, and virtual directories. You can start and stop sites, recycle application pools, list worker processes, and examine currently executing requests. You can also search, manipulate, import, and export IIS and ASP.NET configuration data. SOME INDEPENDENT ADVICE AppCmd.exe is not located in the system path, but instead in %windir%\ system32\inetsrv. If you want quick access to the IIS 7.0 configuration runtime information, add inetsrv to the system path. To use AppCmd in changing directories, type: set path=%path%;%windir%\system32\inetsrv If you’re not logged on as a member of the Administrator group, run this command in an elevated cmd window from Start | All Programs | Accessories | Command Prompt. Right-click and choose Run as administrator. Command syntax is based on server management objects that expose methods to perform actions and properties that reflect the current state. Most objects provide list, add, and delete methods. Site objects have start/stop methods and properties that can be read, written, or searched. All commands provide a list of object instances and property values. You execute AppCmd commands on server management objects with parameters to control command behavior, such as the following: APPCMD [/parameter:value] specifies a command supported by the object. The following basic commands are supported by most objects: LIST Displays all objects on the machine. Optional specifies a unique object. ADD Creates a new object with specified property values. DELETE Deletes specified objects by . SET Sets parameters specified by .
- 826 Chapter 16 • Administration of an IIS 7.0 Web Server The Site object supports START and STOP commands. specifies a server management object: SITE Administration of virtual sites APP Administration of applications VDIR Administration of virtual directories APPPOOL Administration of application pools CONFIG Administration of general configuration sections BACKUP Management of server configuration backups WP Administration of worker processes REQUEST Display of active HTTP requests MODULE Administration of server modules TRACE Management of server trace logs is the identifier for the object. The format is specific to each object. [/parameter:value] specifies optional parameter(s) that depend on the object. Usually, commands that search objects or manipulate properties allow properties specified as a parameter. Creating Web Sites As we showed earlier, you can use IIS Manager to create Web sites. However, in some cases you might want an easier way to do this other than using a user interface. AppCmd.exe fills this void nicely and you can quickly get a site up and running using AppCmd.exe. Before starting, you must have the name, path, and bindings to successfully create a new Web site with a root Web application using AppCmd. To create a new Web site using AppCmd.exe, type the following: AppCmd add site /name:“My First AppCmd Website” /bindings:http/*:80:www.myfirstsite.com Creating Virtual Directories As we said earlier, virtual directories are an important concept in IIS 7.0 because they are the definition of a root application. Thus, although we have created a new site in the preceding example, we haven’t defined a new root application. We will do so in this example. If you do not define an applica- tion, or virtual directory physical path, then the site will run as part of IIS 7.0’s default application pool. AppCmd add site /name:“My First AppCmd Website” /bindings:http/*:80:www.myfirstsite.com /physicalPath:“c:\inetpub\myfirstsite” Creating Application Pools The important step in creating an application pool is having applications read to define or run within your newly created application pool. Thus, after creating an application pool, you will want to assign your application to that application pool.
ADSENSE
CÓ THỂ BẠN MUỐN DOWNLOAD
Thêm tài liệu vào bộ sưu tập có sẵn:
Báo xấu
LAVA
AANETWORK
TRỢ GIÚP
HỖ TRỢ KHÁCH HÀNG
Chịu trách nhiệm nội dung:
Nguyễn Công Hà - Giám đốc Công ty TNHH TÀI LIỆU TRỰC TUYẾN VI NA
LIÊN HỆ
Địa chỉ: P402, 54A Nơ Trang Long, Phường 14, Q.Bình Thạnh, TP.HCM
Hotline: 093 303 0098
Email: support@tailieu.vn