{"id":56942,"date":"2024-10-10T15:36:29","date_gmt":"2024-10-10T07:36:29","guid":{"rendered":"https:\/\/server.hk\/cnblog\/56942\/"},"modified":"2024-10-10T15:36:29","modified_gmt":"2024-10-10T07:36:29","slug":"iis-%e6%8c%87%e4%bb%a4%ef%bc%9astart-webapppool-%e5%95%9f%e5%8b%95-web-%e6%87%89%e7%94%a8%e6%b1%a0","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/56942\/","title":{"rendered":"IIS \u6307\u4ee4\uff1aStart-WebAppPool &#8211; \u555f\u52d5 Web \u61c9\u7528\u6c60"},"content":{"rendered":"<h1 id=\"iis-%e6%8c%87%e4%bb%a4%ef%bc%9astart-webapppool-%e5%95%9f%e5%8b%95-web-%e6%87%89%e7%94%a8%e6%b1%a0-ZfZdykVOGE\">IIS \u6307\u4ee4\uff1aStart-WebAppPool &#8211; \u555f\u52d5 Web \u61c9\u7528\u6c60<\/h1>\n<p>\u5728\u73fe\u4ee3\u7684\u7db2\u7d61\u74b0\u5883\u4e2d\uff0cWeb \u61c9\u7528\u7a0b\u5e8f\u7684\u7a69\u5b9a\u6027\u548c\u6027\u80fd\u81f3\u95dc\u91cd\u8981\u3002\u5c0d\u65bc\u4f7f\u7528 Internet Information Services (IIS) \u7684\u958b\u767c\u8005\u548c\u7cfb\u7d71\u7ba1\u7406\u54e1\u4f86\u8aaa\uff0c\u7ba1\u7406 Web \u61c9\u7528\u6c60\u662f\u4e00\u9805\u57fa\u672c\u4efb\u52d9\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e IIS \u6307\u4ee4 <code>Start-WebAppPool<\/code> \u7684\u4f7f\u7528\u65b9\u6cd5\u53ca\u5176\u91cd\u8981\u6027\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%af-web-%e6%87%89%e7%94%a8%e6%b1%a0%ef%bc%9f-ZfZdykVOGE\">\u4ec0\u9ebc\u662f Web \u61c9\u7528\u6c60\uff1f<\/h2>\n<p>Web \u61c9\u7528\u6c60\u662f IIS \u4e2d\u7684\u4e00\u500b\u91cd\u8981\u6982\u5ff5\uff0c\u5b83\u5141\u8a31\u591a\u500b Web \u61c9\u7528\u7a0b\u5e8f\u5728\u540c\u4e00\u53f0\u4f3a\u670d\u5668\u4e0a\u904b\u884c\u800c\u4e0d\u4e92\u76f8\u5e72\u64fe\u3002\u6bcf\u500b\u61c9\u7528\u6c60\u90fd\u6709\u81ea\u5df1\u7684\u9032\u7a0b\uff0c\u9019\u610f\u5473\u8457\u5982\u679c\u4e00\u500b\u61c9\u7528\u7a0b\u5e8f\u5d29\u6f70\uff0c\u5176\u4ed6\u61c9\u7528\u7a0b\u5e8f\u4e0d\u6703\u53d7\u5230\u5f71\u97ff\u3002\u9019\u7a2e\u9694\u96e2\u6027\u63d0\u9ad8\u4e86\u61c9\u7528\u7a0b\u5e8f\u7684\u7a69\u5b9a\u6027\u548c\u5b89\u5168\u6027\u3002<\/p>\n<h2 id=\"start-webapppool-%e6%8c%87%e4%bb%a4%e6%a6%82%e8%bf%b0-ZfZdykVOGE\">Start-WebAppPool \u6307\u4ee4\u6982\u8ff0<\/h2>\n<p><code>Start-WebAppPool<\/code> \u662f\u4e00\u500b PowerShell \u6307\u4ee4\uff0c\u7528\u65bc\u555f\u52d5\u6307\u5b9a\u7684 Web \u61c9\u7528\u6c60\u3002\u7576\u61c9\u7528\u6c60\u56e0\u70ba\u67d0\u4e9b\u539f\u56e0\uff08\u5982\u8cc7\u6e90\u9650\u5236\u6216\u624b\u52d5\u505c\u6b62\uff09\u800c\u505c\u6b62\u6642\uff0c\u4f7f\u7528\u6b64\u6307\u4ee4\u53ef\u4ee5\u5feb\u901f\u6062\u5fa9\u5176\u904b\u884c\u3002<\/p>\n<h3 id=\"%e5%9f%ba%e6%9c%ac%e8%aa%9e%e6%b3%95-ZfZdykVOGE\">\u57fa\u672c\u8a9e\u6cd5<\/h3>\n<pre><code>Start-WebAppPool -Name \"\u61c9\u7528\u6c60\u540d\u7a31\"<\/code><\/pre>\n<p>\u5728\u9019\u88e1\uff0c<code>-Name<\/code> \u53c3\u6578\u7528\u65bc\u6307\u5b9a\u8981\u555f\u52d5\u7684\u61c9\u7528\u6c60\u540d\u7a31\u3002<\/p>\n<h2 id=\"%e4%bd%bf%e7%94%a8%e7%af%84%e4%be%8b-ZfZdykVOGE\">\u4f7f\u7528\u7bc4\u4f8b<\/h2>\n<p>\u5047\u8a2d\u6211\u5011\u6709\u4e00\u500b\u540d\u70ba &#8220;MyAppPool&#8221; \u7684\u61c9\u7528\u6c60\uff0c\u6211\u5011\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u6307\u4ee4\u4f86\u555f\u52d5\u5b83\uff1a<\/p>\n<pre><code>Start-WebAppPool -Name \"MyAppPool\"<\/code><\/pre>\n<p>\u57f7\u884c\u6b64\u6307\u4ee4\u5f8c\uff0c\u7cfb\u7d71\u5c07\u6aa2\u67e5\u8a72\u61c9\u7528\u6c60\u7684\u72c0\u614b\uff0c\u4e26\u5c07\u5176\u555f\u52d5\u3002\u5982\u679c\u61c9\u7528\u6c60\u5df2\u7d93\u5728\u904b\u884c\uff0c\u5247\u4e0d\u6703\u6709\u4efb\u4f55\u8b8a\u5316\u3002<\/p>\n<h2 id=\"%e6%aa%a2%e6%9f%a5%e6%87%89%e7%94%a8%e6%b1%a0%e7%8b%80%e6%85%8b-ZfZdykVOGE\">\u6aa2\u67e5\u61c9\u7528\u6c60\u72c0\u614b<\/h2>\n<p>\u5728\u555f\u52d5\u61c9\u7528\u6c60\u4e4b\u524d\uff0c\u4e86\u89e3\u5176\u7576\u524d\u72c0\u614b\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u53ef\u4ee5\u4f7f\u7528 <code>Get-WebAppPoolState<\/code> \u6307\u4ee4\u4f86\u6aa2\u67e5\u61c9\u7528\u6c60\u7684\u72c0\u614b\uff1a<\/p>\n<pre><code>Get-WebAppPoolState -Name \"MyAppPool\"<\/code><\/pre>\n<p>\u9019\u5c07\u8fd4\u56de\u61c9\u7528\u6c60\u7684\u7576\u524d\u72c0\u614b\uff0c\u4f8b\u5982 &#8220;Running&#8221; \u6216 &#8220;Stopped&#8221;\u3002<\/p>\n<h2 id=\"%e5%b8%b8%e8%a6%8b%e5%95%8f%e9%a1%8c-ZfZdykVOGE\">\u5e38\u898b\u554f\u984c<\/h2>\n<h3 id=\"1-%e7%82%ba%e4%bb%80%e9%ba%bc%e6%88%91%e7%9a%84%e6%87%89%e7%94%a8%e6%b1%a0%e6%9c%83%e5%81%9c%e6%ad%a2%ef%bc%9f-ZfZdykVOGE\">1. \u70ba\u4ec0\u9ebc\u6211\u7684\u61c9\u7528\u6c60\u6703\u505c\u6b62\uff1f<\/h3>\n<p>\u61c9\u7528\u6c60\u53ef\u80fd\u56e0\u70ba\u591a\u7a2e\u539f\u56e0\u800c\u505c\u6b62\uff0c\u5305\u62ec\u8cc7\u6e90\u9650\u5236\u3001\u61c9\u7528\u7a0b\u5e8f\u932f\u8aa4\u6216\u624b\u52d5\u64cd\u4f5c\u3002\u5b9a\u671f\u6aa2\u67e5\u61c9\u7528\u6c60\u7684\u5065\u5eb7\u72c0\u614b\u662f\u6700\u4f73\u5be6\u8e10\u3002<\/p>\n<h3 id=\"2-%e5%a6%82%e4%bd%95%e8%87%aa%e5%8b%95%e9%87%8d%e5%95%9f%e6%87%89%e7%94%a8%e6%b1%a0%ef%bc%9f-ZfZdykVOGE\">2. \u5982\u4f55\u81ea\u52d5\u91cd\u555f\u61c9\u7528\u6c60\uff1f<\/h3>\n<p>\u53ef\u4ee5\u8a2d\u7f6e\u61c9\u7528\u6c60\u7684\u56de\u6536\u7b56\u7565\uff0c\u4ee5\u4fbf\u5728\u7279\u5b9a\u689d\u4ef6\u4e0b\u81ea\u52d5\u91cd\u555f\u3002\u9019\u53ef\u4ee5\u901a\u904e IIS \u7ba1\u7406\u5668\u6216 PowerShell \u6307\u4ee4\u4f86\u914d\u7f6e\u3002<\/p>\n<h2 id=\"%e7%b5%90%e8%ab%96-ZfZdykVOGE\">\u7d50\u8ad6<\/h2>\n<p>\u4f7f\u7528 <code>Start-WebAppPool<\/code> \u6307\u4ee4\u53ef\u4ee5\u6709\u6548\u5730\u7ba1\u7406 IIS \u4e2d\u7684 Web \u61c9\u7528\u6c60\uff0c\u78ba\u4fdd\u61c9\u7528\u7a0b\u5e8f\u7684\u7a69\u5b9a\u904b\u884c\u3002\u4e86\u89e3\u5982\u4f55\u555f\u52d5\u548c\u6aa2\u67e5\u61c9\u7528\u6c60\u7684\u72c0\u614b\u662f\u6bcf\u4f4d\u7cfb\u7d71\u7ba1\u7406\u54e1\u5fc5\u5099\u7684\u6280\u80fd\u3002\u900f\u904e\u9019\u4e9b\u6307\u4ee4\uff0c\u60a8\u53ef\u4ee5\u66f4\u597d\u5730\u7dad\u8b77\u60a8\u7684 Web \u74b0\u5883\uff0c\u78ba\u4fdd\u5176\u9ad8\u6548\u904b\u884c\u3002<\/p>\n<p>\u5982\u679c\u60a8\u6b63\u5728\u5c0b\u627e\u53ef\u9760\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2f VPS<\/a> \u89e3\u6c7a\u65b9\u6848\uff0cServer.HK \u63d0\u4f9b\u591a\u7a2e\u9078\u64c7\uff0c\u6eff\u8db3\u4e0d\u540c\u9700\u6c42\u7684\u5ba2\u6236\u3002\u7121\u8ad6\u662f\u5c0f\u578b\u4f01\u696d\u9084\u662f\u5927\u578b\u4f01\u696d\uff0c\u6211\u5011\u7684 <a href=\"https:\/\/server.hk\">\u4e91\u670d\u52a1\u5668<\/a> \u90fd\u80fd\u70ba\u60a8\u63d0\u4f9b\u7a69\u5b9a\u7684\u652f\u6301\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u555f\u52d5\u6307\u5b9a\u7684 Web \u61c9\u7528\u6c60\uff0c\u78ba\u4fdd\u7db2\u7ad9\u904b\u884c\u9806\u66a2\uff0c\u63d0\u5347\u6027\u80fd\u8207\u7a69\u5b9a\u6027\u3002\u4f7f\u7528 IIS \u6307\u4ee4\uff1aStart-WebAppPool\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-56942","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/56942","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=56942"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/56942\/revisions"}],"predecessor-version":[{"id":56943,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/56942\/revisions\/56943"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=56942"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=56942"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=56942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}