{"id":48716,"date":"2024-10-07T23:41:37","date_gmt":"2024-10-07T15:41:37","guid":{"rendered":"https:\/\/server.hk\/cnblog\/48716\/"},"modified":"2024-10-07T23:41:37","modified_gmt":"2024-10-07T15:41:37","slug":"iis-%e6%8c%87%e4%bb%a4%ef%bc%9aappcmd-list-wp-%e5%88%97%e5%87%ba%e5%b7%a5%e4%bd%9c%e9%80%b2%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/48716\/","title":{"rendered":"IIS \u6307\u4ee4\uff1aappcmd list wp &#8211; \u5217\u51fa\u5de5\u4f5c\u9032\u7a0b"},"content":{"rendered":"<h1 id=\"iis-%e6%8c%87%e4%bb%a4%ef%bc%9aappcmd-list-wp-%e5%88%97%e5%87%ba%e5%b7%a5%e4%bd%9c%e9%80%b2%e7%a8%8b-fvSGiNLAMr\">IIS \u6307\u4ee4\uff1aappcmd list wp &#8211; \u5217\u51fa\u5de5\u4f5c\u9032\u7a0b<\/h1>\n<p>\u5728\u7ba1\u7406 Windows Server \u7684 Internet Information Services (IIS) \u6642\uff0c\u4e86\u89e3\u5982\u4f55\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\u4f86\u76e3\u63a7\u548c\u7ba1\u7406\u5de5\u4f5c\u9032\u7a0b\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u9019\u7bc7\u6587\u7ae0\u5c07\u6df1\u5165\u63a2\u8a0e <code>appcmd list wp<\/code> \u6307\u4ee4\uff0c\u4e26\u8aaa\u660e\u5176\u5728 IIS \u74b0\u5883\u4e2d\u7684\u61c9\u7528\u53ca\u91cd\u8981\u6027\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%af-appcmd%ef%bc%9f-fvSGiNLAMr\">\u4ec0\u9ebc\u662f appcmd\uff1f<\/h2>\n<p><code>appcmd<\/code> \u662f\u4e00\u500b\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u96a8\u8457 IIS 7.0 \u53ca\u66f4\u9ad8\u7248\u672c\u4e00\u8d77\u63d0\u4f9b\u3002\u5b83\u5141\u8a31\u7cfb\u7d71\u7ba1\u7406\u54e1\u7ba1\u7406 IIS \u7684\u5404\u7a2e\u529f\u80fd\uff0c\u5305\u62ec\u7db2\u7ad9\u3001\u61c9\u7528\u7a0b\u5f0f\u6c60\u548c\u5de5\u4f5c\u9032\u7a0b\u7b49\u3002\u4f7f\u7528 <code>appcmd<\/code>\uff0c\u7ba1\u7406\u54e1\u53ef\u4ee5\u5feb\u901f\u57f7\u884c\u591a\u7a2e\u64cd\u4f5c\uff0c\u5f9e\u800c\u63d0\u9ad8\u7ba1\u7406\u6548\u7387\u3002<\/p>\n<h2 id=\"%e5%b7%a5%e4%bd%9c%e9%80%b2%e7%a8%8b%e7%9a%84%e6%a6%82%e5%bf%b5-fvSGiNLAMr\">\u5de5\u4f5c\u9032\u7a0b\u7684\u6982\u5ff5<\/h2>\n<p>\u5728 IIS \u4e2d\uff0c\u5de5\u4f5c\u9032\u7a0b\uff08Worker Process\uff0c\u7c21\u7a31 WP\uff09\u662f\u57f7\u884c\u61c9\u7528\u7a0b\u5f0f\u7684\u9032\u7a0b\u3002\u6bcf\u500b\u61c9\u7528\u7a0b\u5f0f\u6c60\u53ef\u4ee5\u6709\u4e00\u500b\u6216\u591a\u500b\u5de5\u4f5c\u9032\u7a0b\uff0c\u9019\u4e9b\u9032\u7a0b\u8ca0\u8cac\u8655\u7406\u4f86\u81ea\u7528\u6236\u7684\u8acb\u6c42\u3002\u4e86\u89e3\u5de5\u4f5c\u9032\u7a0b\u7684\u72c0\u614b\u548c\u6027\u80fd\u5c0d\u65bc\u78ba\u4fdd\u7db2\u7ad9\u7684\u7a69\u5b9a\u6027\u548c\u6027\u80fd\u81f3\u95dc\u91cd\u8981\u3002<\/p>\n<h2 id=\"%e4%bd%bf%e7%94%a8-appcmd-%e5%88%97%e5%87%ba%e5%b7%a5%e4%bd%9c%e9%80%b2%e7%a8%8b-fvSGiNLAMr\">\u4f7f\u7528 appcmd \u5217\u51fa\u5de5\u4f5c\u9032\u7a0b<\/h2>\n<p>\u8981\u5217\u51fa IIS \u4e2d\u7684\u6240\u6709\u5de5\u4f5c\u9032\u7a0b\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>appcmd list wp<\/code><\/pre>\n<p>\u9019\u500b\u6307\u4ee4\u6703\u986f\u793a\u6240\u6709\u7576\u524d\u904b\u884c\u7684\u5de5\u4f5c\u9032\u7a0b\u7684\u8a73\u7d30\u4fe1\u606f\uff0c\u5305\u62ec\u9032\u7a0b ID\u3001\u61c9\u7528\u7a0b\u5f0f\u6c60\u540d\u7a31\u3001\u72c0\u614b\u7b49\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u898b\u7684\u8f38\u51fa\u793a\u4f8b\uff1a<\/p>\n<pre><code>\nID      APPPOOL            STATE\n1234    DefaultAppPool    Running\n5678    MyAppPool         Stopped\n<\/code><\/pre>\n<h2 id=\"%e6%8c%87%e4%bb%a4%e5%8f%83%e6%95%b8-fvSGiNLAMr\">\u6307\u4ee4\u53c3\u6578<\/h2>\n<p>\u9664\u4e86\u57fa\u672c\u7684 <code>appcmd list wp<\/code> \u6307\u4ee4\u5916\uff0c\u9084\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u53c3\u6578\u4f86\u904e\u6ffe\u6216\u683c\u5f0f\u5316\u8f38\u51fa\u3002\u4f8b\u5982\uff1a<\/p>\n<ul>\n<li><code>\/state:Running<\/code> &#8211; \u53ea\u5217\u51fa\u904b\u884c\u4e2d\u7684\u5de5\u4f5c\u9032\u7a0b\u3002<\/li>\n<li><code>\/appPool:MyAppPool<\/code> &#8211; \u53ea\u5217\u51fa\u6307\u5b9a\u61c9\u7528\u7a0b\u5f0f\u6c60\u7684\u5de5\u4f5c\u9032\u7a0b\u3002<\/li>\n<li><code>\/text:* <\/code> &#8211; \u81ea\u5b9a\u7fa9\u8f38\u51fa\u683c\u5f0f\uff0c\u986f\u793a\u6240\u6709\u5c6c\u6027\u3002<\/li>\n<\/ul>\n<p>\u4f8b\u5982\uff0c\u82e5\u8981\u5217\u51fa\u6240\u6709\u904b\u884c\u4e2d\u7684\u5de5\u4f5c\u9032\u7a0b\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>appcmd list wp \/state:Running<\/code><\/pre>\n<h2 id=\"%e5%af%a6%e9%9a%9b%e6%87%89%e7%94%a8%e5%a0%b4%e6%99%af-fvSGiNLAMr\">\u5be6\u969b\u61c9\u7528\u5834\u666f<\/h2>\n<p>\u4f7f\u7528 <code>appcmd list wp<\/code> \u6307\u4ee4\u53ef\u4ee5\u5e6b\u52a9\u7cfb\u7d71\u7ba1\u7406\u54e1\u5728\u591a\u7a2e\u60c5\u6cc1\u4e0b\u9032\u884c\u6545\u969c\u6392\u9664\u548c\u6027\u80fd\u76e3\u63a7\u3002\u4f8b\u5982\uff1a<\/p>\n<ul>\n<li>\u7576\u7db2\u7ad9\u51fa\u73fe\u6027\u80fd\u554f\u984c\u6642\uff0c\u7ba1\u7406\u54e1\u53ef\u4ee5\u6aa2\u67e5\u5de5\u4f5c\u9032\u7a0b\u7684\u72c0\u614b\uff0c\u78ba\u5b9a\u662f\u5426\u6709\u9032\u7a0b\u672a\u6b63\u5e38\u904b\u884c\u3002<\/li>\n<li>\u5728\u9032\u884c\u61c9\u7528\u7a0b\u5f0f\u6c60\u7684\u8abf\u6574\u6642\uff0c\u7ba1\u7406\u54e1\u53ef\u4ee5\u67e5\u770b\u76f8\u95dc\u5de5\u4f5c\u9032\u7a0b\u7684\u6578\u91cf\u548c\u72c0\u614b\uff0c\u4ee5\u4fbf\u505a\u51fa\u66f4\u597d\u7684\u6c7a\u7b56\u3002<\/li>\n<li>\u5728\u9032\u884c\u5b89\u5168\u6027\u6aa2\u67e5\u6642\uff0c\u7ba1\u7406\u54e1\u53ef\u4ee5\u78ba\u4fdd\u6240\u6709\u5de5\u4f5c\u9032\u7a0b\u90fd\u5728\u9810\u671f\u7684\u61c9\u7528\u7a0b\u5f0f\u6c60\u4e2d\u904b\u884c\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-fvSGiNLAMr\">\u7e3d\u7d50<\/h2>\n<p>\u638c\u63e1 <code>appcmd list wp<\/code> \u6307\u4ee4\u7684\u4f7f\u7528\uff0c\u53ef\u4ee5\u5e6b\u52a9\u7cfb\u7d71\u7ba1\u7406\u54e1\u66f4\u6709\u6548\u5730\u7ba1\u7406 IIS \u74b0\u5883\u4e2d\u7684\u5de5\u4f5c\u9032\u7a0b\u3002\u900f\u904e\u9019\u500b\u5de5\u5177\uff0c\u7ba1\u7406\u54e1\u80fd\u5920\u5feb\u901f\u7372\u53d6\u5de5\u4f5c\u9032\u7a0b\u7684\u72c0\u614b\uff0c\u9032\u800c\u9032\u884c\u6545\u969c\u6392\u9664\u548c\u6027\u80fd\u512a\u5316\u3002\u5c0d\u65bc\u9700\u8981\u7a69\u5b9a\u904b\u884c\u7684\u7db2\u7ad9\u4f86\u8aaa\uff0c\u9019\u662f\u4e00\u500b\u4e0d\u53ef\u6216\u7f3a\u7684\u7ba1\u7406\u5de5\u5177\u3002<\/p>\n<p>\u5982\u679c\u60a8\u6b63\u5728\u5c0b\u627e\u9ad8\u6548\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/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\u7db2\u7ad9\u6258\u7ba1\u9084\u662f\u61c9\u7528\u7a0b\u5f0f\u90e8\u7f72\uff0c\u6211\u5011\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2f\u4f3a\u670d\u5668<\/a> \u90fd\u80fd\u70ba\u60a8\u63d0\u4f9b\u7a69\u5b9a\u7684\u652f\u6301\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528 IIS \u6307\u4ee4 appcmd list wp \u5217\u51fa\u6240\u6709\u5de5\u4f5c\u9032\u7a0b\uff0c\u4fbf\u65bc\u7ba1\u7406\u548c\u76e3\u63a7\u7db2\u7ad9\u6027\u80fd\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-48716","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/48716","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=48716"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/48716\/revisions"}],"predecessor-version":[{"id":48717,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/48716\/revisions\/48717"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=48716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=48716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=48716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}