{"id":48740,"date":"2024-10-07T23:52:14","date_gmt":"2024-10-07T15:52:14","guid":{"rendered":"https:\/\/server.hk\/cnblog\/48740\/"},"modified":"2024-10-07T23:52:14","modified_gmt":"2024-10-07T15:52:14","slug":"iis-%e6%8c%87%e4%bb%a4%ef%bc%9aappcmd-recycle-apppool-%e5%9b%9e%e6%94%b6%e6%87%89%e7%94%a8%e6%b1%a0","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/48740\/","title":{"rendered":"IIS \u6307\u4ee4\uff1aappcmd recycle apppool &#8211; \u56de\u6536\u61c9\u7528\u6c60"},"content":{"rendered":"<h1 id=\"iis-%e6%8c%87%e4%bb%a4%ef%bc%9aappcmd-recycle-apppool-%e5%9b%9e%e6%94%b6%e6%87%89%e7%94%a8%e6%b1%a0-XBfprdAHmG\">IIS \u6307\u4ee4\uff1aappcmd recycle apppool &#8211; \u56de\u6536\u61c9\u7528\u6c60<\/h1>\n<p>\u5728\u4f7f\u7528 Internet Information Services (IIS) \u9032\u884c\u7db2\u7ad9\u7ba1\u7406\u6642\uff0c\u61c9\u7528\u6c60\u7684\u7ba1\u7406\u662f\u975e\u5e38\u91cd\u8981\u7684\u4e00\u74b0\u3002\u61c9\u7528\u6c60\u63d0\u4f9b\u4e86\u4e00\u500b\u9694\u96e2\u7684\u74b0\u5883\uff0c\u8b93\u4e0d\u540c\u7684\u7db2\u7ad9\u6216\u61c9\u7528\u7a0b\u5f0f\u53ef\u4ee5\u5728\u540c\u4e00\u53f0\u4f3a\u670d\u5668\u4e0a\u904b\u884c\u800c\u4e0d\u4e92\u76f8\u5f71\u97ff\u3002\u7576\u61c9\u7528\u6c60\u51fa\u73fe\u554f\u984c\u6216\u9700\u8981\u66f4\u65b0\u6642\uff0c\u56de\u6536\u61c9\u7528\u6c60\u662f\u4e00\u500b\u5e38\u898b\u7684\u64cd\u4f5c\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u5982\u4f55\u4f7f\u7528 <code>appcmd recycle apppool<\/code> \u6307\u4ee4\u4f86\u56de\u6536\u61c9\u7528\u6c60\uff0c\u4ee5\u53ca\u9019\u4e00\u64cd\u4f5c\u7684\u610f\u7fa9\u548c\u6700\u4f73\u5be6\u8e10\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%af%e6%87%89%e7%94%a8%e6%b1%a0%ef%bc%9f-XBfprdAHmG\">\u4ec0\u9ebc\u662f\u61c9\u7528\u6c60\uff1f<\/h2>\n<p>\u61c9\u7528\u6c60\u662f IIS \u4e2d\u7684\u4e00\u500b\u91cd\u8981\u6982\u5ff5\uff0c\u5b83\u5141\u8a31\u591a\u500b\u7db2\u7ad9\u6216\u61c9\u7528\u7a0b\u5f0f\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\u5f0f\u5d29\u6f70\uff0c\u5176\u4ed6\u61c9\u7528\u7a0b\u5f0f\u4e0d\u6703\u53d7\u5230\u5f71\u97ff\u3002\u9019\u7a2e\u9694\u96e2\u6027\u63d0\u9ad8\u4e86\u4f3a\u670d\u5668\u7684\u7a69\u5b9a\u6027\u548c\u5b89\u5168\u6027\u3002<\/p>\n<h2 id=\"%e7%82%ba%e4%bb%80%e9%ba%bc%e9%9c%80%e8%a6%81%e5%9b%9e%e6%94%b6%e6%87%89%e7%94%a8%e6%b1%a0%ef%bc%9f-XBfprdAHmG\">\u70ba\u4ec0\u9ebc\u9700\u8981\u56de\u6536\u61c9\u7528\u6c60\uff1f<\/h2>\n<p>\u56de\u6536\u61c9\u7528\u6c60\u7684\u539f\u56e0\u6709\u5f88\u591a\uff0c\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>\u91cb\u653e\u8cc7\u6e90\uff1a\u96a8\u8457\u6642\u9593\u7684\u63a8\u79fb\uff0c\u61c9\u7528\u6c60\u53ef\u80fd\u6703\u6d88\u8017\u904e\u591a\u7684\u8a18\u61b6\u9ad4\u6216\u5176\u4ed6\u8cc7\u6e90\uff0c\u56de\u6536\u53ef\u4ee5\u91cb\u653e\u9019\u4e9b\u8cc7\u6e90\u3002<\/li>\n<li>\u4fee\u5fa9\u554f\u984c\uff1a\u5982\u679c\u61c9\u7528\u7a0b\u5f0f\u51fa\u73fe\u932f\u8aa4\u6216\u6027\u80fd\u4e0b\u964d\uff0c\u56de\u6536\u61c9\u7528\u6c60\u53ef\u4ee5\u91cd\u555f\u61c9\u7528\u7a0b\u5f0f\uff0c\u6062\u5fa9\u6b63\u5e38\u904b\u884c\u3002<\/li>\n<li>\u61c9\u7528\u66f4\u65b0\uff1a\u5728\u9032\u884c\u61c9\u7528\u7a0b\u5f0f\u66f4\u65b0\u5f8c\uff0c\u56de\u6536\u61c9\u7528\u6c60\u53ef\u4ee5\u78ba\u4fdd\u65b0\u7248\u672c\u7684\u61c9\u7528\u7a0b\u5f0f\u88ab\u52a0\u8f09\u3002<\/li>\n<\/ul>\n<h2 id=\"%e4%bd%bf%e7%94%a8-appcmd-%e6%8c%87%e4%bb%a4%e5%9b%9e%e6%94%b6%e6%87%89%e7%94%a8%e6%b1%a0-XBfprdAHmG\">\u4f7f\u7528 appcmd \u6307\u4ee4\u56de\u6536\u61c9\u7528\u6c60<\/h2>\n<p>\u5728 IIS \u4e2d\uff0c<code>appcmd<\/code> \u662f\u4e00\u500b\u5f37\u5927\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u4f86\u7ba1\u7406 IIS \u7684\u5404\u7a2e\u8a2d\u5b9a\u3002\u8981\u56de\u6536\u61c9\u7528\u6c60\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u6307\u4ee4\uff1a<\/p>\n<pre><code>appcmd recycle apppool \/apppool.name:\"\u4f60\u7684\u61c9\u7528\u6c60\u540d\u7a31\"<\/code><\/pre>\n<p>\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u7684\u61c9\u7528\u6c60\u540d\u7a31\u70ba <code>MyAppPool<\/code>\uff0c\u5247\u6307\u4ee4\u5982\u4e0b\uff1a<\/p>\n<pre><code>appcmd recycle apppool \/apppool.name:\"MyAppPool\"<\/code><\/pre>\n<p>\u57f7\u884c\u9019\u500b\u6307\u4ee4\u5f8c\uff0cIIS \u5c07\u6703\u7acb\u5373\u56de\u6536\u6307\u5b9a\u7684\u61c9\u7528\u6c60\uff0c\u4e26\u91cd\u65b0\u555f\u52d5\u76f8\u95dc\u7684\u61c9\u7528\u7a0b\u5f0f\u3002<\/p>\n<h2 id=\"%e6%9c%80%e4%bd%b3%e5%af%a6%e8%b8%90-XBfprdAHmG\">\u6700\u4f73\u5be6\u8e10<\/h2>\n<p>\u5728\u4f7f\u7528 <code>appcmd recycle apppool<\/code> \u6307\u4ee4\u6642\uff0c\u5efa\u8b70\u9075\u5faa\u4ee5\u4e0b\u6700\u4f73\u5be6\u8e10\uff1a<\/p>\n<ul>\n<li>\u5b9a\u671f\u56de\u6536\uff1a\u6839\u64da\u61c9\u7528\u7a0b\u5f0f\u7684\u4f7f\u7528\u60c5\u6cc1\uff0c\u5b9a\u671f\u56de\u6536\u61c9\u7528\u6c60\u53ef\u4ee5\u4fdd\u6301\u7cfb\u7d71\u7684\u7a69\u5b9a\u6027\u3002<\/li>\n<li>\u76e3\u63a7\u6027\u80fd\uff1a\u4f7f\u7528\u6027\u80fd\u76e3\u63a7\u5de5\u5177\u4f86\u89c0\u5bdf\u61c9\u7528\u6c60\u7684\u8cc7\u6e90\u4f7f\u7528\u60c5\u6cc1\uff0c\u53ca\u6642\u9032\u884c\u56de\u6536\u3002<\/li>\n<li>\u907f\u514d\u983b\u7e41\u56de\u6536\uff1a\u904e\u65bc\u983b\u7e41\u7684\u56de\u6536\u53ef\u80fd\u6703\u5f71\u97ff\u7528\u6236\u9ad4\u9a57\uff0c\u61c9\u6839\u64da\u5be6\u969b\u9700\u6c42\u9032\u884c\u8abf\u6574\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b5%90%e8%ab%96-XBfprdAHmG\">\u7d50\u8ad6<\/h2>\n<p>\u56de\u6536\u61c9\u7528\u6c60\u662f IIS \u7ba1\u7406\u4e2d\u4e00\u500b\u91cd\u8981\u7684\u64cd\u4f5c\uff0c\u80fd\u5920\u6709\u6548\u5730\u91cb\u653e\u8cc7\u6e90\u3001\u4fee\u5fa9\u554f\u984c\u548c\u52a0\u8f09\u66f4\u65b0\u3002\u901a\u904e\u4f7f\u7528 <code>appcmd recycle apppool<\/code> \u6307\u4ee4\uff0c\u7ba1\u7406\u54e1\u53ef\u4ee5\u8f15\u9b06\u5730\u9032\u884c\u9019\u4e00\u64cd\u4f5c\uff0c\u5f9e\u800c\u4fdd\u6301\u4f3a\u670d\u5668\u7684\u7a69\u5b9a\u6027\u548c\u6027\u80fd\u3002\u5c0d\u65bc\u9700\u8981\u9ad8\u53ef\u7528\u6027\u548c\u7a69\u5b9a\u6027\u7684\u7db2\u7ad9\u4f86\u8aaa\uff0c\u5408\u7406\u5730\u7ba1\u7406\u61c9\u7528\u6c60\u662f\u81f3\u95dc\u91cd\u8981\u7684\u3002<\/p>\n<p>\u5982\u9700\u4e86\u89e3\u66f4\u591a\u6709\u95dc <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u548c\u4f3a\u670d\u5668\u7ba1\u7406\u7684\u8cc7\u8a0a\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528 IIS \u6307\u4ee4 `appcmd recycle apppool` \u4f86\u56de\u6536\u61c9\u7528\u6c60\uff0c\u78ba\u4fdd\u61c9\u7528\u7a0b\u5f0f\u7a69\u5b9a\u904b\u884c\uff0c\u91cb\u653e\u8cc7\u6e90\u4e26\u61c9\u7528\u914d\u7f6e\u8b8a\u66f4\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-48740","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/48740","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=48740"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/48740\/revisions"}],"predecessor-version":[{"id":48741,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/48740\/revisions\/48741"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=48740"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=48740"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=48740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}