{"id":47502,"date":"2024-10-07T14:22:00","date_gmt":"2024-10-07T06:22:00","guid":{"rendered":"https:\/\/server.hk\/cnblog\/47502\/"},"modified":"2024-10-07T14:22:00","modified_gmt":"2024-10-07T06:22:00","slug":"iis%e6%96%b0%e6%89%8b%e6%8c%87%e5%8d%97%ef%bc%9a%e5%b0%87iis%e8%88%87visual-studio%e9%9b%86%e6%88%90","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/47502\/","title":{"rendered":"IIS\u65b0\u624b\u6307\u5357\uff1a\u5c07IIS\u8207Visual Studio\u96c6\u6210"},"content":{"rendered":"<h1 id=\"iis%e6%96%b0%e6%89%8b%e6%8c%87%e5%8d%97%ef%bc%9a%e5%b0%87iis%e8%88%87visual-studio%e9%9b%86%e6%88%90-EDSGUGoAEy\">IIS\u65b0\u624b\u6307\u5357\uff1a\u5c07IIS\u8207Visual Studio\u96c6\u6210<\/h1>\n<p>\u5728\u7576\u4eca\u7684\u7db2\u7d61\u958b\u767c\u74b0\u5883\u4e2d\uff0cIIS\uff08Internet Information Services\uff09\u548cVisual Studio\u662f\u5169\u500b\u4e0d\u53ef\u6216\u7f3a\u7684\u5de5\u5177\u3002IIS\u4f5c\u70ba\u5fae\u8edf\u7684\u7db2\u9801\u4f3a\u670d\u5668\uff0c\u63d0\u4f9b\u4e86\u7a69\u5b9a\u7684\u74b0\u5883\u4f86\u6258\u7ba1\u7db2\u7ad9\u548c\u61c9\u7528\u7a0b\u5f0f\uff0c\u800cVisual Studio\u5247\u662f\u958b\u767c\u9019\u4e9b\u61c9\u7528\u7a0b\u5f0f\u7684\u5f37\u5927IDE\uff08\u96c6\u6210\u958b\u767c\u74b0\u5883\uff09\u3002\u672c\u6587\u5c07\u4ecb\u7d39\u5982\u4f55\u5c07IIS\u8207Visual Studio\u96c6\u6210\uff0c\u5e6b\u52a9\u65b0\u624b\u958b\u767c\u8005\u66f4\u6709\u6548\u5730\u9032\u884c\u958b\u767c\u548c\u6e2c\u8a66\u3002<\/p>\n<h2 id=\"1-%e5%ae%89%e8%a3%9diis-EDSGUGoAEy\">1. \u5b89\u88ddIIS<\/h2>\n<p>\u5728\u958b\u59cb\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u78ba\u4fdd\u4f60\u7684Windows\u7cfb\u7d71\u4e0a\u5df2\u7d93\u5b89\u88dd\u4e86IIS\u3002\u4ee5\u4e0b\u662f\u5b89\u88ddIIS\u7684\u6b65\u9a5f\uff1a<\/p>\n<ol>\n<li>\u6253\u958b\u63a7\u5236\u9762\u677f\uff0c\u9078\u64c7\u300c\u7a0b\u5f0f\u300d\u3002<\/li>\n<li>\u9ede\u64ca\u300c\u555f\u7528\u6216\u95dc\u9589Windows\u529f\u80fd\u300d\u3002<\/li>\n<li>\u5728\u5f48\u51fa\u7684\u7a97\u53e3\u4e2d\uff0c\u627e\u5230\u300cInternet Information Services\u300d\uff0c\u52fe\u9078\u5b83\u3002<\/li>\n<li>\u9ede\u64ca\u300c\u78ba\u5b9a\u300d\uff0c\u7cfb\u7d71\u5c07\u81ea\u52d5\u5b89\u88ddIIS\u3002<\/li>\n<\/ol>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u53ef\u4ee5\u5728\u700f\u89bd\u5668\u4e2d\u8f38\u5165\u300chttp:\/\/localhost\u300d\u4f86\u6aa2\u67e5IIS\u662f\u5426\u904b\u884c\u6b63\u5e38\u3002<\/p>\n<h2 id=\"2-%e5%9c%a8visual-studio%e4%b8%ad%e5%89%b5%e5%bb%baweb%e6%87%89%e7%94%a8%e7%a8%8b%e5%bc%8f-EDSGUGoAEy\">2. \u5728Visual Studio\u4e2d\u5275\u5efaWeb\u61c9\u7528\u7a0b\u5f0f<\/h2>\n<p>\u63a5\u4e0b\u4f86\uff0c\u6211\u5011\u5c07\u5728Visual Studio\u4e2d\u5275\u5efa\u4e00\u500b\u7c21\u55ae\u7684Web\u61c9\u7528\u7a0b\u5f0f\uff1a<\/p>\n<ol>\n<li>\u6253\u958bVisual Studio\uff0c\u9078\u64c7\u300c\u5275\u5efa\u65b0\u9805\u76ee\u300d\u3002<\/li>\n<li>\u9078\u64c7\u300cASP.NET Web\u61c9\u7528\u7a0b\u5f0f\u300d\uff0c\u7136\u5f8c\u9ede\u64ca\u300c\u4e0b\u4e00\u6b65\u300d\u3002<\/li>\n<li>\u70ba\u9805\u76ee\u547d\u540d\u4e26\u9078\u64c7\u5132\u5b58\u4f4d\u7f6e\uff0c\u7136\u5f8c\u9ede\u64ca\u300c\u5275\u5efa\u300d\u3002<\/li>\n<li>\u5728\u63a5\u4e0b\u4f86\u7684\u9078\u9805\u4e2d\uff0c\u9078\u64c7\u300c\u7a7a\u767d\u300d\u6a21\u677f\uff0c\u7136\u5f8c\u9ede\u64ca\u300c\u5275\u5efa\u300d\u3002<\/li>\n<\/ol>\n<p>\u9019\u6a23\u5c31\u5275\u5efa\u4e86\u4e00\u500b\u57fa\u672c\u7684Web\u61c9\u7528\u7a0b\u5f0f\u3002\u63a5\u4e0b\u4f86\uff0c\u6211\u5011\u5c07\u6dfb\u52a0\u4e00\u500b\u7c21\u55ae\u7684HTML\u9801\u9762\u3002<\/p>\n<h3 id=\"%e6%b7%bb%e5%8a%a0html%e9%a0%81%e9%9d%a2-EDSGUGoAEy\">\u6dfb\u52a0HTML\u9801\u9762<\/h3>\n<pre><code>\n&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n    &lt;title&gt;Hello World&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n    &lt;h1&gt;\u6b61\u8fce\u4f86\u5230\u6211\u7684\u7db2\u7ad9\uff01&lt;\/h1&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/code><\/pre>\n<p>\u5c07\u4e0a\u8ff0\u4ee3\u78bc\u4fdd\u5b58\u70ba\u300cindex.html\u300d\uff0c\u4e26\u5c07\u5176\u653e\u7f6e\u5728\u9805\u76ee\u7684\u6839\u76ee\u9304\u4e2d\u3002<\/p>\n<h2 id=\"3-%e9%85%8d%e7%bd%aeiis%e4%bb%a5%e6%89%98%e7%ae%a1web%e6%87%89%e7%94%a8%e7%a8%8b%e5%bc%8f-EDSGUGoAEy\">3. \u914d\u7f6eIIS\u4ee5\u6258\u7ba1Web\u61c9\u7528\u7a0b\u5f0f<\/h2>\n<p>\u73fe\u5728\uff0c\u6211\u5011\u9700\u8981\u5c07\u525b\u525b\u5275\u5efa\u7684Web\u61c9\u7528\u7a0b\u5f0f\u914d\u7f6e\u5230IIS\u4e2d\uff1a<\/p>\n<ol>\n<li>\u6253\u958bIIS\u7ba1\u7406\u5668\uff08\u53ef\u4ee5\u5728\u958b\u59cb\u83dc\u55ae\u4e2d\u641c\u7d22\u300cIIS\u300d\uff09\u3002<\/li>\n<li>\u5728\u5de6\u5074\u7684\u9023\u63a5\u9762\u677f\u4e2d\uff0c\u53f3\u9375\u9ede\u64ca\u300c\u7db2\u7ad9\u300d\uff0c\u9078\u64c7\u300c\u6dfb\u52a0\u7db2\u7ad9\u300d\u3002<\/li>\n<li>\u586b\u5beb\u7db2\u7ad9\u540d\u7a31\u3001\u7269\u7406\u8def\u5f91\uff08\u6307\u5411\u4f60\u7684\u9805\u76ee\u6587\u4ef6\u593e\uff09\uff0c\u4e26\u8a2d\u7f6e\u7aef\u53e3\u865f\uff08\u9ed8\u8a8d\u70ba80\uff09\u3002<\/li>\n<li>\u9ede\u64ca\u300c\u78ba\u5b9a\u300d\uff0c\u7db2\u7ad9\u5c07\u88ab\u6dfb\u52a0\u5230IIS\u4e2d\u3002<\/li>\n<\/ol>\n<p>\u5b8c\u6210\u5f8c\uff0c\u53ef\u4ee5\u5728\u700f\u89bd\u5668\u4e2d\u8f38\u5165\u300chttp:\/\/localhost:\u7aef\u53e3\u865f\u300d\u4f86\u8a2a\u554f\u4f60\u7684Web\u61c9\u7528\u7a0b\u5f0f\u3002<\/p>\n<h2 id=\"4-%e5%9c%a8visual-studio%e4%b8%ad%e9%80%b2%e8%a1%8c%e8%aa%bf%e8%a9%a6-EDSGUGoAEy\">4. \u5728Visual Studio\u4e2d\u9032\u884c\u8abf\u8a66<\/h2>\n<p>\u70ba\u4e86\u5728Visual Studio\u4e2d\u9032\u884c\u8abf\u8a66\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u6b65\u9a5f\uff1a<\/p>\n<ol>\n<li>\u5728Visual Studio\u4e2d\uff0c\u9078\u64c7\u300c\u8abf\u8a66\u300d\u83dc\u55ae\uff0c\u7136\u5f8c\u9078\u64c7\u300c\u555f\u52d5\u65b0\u5be6\u4f8b\u300d\u3002<\/li>\n<li>\u9019\u5c07\u555f\u52d5\u4f60\u7684Web\u61c9\u7528\u7a0b\u5f0f\u4e26\u5728\u700f\u89bd\u5668\u4e2d\u6253\u958b\u3002<\/li>\n<li>\u4f60\u53ef\u4ee5\u5728\u4ee3\u78bc\u4e2d\u8a2d\u7f6e\u65b7\u9ede\uff0c\u4e26\u4f7f\u7528\u8abf\u8a66\u5de5\u5177\u4f86\u6aa2\u67e5\u8b8a\u91cf\u548c\u57f7\u884c\u6d41\u7a0b\u3002<\/li>\n<\/ol>\n<h2 id=\"%e7%b8%bd%e7%b5%90-EDSGUGoAEy\">\u7e3d\u7d50<\/h2>\n<p>\u901a\u904e\u5c07IIS\u8207Visual Studio\u96c6\u6210\uff0c\u958b\u767c\u8005\u53ef\u4ee5\u66f4\u9ad8\u6548\u5730\u958b\u767c\u548c\u6e2c\u8a66Web\u61c9\u7528\u7a0b\u5f0f\u3002\u9019\u7a2e\u96c6\u6210\u4e0d\u50c5\u63d0\u9ad8\u4e86\u958b\u767c\u6548\u7387\uff0c\u9084\u80fd\u5920\u5728\u672c\u5730\u74b0\u5883\u4e2d\u6a21\u64ec\u771f\u5be6\u7684\u4f3a\u670d\u5668\u74b0\u5883\u3002\u5c0d\u65bc\u5e0c\u671b\u5728\u9999\u6e2f\u5c0b\u627e\u7a69\u5b9a\u7684\u4f3a\u670d\u5668\u89e3\u6c7a\u65b9\u6848\u7684\u958b\u767c\u8005\uff0c<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a>\u548c<a href=\"https:\/\/server.hk\">\u4e91\u4f3a\u670d\u5668<\/a>\u662f\u503c\u5f97\u8003\u616e\u7684\u9078\u64c7\u3002\u7121\u8ad6\u662f\u500b\u4eba\u9805\u76ee\u9084\u662f\u5546\u696d\u61c9\u7528\uff0c\u9078\u64c7\u5408\u9069\u7684\u4f3a\u670d\u5668\u90fd\u80fd\u70ba\u4f60\u7684\u958b\u767c\u5de5\u4f5c\u63d0\u4f9b\u5f37\u6709\u529b\u7684\u652f\u6301\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a2\u7d22IIS\u65b0\u624b\u6307\u5357\uff0c\u5b78\u7fd2\u5982\u4f55\u5c07IIS\u8207Visual Studio\u7121\u7e2b\u96c6\u6210\uff0c\u63d0\u5347\u958b\u767c\u6548\u7387\uff0c\u7c21\u5316\u7db2\u7ad9\u90e8\u7f72\u6d41\u7a0b\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-47502","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/47502","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=47502"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/47502\/revisions"}],"predecessor-version":[{"id":47503,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/47502\/revisions\/47503"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=47502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=47502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=47502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}