Yesterday a small period of time the website appeared service unavailable, so the author solved this problem urgently, learned that service unavailable is a kind of system warning prompt. If a Web site has too many programs or too many errors, the system log prompts: "Application pool ' xxx" is automatically disabled because of a series of errors in the process serving the application pool, or because the application pool ' xxx ' exceeds its job restriction setting. At this point, visit this site will be prompted: Service unavailable. The general system will return to normal in about 30 seconds, more than a few times can be normal access to refresh. The site of this problem, typically the Web site of the Windows platform, has no problem with the Linux platform's Web site.
Network Circle Butler Solution:
One: Restart the Web site's IIS, and then restore access to the Web site.
1, restart the IIS method
(1) as shown in the following figure, you can implement IIS restart by entering IISReset in the start-〉 run.
(2) as shown in the following illustration, you can restart IIS by opening IIS and then right-clicking-〉 All Tasks-〉 IIS
(3) The following figure can also be done by right-clicking my computer--managing the-〉 service to find the World Wide Web service to restart
Second: To avoid this problem, the web-circle Butler wrote a script that automatically restarts IIS every 4:30 A.M., as follows:
(1) First write the following in the Notepad document
The code is as follows |
Copy Code |
@echo off
IISReset
|
(2) then save As. Bat (note that names are not named after IISReset)
(3) Open Scheduled Tasks, add Scheduled Tasks
(4) Follow the prompts step-by-step down
(5) Select Browse, navigate to the file of your script
(7) Enter the server password
(8) Check the diagram to enter the advanced settings
(9) Select Schedule-〉 Advanced options
(10) Repeat the task on the hook, select how long you want to execute a row of IIS restart scripts, the duration is longer than the repetitive task time, click OK to implement the scheduled restart of IIS!