Hướng dẫn cài đặt SharePoint 2007

Part 1: Getting Started, Installing IIS, and Installing .NET Framework 2.0 Start by building a VPC “base image” with a clean installation of Windows Server 2003 VPC settings: Memory: set a value which is at least half of the physical memory on your host machine Networking: 1 adapter, mapped to a network adapter on your local machine Install Virtual Machine Additions: VPC Actions menu > Install or Update Virtual Machine Additions Perform Windows Update inside the virtual machine Select Start > All Programs > Windows Update

doc179 trang | Chia sẻ: tlsuongmuoi | Lượt xem: 2367 | Lượt tải: 0download
Bạn đang xem trước 20 trang tài liệu Hướng dẫn cài đặt SharePoint 2007, để xem tài liệu hoàn chỉnh bạn click vào nút DOWNLOAD ở trên
Part 1: Getting Started, Installing IIS, and Installing .NET Framework 2.0 Start by building a VPC “base image” with a clean installation of Windows Server 2003 VPC settings: Memory: set a value which is at least half of the physical memory on your host machine Networking: 1 adapter, mapped to a network adapter on your local machine Install Virtual Machine Additions: VPC Actions menu > Install or Update Virtual Machine Additions Perform Windows Update inside the virtual machine Select Start > All Programs > Windows Update Follow the instructions and install all available updates, including Internet Explorer 7 Install IIS with .NET Framework 2.0 Select Start > Control Panel > Add or Remove Programs: In the Add or Remove Programs dialog box, click the Add / Remove Windows Components button on the left side: In the Windows Components Wizard dialog box, highlight the Application Server option, then click the Details button: In the Application Server dialog box, highlight the Internet Information Services (IIS) option, then click the Details button: In the Internet Information Services (IIS) dialog box, highlight the World Wide Web Service option, then click the Details button: In the World Wide Web Service dialog box, select the Active Server Pages option, the Server Side Includes option, and the World Wide Web Service option, then click the OK button: Click OK twice more to close the dialog boxes and return to the Windows Components Wizard dialog box: Scrolling down the list of options, locate and deselect the Internet Explorer Enhanced Security Configuration option: Scrolling a bit further down the list of options, locate and select the Microsoft .NET Framework 2.0 option: Click the Next button to begin the IIS installation; you may be asked to insert the Windows Server installation media. When the installation is complete, click the Finish button: You should now have a fully-functional IIS web server installed inside your VPC image. In Part 2, we'll look at how to install and configure POP3 email service inside the VPC image. Part 2: Installing and Configuring POP3 Email Select Start > Control Panel > Add or Remove Programs: In the Add or Remove Programs dialog box, click the Add / Remove Windows Components button on the left side: In the Windows Components Wizard dialog box, highlight the E-mail Services option, then click the Details button: In the E-Mail Services dialog box, select the POP3 Service option, then click the OK button: In the Windows Components Wizard dialog box, click the Next button to begin the POP3 e-mail installation; you may be asked to insert the Windows Server installation media. When the installation is complete, click the Finish button: Select Start > Administrative Tools > POP3 Service: Select the server name in the right pane, then click the Server Properties link: In the Properties dialog box, select Local Windows Accounts for the authentication method, select None for the logging level, deselect Secure Password Authentication, deselect Always create an associated user for new mailboxes, then click the OK button: When prompted to restart the SMTP service, click the Yes button: Select the server name in the right pane, then click the Start POP3 Service link: Select the server name in the left pane, then click the New Domain link: In the Add Domain dialog box, enter a local domain name, such as mycompany.loc, then click the OK button: In the left pane, expand the server name branch to display the new domain name, select the domain name, then click the Add Mailbox link: In the Add Mailbox dialog box, enter the server administrator account, then click the OK button: When the mailbox setup is complete, click the OK button: You should now have a fully-functional POP3 email service installed inside your VPC image. In Part 3, we’ll look at how to install and configure the Outlook 2007 client inside the VPC image for sending and receiving emails. Part 3: Installing and Configuring Outlook 2007 Insert the Office 2007 installation media, start the installation, enter the Product Key, then click the Continue button: Read the license agreement very carefully, select the I accept checkbox, then click the Continue button: On the Choose the installation you want screen, select the Customize button: Deselect all of the listed applications except Microsoft Office Outlook, then click the Install Now button: When the installation is complete, click the Close button: Select Start > All Programs > Microsoft Office > Microsoft Office Outlook 2007, then click the Next button to begin the Outlook 2007 Startup wizard: On the E-mail Accounts screen, select Yes, then click the Next button: On the Auto Account Setup screen, select the Manually configure server settings or additional server types option, then click the Next button: On the Choose E-mail Service screen, select Internet E-mail, then click the Next button: On the Internet E-mail Settings screen, enter the following information: Your Name: Administrator E-mail Address: Administrator@mycompany.loc (replace mycompany.loc with the domain entered during the POP3 e-mail setup) Account Type: POP3 Incoming mail server: vpc02 (replace vpc02 with the name of your virtual server) Outgoing mail server (SMTP): vpc02 (replace vpc02 with the name of your virtual server) User Name: Administrator Password: enter the Administrator’s password Require logon using SPA: no After the settings are entered, click the Test Account Settings button to test the settings: If the settings were entered properly, a Congratulations! message will be displayed; click the Close button to return to the Internet E-mail Settings screen: On the Internet E-mail Settings screen, click the Next button to proceed: When the e-mail setup is complete, click the Finish button: When the Microsoft Office Activation Wizard screen appears, ensure that you are able to access the internet from within your virtual machine, select the I want to activate the software over the Internet option, then click the Next button: When the software is successfully activated, click the Close button: On the Privacy Options screen, deselect all of the options, then click the Next button: On the Sign up for Microsoft Update screen, select the I don’t want to use Microsoft Update option, then click the Finish button: In the Instant Search dialog box, click the No button: In the RSS Feeds dialog box, click the No button: In the Microsoft Outlook window, you should see the Microsoft Office Outlook Test Message displayed in the Inbox and the preview pane: To test the email functionality, click the New button to create a new email message, then send it to the email account that you configured (Administrator@mycompany.loc, in this case): After the message is sent, click the Send / Receive button to retrieve the new message from the email service: You should now have a fully-functional Outlook 2007 client installed inside your VPC image for sending and receiving email. In Part 4, we’ll look at how to install and configure the .NET framework inside the VPC image. Part 4: Installing and Configuring the .NET Framework Install the .NET 3.0 Framework Download the .NET 3.0 Framework: Filename: dotnetfx3setup.exe Download URL: Copy the dotnetfx3setup.exe file into the VPC image and execute the file: In the Welcome to Setup dialog box, read the license agreement very carefully, select the I have read and ACCEPT the terms of the License Agreement option, and click the Install button: When the setup is complete, click the Exit button: Allow ASP.NET 2.0 Web Service Extensions in IIS Select Start > Administrative Tools > Internet Information Services (IIS) Manager In the Internet Information Services management console, expand the server name in the left pane, then select Web Service Extensions: In the right pane, select ASP.NET v2.0.50727, then click the Allow button: You should now have a fully-functional .NET framework installed inside your VPC image. In Part 5, we’ll look at how to install and configure SQL Server 2005 inside the VPC image for storing our MOSS 2007 data. Part 5: Installing SQL Server 2005 Insert the SQL Server 2005 installation media, start the installation, then click Install: Server components, tools, Books Online, and samples: In the End User License Agreement dialog box, read the agreement very carefully, select the I accept the licensing terms and conditions checkbox, then click the Next button: In the Installing Prerequisites dialog box, click the Install button: When the components are successfully installed, click the Next button: On the installation wizard welcome screen, click the Next button: On the System Configuration Check screen, after all tests have finished successfully, click the Next button: On the Registration Information screen, enter your Name and Company, then click the Next button: On the Components to Install screen, click the Advanced button: On the Feature Selection screen, select the following features to be installed on the local hard drive, then click the Next button: Database Services (all) Analysis Services (all) Reporting Services (all) Integration Services Client Components (all) Documentation, Samples, and Sample Databases SQL Server Books Online Sample Databases AdventureWorks Sample OLTP On the Instance Name screen, select Default instance, then click the Next button: On the Service Account screen, select Use the built-in System account: Network service, select the SQL Server Agent and Analysis Services services to start at the end of setup, then click the Next button: On the Authentication Mode screen, select Windows Authentication Mode, then click the Next button: On the Collation Settings screen, select Collation designator and sort order: Latin1_General, then click the Next button: On the Report Server Installation Options screen, select the Install but do not configure the server option, then click the Next button: On the Error and Usage Report Settings screen, deselect both options, then click the Next button: On the Ready to Install screen, review the selected installation options, then click the Install button: When component installation is complete, click the Next button: When setup is complete, click the Finish button: You should now have a fully-functional SQL Server 2005 installed inside your VPC image. In Part 6, we’ll look at how to configure SQL Server 2005 inside the VPC image for storing MOSS 2007 data. Part 6: Configuring SQL Server 2005 Select Start > All Programs > Microsoft SQL Server 2005 > Configuration Tools > SQL Server Surface Area Configuration: On the SQL Server 2005 Surface Area Configuration screen, click the Surface Area Configuration for Services and Connections link: In the left pane, expand MSSQLSERVER, expand Database Engine, then select Remote Connections: In the right pane, select the Local and remote connections option, select the Using TCP/IP and named pipes option, then click the Apply button: In the Connection Settings Change Alert dialog box, click the OK button: Click the OK button to close the SQL Server 2005 Surface Area Configuration screen: Select Start > All Programs > Microsoft SQL Server 2005 > SQL Server Management Studio: In the Connect to Server dialog box, leave the default settings and click the Connect button: In the Microsoft SQL Server Management Studio window, right-click on the server name in the left pane, then select Properties: In the Server Properties dialog box, select Memory in the left pane: In the right pane, adjust the Maximum server memory to a value which is half of the memory allocated to your virtual machine, then click the OK button; in this case, we’ve allocated 1000MB of memory to the virtual machine, so the SQL Server memory was set to 500MB: You should now have a fully-functional SQL Server 2005 installed inside your VPC image for storing MOSS data. In Part 7, we’ll look at how to install SQL Server 2005 Service Pack 1 (SP1). Part 8: Creating the MOSS Accounts Create the SQLService Local User Account Select Start > Administrative Tools > Computer Management: In the left pane of the Computer Management window, expand System Tools, expand Local Users and Groups, then select Users: Select from the menu: Action > New User: In the New User dialog box, enter the following information, then click the Create button: User name: SQLService Password: enter a password Confirm password: repeat the password User must change password at next logon: No User cannot change password: No Password never expires: Yes Account is disabled: No After the new user is created, the New User dialog box is cleared; click the Close button: Select the new SQLService user in the right pane, then select from the menu: Action > Properties: Select the Member Of tab in the SQLService Properties dialog box, then click the Add button: In the Select Groups dialog box, enter the Administrators group into the text area, then click the Check Names button: If the entry is typed correctly, it will be validated against the groups configured on the virtual server; click the OK button after the validation is complete: The new SQLService user is now a member of the Administrators group, as shown in the SQLService Properties dialog box; click the OK button to accept the changes: Add the SQLService User Account to SQL Server Select Start > All Programs > Microsoft SQL Server 2005 > SQL Server Management Studio: In the Connect to Server dialog box, leave the default settings and click the Connect button: In the left pane of the Microsoft SQL Server Management Studio window, expand the server name, expand Security, right-click on Logins, then select New Login: In the Login – New dialog box, click the Search button: In the Select User or Group dialog box, enter SQLService into the text area, then click the Check Names button: If the entry is typed correctly, it will be validated against the users configured on the virtual server; click the OK button after the validation is complete: Ensure that the Windows authentication is selected, then Server Roles in the left pane: In the right pane, select dbcreator and securityadmin, then click the OK button: You should now have the accounts needed by MOSS to operate inside the virtual machine. In Part 9, we’ll look at how to install and configure the MOSS 2007 application inside the VPC image. Part 9: Installing and Configuring the MOSS 2007 Application Install the MOSS 2007 Application Insert the MOSS 2007 installation media, start the installation, enter the Enterprise product key, then click the Continue button: On the Read the Microsoft Software License Terms screen, read the agreement very carefully, select the I accept the terms of this agreement checkbox, then click the Continue button: On the Choose the installation you want screen, click the Advanced button: On the Server Type tab, select the Complete option, then click the Install Now button: When the installation is complete, select the Run the SharePoint Products and Technologies Configuration Wizard now checkbox, then click the Close button: Run the SharePoint Configuration Wizard On the Welcome to SharePoint Products and Technologies screen, click the Next button: In the services may have to be started or reset dialog box, click the Yes button: On the Connect to a server farm screen, select the No, I want to create a new server farm option, then click the Next button: On the Specify Configuration Database Settings screen, enter the following information, then click the Next button: Database server: enter the name of the virtual server (in this case, vpc02) Database name: SharePoint_Config Username: VPC02\SQLService (replace VPC02 with the name of your server) Password: enter the password for the SQLService account On the Configure SharePoint Central Administration Web Application screen, you can accept the default randomly-selected port number, or specify your own port number (as shown, port 5555); select the NTLM authentication provider, then click the Next button: On the Completing the SharePoint Products and Technologies Configuration Wizard screen, review the settings, then click the Next button: On the Configuration Successful screen, click the Finish button: You should now have an installed and configured MOSS 2007 application running inside the virtual machine. In Part 10, we’ll look at how to configure the Internet Explorer 7 web browser security so that we can access SharePoint Central Administration, and later, the MOSS 2007 portal. Part 10: Setting Up Internet Explorer Web Browser Security After the configuration wizard is closed, the Internet Explorer web browser should launch automatically and attempt to open the SharePoint Central Administration website; if so, cancel any prompts or alert messages, close the web browser window, then re-launch Internet Explorer: Press the Alt key to open the Internet Explorer menu, then select Tools > Internet Options: Under the General tab of the Internet Options dialog box, change the URL of the home page to match the name of the server ( in this case): Under the Security tab of the Internet Options dialog box, click the Trusted sites icon: With the Trusted sites icon selected, click the Sites button: In the Trusted sites dialog box, deselect the Require server verification checkbox, enter the URL of the server ( in this case) into the Add this website to the zone text area, then click the Add button: The server URL should be added to the Websites list; click the Close button to close the Trusted sites dialog box: After returning to the Internet Options dialog box, confirm that the Trusted sites icon is still selected, then click the Custom level button: In the Security Settings dialog box, select Low from the Reset to drop-down list, then click the Reset button: A warning message should appear; click the Yes button to proceed: After returning to the Security Settings dialog box, click the OK button: After returning to the Internet Options dialog box, click the OK button: If this is the first time that Internet Explorer 7 has been used, a screen with initial browser settings should be displayed; under the Required Settings heading, select Keep my current default search provider option, then scroll to the bottom of the page and click the Save settings button: You should now have your Internet Explorer 7 web browser configured for accessing SharePoint Central Administration, as well as the portal site that we will create later. In Part 11, we’ll look at how to start the services necessary for operating the MOSS 2007 portal. Part 11: Starting Services If the SharePoint Central Administration website isn’t already open, select Start > Administrative Tools > SharePoint 3.0 Central Administration, then click the Operations tab: On the Operations page, click the Services on server link, located under the Topology and Services heading: On the Services on Server page, go down to the listing of available services, locate Windows SharePoint Services Help Search, then click the Start link located on the same row: On the Configure Windows SharePoint Services Search Service Settings page, enter the following information, then click the Start button: Service Account: User name: SERVERNAME\Administrator (VPC02\Administrator, in this case) Password: enter the administrator password Content Access Account: User name: SERVERNAME\Administrator (VPC02\Administrator, in this case) Password: enter the administrator password Search Database: Database server: should be pre-populated (vpc02, in this case) Database name: should be pre-populated (WSS_Search_vpc02, in this case) Database authentication: Windows authentication Indexing Schedule: Daily, between 12AM and 1AM After the Windows SharePoint Services Help Search service has been started successfully, the Services on Server page should be displayed; go down to the listing of available services, locate Office SharePoint Server Search, then click the Start link located on the same row: On the Configure Office SharePoint Server Search Service Settings page, enter the following information, then click the Start button: Query and Indexing: Use this server for indexing content: Yes Use this server for serving search queries: Yes Contact E-mail Address: Administrator@yourdomain (Administrator@mycompany.loc, in this case) Farm Search Service Account: User name: VPC02\Administrator (VPC02\Administrator, in this case) Password: enter the administrator password Indexer Performance: Reduced Web Front End and Crawling: Use all web front end computers for crawling After the Office SharePoint Server Search service has been started successfully, the Services on Server page should be displayed; go down to the listing of available services, locate Excel Calculation Services, then click the Start link located on the same row: After the Excel Calculation Services service has started successfully, the Services on Server page should be displayed: You should now have three MOSS 2007 services running properly (two search services and Excel Services). In Part 12, we’ll look at how to create a Shared Services Provider Part 12: Creating a Shared Services Provider If the SharePoint Central Administration website isn’t already open, select Start > Administrative Tools > SharePoint 3.0 Central Administration, click the Application Management tab: On the Application Management page, click the Create or configure this farm’s shared services link, located under the Office SharePoint Server Shared Services heading: On the Manage this Farm’s Shared Services page, click the New SSP toolbar button: On the New Shared Services Provider page, in the SSP Name section, click the Create a new Web application link: On the Create New Web Application page, enter the following information, then click the OK button: IIS Website: Port: 1111 Security Configuration: Authentication provider: NTLM Allow Anonymous: No Use SSL: No Load Balanced URL: ( in this case) Application Pool: Create a new application pool Application pool name: SharePoint – 1111 Select a security account for this application pool: Configurable User name: SERVERNAME\Administrator (VPC02\Administrator, in this case) Password: enter the administrator password Reset Internet Information Services: Restart IIS Manually Database Name and Authentication: Database server: SERVERNAME (VPC02, in this case) Database name: WSS_Content Database authentication: Windows authentication After the Shared Services web application has been created, the New Shared Services Provider page should be displayed: Go down to the My Site Location section, then click the Create a new Web application link: On the Create New Web Application page, enter the following information, then click the OK button: IIS Website: Port: 2222 Security Configuration: Authentication provider: NTLM Allow Anonymous: No Use SSL: No Load Balanced URL: ( in this case) Application Pool: Create a new application pool Application pool name: SharePoint – 2222 Select a security account for this application pool: Configurable User name: SERVERNAME\Administrator (VPC02\Administrator, in this case) Password: enter the administrator password Reset Internet Information Services: Restart IIS Manually Database Name and Authentication: Database server: SERVERNAME (VPC02, in this case) Database name: automatically generated (WSS_Content_75bf75064cd5456e94f41cd8737a8573, in this case) Database authentication: Windows authentication After the My Sites web application has been created, the New Shared Services Provider page should be displayed: Enter the following information on the remainder of the New Shared Services Provider page, then click the OK button: My Site Location Relative URL: / SSP Service Credentials Username: SERVERNAME\Administrator (VPC02\Administrator, in this case) Password: enter the administrator password SSP Database Database server: SERVERNAME (VPC02, in this case) Database name: SharedServices1_DB Database authentication: Windows authentication Search Database Database server: SERVERNAME (VPC02, in this case) Database name: SharedServices1_Search_DB Database authentication: Windows authentication Use SSL: No After the SSP is created, the Success page is displayed; click the OK button: You should now have a fully-functional MOSS 2007 Shared Services Provider (SSP). In Part 13, we’ll look at how to configure the search settings inside the SSP. Part 13: Configuring Search Settings If the SharePoint Central Administration website isn’t already open, select Start > Administrative Tools > SharePoint 3.0 Central Administration, then click the SharedServices1 link in the left-hand Quick Launch menu: On the Shared Services Administration: SharedServices1 Home page, click the Search settings link, located below the Search heading: On the Configure Search Settings page, click the Content sources and crawl schedules link, located in the Crawl Settings section: On the Manage Content Sources page, click the Local Office SharePoint Server sites link: On the Edit Content Source page, go to the Crawl Schedules section, then click the Create schedule link, located under the Full crawl heading: On the Manage Schedules screen, select the following options, then click the OK button: Type: Daily Run every: 1 days Starting time: 12:00 AM On the Edit Content Source page, in the Crawl Schedules section, click the Create schedule link, located under the Incremental crawl heading: On the Manage Schedules screen, select the following options, then click the OK button: Type: Daily Run every: 1 days Starting time: 12:00 PM On the Edit Content Source page, select the Start full crawl of this content source checkbox, then click the OK button: After the crawl settings have been saved, the Manage Content Sources page will be displayed, and the Status of the Local Office SharePoint Server sites should be set to Crawling Full: Allow several minutes for the initial crawl to complete, then click the Refresh toolbar button; after the crawl has completed, the Status of the Local Office SharePoint Server sites should be set to Idle: You should now have a properly configured search service running inside the SSP. In Part 14, we’ll look at how to configure the MOSS 2007 outgoing e-mail settings. Part 14: Configuring Outgoing E-mail If the SharePoint Central Administration website isn’t already open, select Start > Administrative Tools > SharePoint 3.0 Central Administration, click the Operations tab: On the Operations page, click the Outgoing e-mail settings link, located below the Topology and Services heading: On the Outgoing E-mail Settings page, enter the following information, then click the OK button: Outbound SMTP server: SERVERNAME (VPC02, in this case) From address: Administrator@yourdomain (Administrator@mycompany.loc, in this case) Reply-to address: Administrator@yourdomain (Administrator@mycompany.loc, in this case) You should now have properly configured MOSS 2007 outgoing e-mail settings. In Part 15, we’ll look at how to create the MOSS 2007 portal. Part 15: Creating the Portal If the SharePoint Central Administration website isn’t already open, select Start > Administrative Tools > SharePoint 3.0 Central Administration, click the Application Management tab: On the Application Management page, click the Create or extend Web application link, located below the SharePoint Web Application Management heading: On the Create or Extend Web Application page, click the Create a new Web application link: On the Create New Web Application page, enter the following information, then click the OK button: IIS Website: Port: 80 Security Configuration: Authentication provider: NTLM Allow Anonymous: No Use SSL: No Load Balanced URL: ( in this case) Application Pool: Create a new application pool Application pool name: SharePoint – 80 Select a security account for this application pool: Configurable User name: SERVERNAME\Administrator (VPC02\Administrator, in this case) Password: enter the administrator password Reset Internet Information Services: Restart IIS Manually Database Name and Authentication: Database server: SERVERNAME (VPC02, in this case) Database name: automatically generated (WSS_Content_c4560d7a286944bc90b39a01522d857b, in this case) Database authentication: Windows authentication On the Application Created page, click the Create Site Collection link, located near the end of the second paragraph: On the Create Site Collection page, enter the following information, then click the OK button: Title: MyCompany Portal Web Site Address: ( in this case) Template Selection: Publishing tab, Collaboration Portal Primary Site Collection Administrator: SERVERNAME\Administrator (VPC02\Administrator, in this case) Quota Template: No Quota On the Top-Level Site Successfully Created screen, click on the link ( in this case) to visit the new portal: The new MyCompany Portal should open in a new browser window: You should now have a fully-functional MOSS 2007 portal. In Part 16, we’ll look at how to install SharePoint Designer 2007 into our virtual machine. Part 16: Installing SharePoint Designer 2007 Insert the SharePoint Designer 2007 installation media, start the installation, enter the Product Key, then click the Continue button: Read the license agreement very carefully, select the I accept checkbox, then click the Continue button: On the Choose the installation you want screen, select the Install Now button: When the installation is complete, click the Close button: Select Start > All Programs > Microsoft Office > Microsoft Office SharePoint Designer 2007; in the Microsoft Office Activation Wizard dialog box, select the I want to activate the software over the Internet option, then click the Next button: After the software has been successfully activated over the Internet, click the Close button: In the SharePoint Designer window, to test its ability to connect to the MOSS 2007 portal, select File > Open Site: In the Open Site dialog box, for Site name, enter the URL of the portal site ( in this case), then click the Open button: SharePoint Designer should successfully connect to the MOSS 2007 portal, and a listing of files and folders should be displayed in the left Folder List pane, as well as the center pane: Select File > Close Site to close the connection with the MOSS 2007 portal: You should now have a fully-functional installation of SharePoint Designer 2007. In Part 17, we’ll look at how to install some of the other Office 2007 applications into our virtual machine Part 17: Installing Office 2007 Applications Insert the Office 2007 installation media, start the installation, select the Add or Remove Features option, then click the Continue button: Select Microsoft Office Access, Microsoft Office Excel, Microsoft Office PowerPoint, and Microsoft Office Word, then click the Continue button: After the installation has completed successfully, click the Close button: You should now have a fully-functional installation of Office 2007. In Part 18, we’ll look at how to install a set of server “warm-up” scripts which will help improve the initial performance of the MOSS 2007 virtual machine after boot-ups Part 18: Installing Warm-up Scripts Download the warm-up scripts: Filename: warmup.zip Download URL: Copy the warmup.zip file onto the C: drive of the VPC image: Extract the warmup.zip file to create the folder C:\warmup containing three files: HttpRequest.vbs startup.bat WarmUpServer.cmd Open the startup.bat file with a plain text editor such as Windows Notepad, and update these four lines: call WarmUpServer SERVERNAME call WarmUpServer SERVERNAME:2222 call WarmUpServer SERVERNAME:5555 call WarmUpServer SERVERNAME:1111/ssp/admin In this example, the four lines should read: call WarmUpServer vpc02 call WarmUpServer vpc02:2222 call WarmUpServer vpc02:5555 call WarmUpServer vpc02:1111/ssp/admin Right-click on the startup.bat file, then select Send to > Desktop (create shortcut): Return to the Windows desktop, right-click on the new Shortcut to startup.bat icon, and select Properties from the drop-down list: Under the General tab of the Shortcut to startup.bat Properties dialog box, enter Warm-Up for the new name of the shortcut: Under the Shortcut tab of the Shortcut to startup.bat Properties dialog box, click the Change Icon button: When the Change Icon alert message is displayed, click the OK button: In the Change Icon dialog box, select an appropriate icon for the new desktop shortcut, then click the OK button: Click the OK button to close the Shortcut to startup.bat Properties dialog box: To run the warm-up scripts after boot-up, simply double-click on the new Warm-Up desktop icon: A command window will open for the execution of the warm-up scripts, and the scripts may take a few minutes to run, depending upon the performance of your virtual machine; when they are finished, the command window will close automatically: You should now have a fully-functional set of warm-up scripts installed in your virtual machine, and a shortcut on your virtual machine’s desktop to launch the script after booting. In Part 19, we’ll look at some other ways that we can optimize the size and performance of our MOSS 2007 VPC image. Part 19: Optimizing the MOSS 2007 VPC Image Kill unnecessary services In this section, we’ll stop and disable the following unnecessary services inside the virtual machine: Error Reporting Service Help & Support Print Spooler Select Start > Administrative Tools > Services: In the right pane of the Services window, locate and right-click on the Error Reporting Service service, then select Properties: Under the General tab of the Error Reporting Service Properties dialog box, in the Service status section, click the Stop button: For Startup type, select Disabled from the drop-down list, then click the OK button: Repeat these steps to stop and disable the Help & Support service and the Print Spooler service. Disable visual enhancements Select Start > Control Panel > Display: Under the Settings tab of the Display Properties dialog box, click the Advanced button: Under the Troubleshoot tab of the Default Monitor dialog box, move the Hardware acceleration slider all the way to the left, then click the OK button: Under the Desktop tab of the Display Properties dialog box, select (None) from the Background list, then click the Apply button: Under the Screen Saver tab of the Display Properties dialog box, select (None) from the Screen saver drop-down list, then click the OK button: Select Start > Control Panel > System: Under the Advanced tab of the System Properties dialog box, under the Performance heading, click the Settings button: Under the Visual Effects tab of the Performance Options dialog box, select the Adjust for best performance option, then click the OK button: Disable system recovery features Select Start > Control Panel > System: Under the Advanced tab of the System Properties dialog box, under the Startup and Recovery heading, click the Settings button: In the Startup and Recovery dialog box, select (none) from the Write debugging information drop-down list, then click the OK button: Disable Remote Desktop connections Select Start > Control Panel > System: Under the Remote tab of the System Properties dialog box, in the Remote Assistance section, deselect the Turn on Remote Assistance and allow invitations to be sent from this computer checkbox, and in the Remote Desktop section, deselect the Enable Remote Desktop on this computer checkbox, then click the OK button: Disable searching for network drives and printers Launch Windows Explorer, then select Tools > Folder Options: Under the View tab of the Folder Options dialog box, in the Advanced settings list, deselect the Automatically search for network folders and printers checkbox, then click the Apply to All Folders button: In the Folder Views alert box, click the Yes button: Click the OK button to accept the changes and close the Folder Options dialog box: Defragment the virtual machine C: drive Select Start > All Programs > Accessories > System Tools > Disk Defragmenter: Ensure that the C: drive is selected in the upper pane of the Disk Defragmenter window, then click the Defragment button. Repeat the defragmenting process until it happens quickly (this may take several cycles). Compact the Virtual Hard Disk In the Virtual PC window, select CD > Capture ISO Image: In the Select CD Image to Capture dialog box, browse through your local hard drive to locate the Virtual Disk Precompactor.iso file, then click the Open button: C:\Program Files\Microsoft Virtual PC\Virtual Machine Additions\Virtual Disk Precompactor.iso When the Microsoft Virtual Disk Pre-Compactor alert is displayed, click the Yes button: When the process is complete, the Pre-Compaction Completed message will be displayed; click the OK button: Select Start > Shut Down to shut down the virtual machine, then return to the Virtual PC Console and select File > Virtual Disk Wizard: In the Welcome to the Virtual Disk Wizard dialog box, click the Next button: In the Disk Options dialog box, select the Edit an existing virtual disk option, then click the Next button: In the Virtual Disk to Edit dialog box, browse for the VHD (Virtual Hard Disk) file which contains your virtual machine, then click the Next button: In the Virtual Disk Information and Options dialog box, select the Compact it option, then click the Next button: In the Virtual Hard Disk Compaction dialog box, select the Replace the original file option, then click the Next button: In the Completing the Virtual Disk Wizard dialog box, click the Finish button: When the compaction process is complete, a success message will be displayed; click the Close button to acknowledge the message: You should now have a fully-functional and optimized MOSS 2007 Virtual PC image that can be used for demos and development work. In Part 20, we’ll look at using Virtual PC’s differencing disks feature, which allows us to effectively “lock down” our new VPC image and use it as a base for creating multiple virtual machines for demos and development work, while conserving hard disk space at the same time. Part 20: Creating a Virtual PC Differencing Disk Launch Windows Explorer, locate and select the Virtual Hard Disk (VHD) file for your virtual machine we’ve been building, then select File > Properties: Under the General tab of the Properties dialog box, select the Read-only attribute checkbox, then click the OK button: In the Virtual PC Console, select File > Virtual Disk Wizard: In the Welcome to the Virtual Disk Wizard dialog box, click the Next button: In the Disk Options dialog box, select the Create a new virtual disk option, then click the Next button: In the Virtual Disk Type dialog box, select the virtual hard disk option, then click the Next button: In the Virtual Hard Disk Location dialog box, create a name for the new virtual hard disk file (VPC02 MOSS 2007 DIFF 01.vhd, in this case) and click the Browse button to locate a folder on your hard drive to store the new file, then click the Next button: In the Virtual Hard Disk Options dialog box, select the Differencing option, then click the Next button: In the Differencing Virtual Hard Disk dialog box, click the Browse button to locate the “parent” Virtual Hard Disk (VHD) file that we’ve been building (VPC02 MOSS SETUP DEMO, in this case), then click the Next button: In the Completing the Virtual Disk Wizard dialog box, click the Finish button: An alert message should be displayed, stating that the new virtual disk was created successfully; click the Close button: In the Virtual PC Console, select File > New Virtual Machine Wizard: In the Welcome to the New Virtual Machine Wizard dialog box, click the Next button: In the Options dialog box, select the Create a virtual machine option, then click the Next button: In the Virtual Machine Name and Location dialog box, create a name for the new virtual machine file (VPC02 MOSS 2007 DIFF 01.vmc, in this case) and click the Browse button to locate a folder on your hard drive to store the new file, then click the Next button: In the Operating System dialog box, select Windows Server 2003 from the drop-down list, then click the Next button: In the Memory dialog box, select the Adjust the RAM option, then set a value which is at least half of the physical memory on your host machine (1000 MB, in this case), then click the Next button: In the Virtual Hard Disk Options dialog box, select the existing virtual hard disk option, then click the Next button: In the Virtual Hard Disk Location dialog box, click the Browse button to locate the new Virtual Hard Disk (VHD) differencing disk file that we created (VPC02 MOSS 2007 DIFF 01.vhd, in this case), then click the Next button: In the Completing the New Virtual Machine Wizard dialog box, click the Finish button: The new virtual machine should be listed in the Virtual PC Console (VPC02 MOSS 2007 DIFF 01, in this case): To avoid running the “parent” virtual machine and accidentally modifying it, select the virtual machine from the Virtual PC Console (VPC02 MOSS SETUP DEMO, in this case), then click the Remove button: A Do you want to remove this virtual machine alert message should be displayed; click the Yes button: You should now have a protected MOSS 2007 Virtual PC base image, as well as a differenced disk which can be used for demos and development. You can use this procedure for creating multiple differencing disks which build upon the same parent MOSS 2007 virtual machine that we’ve built. We’ve finally reached the end of this series of posts which describe how to get up and running with a MOSS 2007 Virtual PC image (phew!). This isn’t the last that you will be hearing from me, though; stay tuned for further posts which describe how to use some of the interesting new features of MOSS 2007.

Các file đính kèm theo tài liệu này:

  • docHướng dẫn cài đặt SharePoint 2007.doc
Tài liệu liên quan