﻿{"id":1389,"date":"2026-10-19T19:41:53","date_gmt":"2026-10-19T11:41:53","guid":{"rendered":"https:\/\/www.tansoo.cn\/?p=1389"},"modified":"2026-10-19T19:41:53","modified_gmt":"2026-10-19T11:41:53","slug":"phpbb-124","status":"publish","type":"post","link":"https:\/\/www.tansoo.cn\/?p=1389","title":{"rendered":"\u5728Windows IIS\u4e2d\u90e8\u7f72Django\u9879\u76ee"},"content":{"rendered":"<p><span style=\"font-size:200%;line-height:116%\">predictionsCool \u90e8\u7f72\u8bf4\u660e<\/span><\/p>\n<p><span style=\"font-size:150%;line-height:116%\">\u9879\u76ee\u6982\u8ff0<\/span><\/p>\n<ul>\n<li>\u6846\u67b6\uff1aDjango 6.1<br \/>\nWSGI \u670d\u52a1\u5668\uff1awaitress 3.0.2<br \/>\n\u6570\u636e\u6765\u6e90\uff1adata\/predictions_COOL.xlsx\uff08\u540e\u7eed\u53ef\u5207\u6362\u4e3a\u6570\u636e\u5e93\uff09<br \/>\n\u90e8\u7f72\u76ee\u6807\uff1aWindows IIS + HttpPlatformHandler<\/li>\n<\/ul>\n<p><span style=\"font-size:150%;line-height:116%\">\u9879\u76ee\u7ed3\u6784<\/span><\/p>\n<div class=\"codebox_plus_wrap\">\n<div class=\"codebox_plus_header\"><strong>Code: <\/strong><a href=\"#\" onclick=\"codebox_plus_select(this, 1); return false;\">[\u5168\u9009]<\/a>&nbsp;<a href=\"#\" onclick=\"codebox_plus_toggle(this, 1); return false;\">[Expand\/Collapse]<\/a><\/div>\n<div>\n<div style=\"display: inline;\">\n<div class=\"text\" style=\"font-family:monospace;\">\n<ol>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">predictionsCool\/<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u251c\u2500\u2500 data\/<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u2502 &nbsp; \u2514\u2500\u2500 predictions_COOL.xlsx &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# \u6570\u636e\u6e90<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u251c\u2500\u2500 predictions\/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# Django App<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u2502 &nbsp; \u251c\u2500\u2500 templatetags\/<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u2502 &nbsp; \u2502 &nbsp; \u251c\u2500\u2500 __init__.py<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u2502 &nbsp; \u2502 &nbsp; \u2514\u2500\u2500 prediction_tags.py &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# \u81ea\u5b9a\u4e49\u6a21\u677f\u8fc7\u6ee4\u5668<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u2502 &nbsp; \u251c\u2500\u2500 __init__.py<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u2502 &nbsp; \u251c\u2500\u2500 services.py &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # \u6570\u636e\u670d\u52a1\u5c42\uff08Excel\/\u6570\u636e\u5e93\u62bd\u8c61\uff09<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u2502 &nbsp; \u251c\u2500\u2500 views.py &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# \u89c6\u56fe\uff08\u9875\u9762 + JSON API\uff09<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u2502 &nbsp; \u2514\u2500\u2500 urls.py &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # App \u8def\u7531<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u251c\u2500\u2500 templates\/<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u2502 &nbsp; \u2514\u2500\u2500 predictions\/<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u2502 &nbsp; &nbsp; &nbsp; \u2514\u2500\u2500 data_list.html &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# \u6570\u636e\u5c55\u793a\u9875\u9762<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u251c\u2500\u2500 predictionsCool\/<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u2502 &nbsp; \u251c\u2500\u2500 settings.py &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # \u9879\u76ee\u914d\u7f6e<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u2502 &nbsp; \u251c\u2500\u2500 urls.py &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # \u9879\u76ee\u8def\u7531<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u2502 &nbsp; \u2514\u2500\u2500 wsgi.py &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # WSGI \u5165\u53e3<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u251c\u2500\u2500 logs\/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # IIS \u8fd0\u884c\u65e5\u5fd7<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u251c\u2500\u2500 web.config &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# IIS \u914d\u7f6e<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u2514\u2500\u2500 manage.py<\/div>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"codebox_plus_footer\">GeSHi &copy; Codebox Plus Extension<\/div>\n<\/div>\n<p><span style=\"font-size:150%;line-height:116%\">\u73af\u5883\u8981\u6c42<\/span><\/p>\n<div class=\"codebox_plus_wrap\">\n<div class=\"codebox_plus_header\"><strong>Code: <\/strong><a href=\"#\" onclick=\"codebox_plus_select(this, 1); return false;\">[\u5168\u9009]<\/a>&nbsp;<a href=\"#\" onclick=\"codebox_plus_toggle(this, 1); return false;\">[Expand\/Collapse]<\/a><\/div>\n<div>\n<div style=\"display: inline;\">\n<div class=\"text\" style=\"font-family:monospace;\">\n<ol>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u7ec4\u4ef6&nbsp; \u8981\u6c42<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u64cd\u4f5c\u7cfb\u7edf&nbsp; &nbsp; Windows 10\/11 \u6216 Windows Server<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">Python&nbsp; 3.13+\uff08\u975e\u5e94\u7528\u5546\u5e97\u7248\uff0c\u5efa\u8bae\u4ece python.org \u5b89\u88c5\uff09<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">IIS \u9700\u542f\u7528 HttpPlatformHandler \u6a21\u5757<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u4f9d\u8d56\u5305 &nbsp; django\u3001waitress\u3001openpyxl<\/div>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"codebox_plus_footer\">GeSHi &copy; Codebox Plus Extension<\/div>\n<\/div>\n<p><strong class=\"text-strong\"><span style=\"color:#FF0000\">\u91cd\u8981\uff1a\u4e0d\u8981\u4f7f\u7528 Windows \u5e94\u7528\u5546\u5e97\u7248 Python\uff0c\u5176\u8def\u5f84 (WindowsApps) \u5bf9 IIS \u6709\u8bbf\u95ee\u9650\u5236\uff0c\u4f1a\u5bfc\u81f4\u90e8\u7f72\u5931\u8d25\u3002<\/span><\/strong><\/p>\n<p><span style=\"font-size:150%;line-height:116%\">\u90e8\u7f72\u6b65\u9aa4<\/span><br \/>\n1. \u5b89\u88c5 IIS \u548c HttpPlatformHandler<\/p>\n<ul>\n<li>\u542f\u7528 IIS\uff1a\u63a7\u5236\u9762\u677f \u2192 \u7a0b\u5e8f\u548c\u529f\u80fd \u2192 \u542f\u7528\u6216\u5173\u95ed Windows \u529f\u80fd \u2192 \u52fe\u9009 Internet Information Services<br \/>\n\u4e0b\u8f7d\u5b89\u88c5 HttpPlatformHandler v1.2\uff1a<\/p>\n<ul>\n<li>\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"https:\/\/www.iis.net\/downloads\/microsoft\/http-platform-handler\" class=\"postlink\">https:\/\/www.iis.net\/downloads\/microsoft &#8230; rm-handler<\/a><br \/>\n\u9009\u62e9 x64 \u7248\u672c<\/li>\n<\/ul>\n<p>\u5b89\u88c5\u540e\u91cd\u542f IIS\uff1a<\/li>\n<\/ul>\n<div class=\"codebox_plus_wrap\">\n<div class=\"codebox_plus_header\"><strong>Code: <\/strong><a href=\"#\" onclick=\"codebox_plus_select(this, 1); return false;\">[\u5168\u9009]<\/a>&nbsp;<a href=\"#\" onclick=\"codebox_plus_toggle(this, 1); return false;\">[Expand\/Collapse]<\/a><\/div>\n<div>\n<div style=\"display: inline;\">\n<div class=\"bash\" style=\"font-family:monospace;\">\n<ol>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #666666; font-style: italic;\"># \u7ba1\u7406\u5458 PowerShell<\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">iisreset<\/div>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"codebox_plus_footer\">GeSHi &copy; Codebox Plus Extension<\/div>\n<\/div>\n<p>2. \u89e3\u9501 IIS \u914d\u7f6e\u8282<br \/>\n\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c PowerShell\uff1a<\/p>\n<div class=\"codebox_plus_wrap\">\n<div class=\"codebox_plus_header\"><strong>Code: <\/strong><a href=\"#\" onclick=\"codebox_plus_select(this, 1); return false;\">[\u5168\u9009]<\/a>&nbsp;<a href=\"#\" onclick=\"codebox_plus_toggle(this, 1); return false;\">[Expand\/Collapse]<\/a><\/div>\n<div>\n<div style=\"display: inline;\">\n<div class=\"bash\" style=\"font-family:monospace;\">\n<ol>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #000000; font-weight: bold;\">%<\/span>windir<span style=\"color: #000000; font-weight: bold;\">%<\/span>\\system32\\inetsrv\\appcmd.exe unlock config <span style=\"color: #000000; font-weight: bold;\">\/<\/span>section:system.webServer<span style=\"color: #000000; font-weight: bold;\">\/<\/span>handlers<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #000000; font-weight: bold;\">%<\/span>windir<span style=\"color: #000000; font-weight: bold;\">%<\/span>\\system32\\inetsrv\\appcmd.exe unlock config <span style=\"color: #000000; font-weight: bold;\">\/<\/span>section:system.webServer<span style=\"color: #000000; font-weight: bold;\">\/<\/span>httpPlatform<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #000000; font-weight: bold;\">%<\/span>windir<span style=\"color: #000000; font-weight: bold;\">%<\/span>\\system32\\inetsrv\\appcmd.exe unlock config <span style=\"color: #000000; font-weight: bold;\">\/<\/span>section:system.webServer<span style=\"color: #000000; font-weight: bold;\">\/<\/span>modules<\/div>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"codebox_plus_footer\">GeSHi &copy; Codebox Plus Extension<\/div>\n<\/div>\n<p>3. \u521b\u5efa\u865a\u62df\u73af\u5883\u5e76\u5b89\u88c5\u4f9d\u8d56<\/p>\n<div class=\"codebox_plus_wrap\">\n<div class=\"codebox_plus_header\"><strong>Code: <\/strong><a href=\"#\" onclick=\"codebox_plus_select(this, 1); return false;\">[\u5168\u9009]<\/a>&nbsp;<a href=\"#\" onclick=\"codebox_plus_toggle(this, 1); return false;\">[Expand\/Collapse]<\/a><\/div>\n<div>\n<div style=\"display: inline;\">\n<div class=\"bash\" style=\"font-family:monospace;\">\n<ol>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #7a0874; font-weight: bold;\">cd<\/span> D:\\Projects\\Python\\predictionsCool<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp;<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #666666; font-style: italic;\"># \u4f7f\u7528\u975e\u5e94\u7528\u5546\u5e97\u7248 Python \u521b\u5efa\u865a\u62df\u73af\u5883<\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">python <span style=\"color: #660033;\">-m<\/span> venv .venv<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp;<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #666666; font-style: italic;\"># \u5b89\u88c5\u4f9d\u8d56<\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">.venv\\Scripts\\pip.exe <span style=\"color: #c20cb9; font-weight: bold;\">install<\/span> django waitress openpyxl<\/div>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"codebox_plus_footer\">GeSHi &copy; Codebox Plus Extension<\/div>\n<\/div>\n<p>4. \u8bbe\u7f6e\u76ee\u5f55\u6743\u9650<br \/>\n\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c PowerShell\uff0c\u6388\u6743 IIS \u8bbf\u95ee\u6240\u9700\u76ee\u5f55\uff1a<\/p>\n<div class=\"codebox_plus_wrap\">\n<div class=\"codebox_plus_header\"><strong>Code: <\/strong><a href=\"#\" onclick=\"codebox_plus_select(this, 1); return false;\">[\u5168\u9009]<\/a>&nbsp;<a href=\"#\" onclick=\"codebox_plus_toggle(this, 1); return false;\">[Expand\/Collapse]<\/a><\/div>\n<div>\n<div style=\"display: inline;\">\n<div class=\"bash\" style=\"font-family:monospace;\">\n<ol>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #666666; font-style: italic;\"># Python \u5b89\u88c5\u76ee\u5f55\uff08\u8bfb\u53d6+\u6267\u884c\uff09\u2014\u2014 \u8def\u5f84\u6309\u5b9e\u9645 Python \u5b89\u88c5\u4f4d\u7f6e\u4fee\u6539<\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">icacls <span style=\"color: #ff0000;\">&quot;C:\\Users\\hello\\AppData\\Local\\Programs\\Python\\Python313&quot;<\/span> <span style=\"color: #000000; font-weight: bold;\">\/<\/span>grant <span style=\"color: #ff0000;\">&quot;IIS_IUSRS:(OI)(CI)RX&quot;<\/span> <span style=\"color: #000000; font-weight: bold;\">\/<\/span>T<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp;<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #666666; font-style: italic;\"># Python \u8def\u5f84\u7684\u6240\u6709\u7236\u7ea7\u76ee\u5f55\uff08\u904d\u5386\u6743\u9650\uff09<\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">icacls <span style=\"color: #ff0000;\">&quot;C:\\Users\\hello\\AppData\\Local\\Programs&quot;<\/span> <span style=\"color: #000000; font-weight: bold;\">\/<\/span>grant <span style=\"color: #ff0000;\">&quot;IIS_IUSRS:(CI)(IO)RX&quot;<\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">icacls <span style=\"color: #ff0000;\">&quot;C:\\Users\\hello\\AppData\\Local&quot;<\/span> <span style=\"color: #000000; font-weight: bold;\">\/<\/span>grant <span style=\"color: #ff0000;\">&quot;IIS_IUSRS:(CI)(IO)RX&quot;<\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">icacls <span style=\"color: #ff0000;\">&quot;C:\\Users\\hello\\AppData&quot;<\/span> <span style=\"color: #000000; font-weight: bold;\">\/<\/span>grant <span style=\"color: #ff0000;\">&quot;IIS_IUSRS:(CI)(IO)RX&quot;<\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">icacls <span style=\"color: #ff0000;\">&quot;C:\\Users\\hello&quot;<\/span> <span style=\"color: #000000; font-weight: bold;\">\/<\/span>grant <span style=\"color: #ff0000;\">&quot;IIS_IUSRS:(CI)(IO)RX&quot;<\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp;<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #666666; font-style: italic;\"># \u9879\u76ee\u76ee\u5f55\uff08\u8bfb\u53d6\uff09<\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">icacls <span style=\"color: #ff0000;\">&quot;D:\\Projects\\Python\\predictionsCool&quot;<\/span> <span style=\"color: #000000; font-weight: bold;\">\/<\/span>grant <span style=\"color: #ff0000;\">&quot;IIS_IUSRS:(OI)(CI)R&quot;<\/span> <span style=\"color: #000000; font-weight: bold;\">\/<\/span>T<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp;<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #666666; font-style: italic;\"># \u65e5\u5fd7\u76ee\u5f55\uff08\u5199\u5165\uff09<\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">icacls <span style=\"color: #ff0000;\">&quot;D:\\Projects\\Python\\predictionsCool\\logs&quot;<\/span> <span style=\"color: #000000; font-weight: bold;\">\/<\/span>grant <span style=\"color: #ff0000;\">&quot;IIS_IUSRS:(OI)(CI)W&quot;<\/span> <span style=\"color: #000000; font-weight: bold;\">\/<\/span>T<\/div>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"codebox_plus_footer\">GeSHi &copy; Codebox Plus Extension<\/div>\n<\/div>\n<p>\n5. \u914d\u7f6e IIS \u7f51\u7ad9<\/p>\n<div class=\"codebox_plus_wrap\">\n<div class=\"codebox_plus_header\"><strong>Code: <\/strong><a href=\"#\" onclick=\"codebox_plus_select(this, 1); return false;\">[\u5168\u9009]<\/a>&nbsp;<a href=\"#\" onclick=\"codebox_plus_toggle(this, 1); return false;\">[Expand\/Collapse]<\/a><\/div>\n<div>\n<div style=\"display: inline;\">\n<div class=\"text\" style=\"font-family:monospace;\">\n<ol>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">1.\u6253\u5f00 IIS \u7ba1\u7406\u5668\uff08inetmgr\uff09<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">2.\u53f3\u952e \u5e94\u7528\u7a0b\u5e8f\u6c60 \u2192 \u6dfb\u52a0\u5e94\u7528\u7a0b\u5e8f\u6c60\uff1a<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp; \u540d\u79f0\uff1apredictionsCool<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp; .NET CLR \u7248\u672c\uff1a\u65e0\u6258\u7ba1\u4ee3\u7801\uff08\u91cd\u8981\uff01\uff09<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp; \u7ba1\u9053\u6a21\u5f0f\uff1a\u96c6\u6210<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">3.\u53f3\u952e \u7f51\u7ad9 \u2192 \u6dfb\u52a0\u7f51\u7ad9\uff1a<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp; \u7f51\u7ad9\u540d\u79f0\uff1apredictionsCool<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp; \u5e94\u7528\u7a0b\u5e8f\u6c60\uff1apredictionsCool<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp; \u7269\u7406\u8def\u5f84\uff1aD:\\Projects\\Python\\predictionsCool<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp; \u7aef\u53e3\uff1a80\uff08\u6216\u81ea\u5b9a\u4e49\u7aef\u53e3\uff09<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">4.\u542f\u52a8\u7f51\u7ad9<\/div>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"codebox_plus_footer\">GeSHi &copy; Codebox Plus Extension<\/div>\n<\/div>\n<p>6. \u9a8c\u8bc1<\/p>\n<div class=\"codebox_plus_wrap\">\n<div class=\"codebox_plus_header\"><strong>Code: <\/strong><a href=\"#\" onclick=\"codebox_plus_select(this, 1); return false;\">[\u5168\u9009]<\/a>&nbsp;<a href=\"#\" onclick=\"codebox_plus_toggle(this, 1); return false;\">[Expand\/Collapse]<\/a><\/div>\n<div>\n<div style=\"display: inline;\">\n<div class=\"text\" style=\"font-family:monospace;\">\n<ol>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u9875\u9762\u8bbf\u95ee\uff1ahttp:\/\/localhost\/<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">API \u63a5\u53e3\uff1ahttp:\/\/localhost\/api\/data\/<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u67e5\u770b\u65e5\u5fd7\uff1aD:\\Projects\\Python\\predictionsCool\\logs\\stdout_*.log<\/div>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"codebox_plus_footer\">GeSHi &copy; Codebox Plus Extension<\/div>\n<\/div>\n<p><span style=\"font-size:150%;line-height:116%\">web.config \u8bf4\u660e<\/span><\/p>\n<div class=\"codebox_plus_wrap\">\n<div class=\"codebox_plus_header\"><strong>Code: <\/strong><a href=\"#\" onclick=\"codebox_plus_select(this, 1); return false;\">[\u5168\u9009]<\/a>&nbsp;<a href=\"#\" onclick=\"codebox_plus_toggle(this, 1); return false;\">[Expand\/Collapse]<\/a><\/div>\n<div>\n<div style=\"display: inline;\">\n<div class=\"xml\" style=\"font-family:monospace;\">\n<ol>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #009900;\"><span style=\"color: #000000; font-weight: bold;\">&lt;?xml<\/span> <span style=\"color: #000066;\">version<\/span>=<span style=\"color: #ff0000;\">&quot;1.0&quot;<\/span> <span style=\"color: #000066;\">encoding<\/span>=<span style=\"color: #ff0000;\">&quot;UTF-8&quot;<\/span><span style=\"color: #000000; font-weight: bold;\">?&gt;<\/span><\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #009900;\"><span style=\"color: #000000; font-weight: bold;\">&lt;configuration<span style=\"color: #000000; font-weight: bold;\">&gt;<\/span><\/span><\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp; &nbsp; <span style=\"color: #009900;\"><span style=\"color: #000000; font-weight: bold;\">&lt;system.webServer<span style=\"color: #000000; font-weight: bold;\">&gt;<\/span><\/span><\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #009900;\"><span style=\"color: #000000; font-weight: bold;\">&lt;handlers<span style=\"color: #000000; font-weight: bold;\">&gt;<\/span><\/span><\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #808080; font-style: italic;\">&lt;!&#8211; \u6ce8\u518c HttpPlatformHandler\uff0c\u8f6c\u53d1\u6240\u6709\u8bf7\u6c42 &#8211;&gt;<\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #009900;\"><span style=\"color: #000000; font-weight: bold;\">&lt;add<\/span> <span style=\"color: #000066;\">name<\/span>=<span style=\"color: #ff0000;\">&quot;httpPlatformHandler&quot;<\/span> <span style=\"color: #000066;\">path<\/span>=<span style=\"color: #ff0000;\">&quot;*&quot;<\/span> <span style=\"color: #000066;\">verb<\/span>=<span style=\"color: #ff0000;\">&quot;*&quot;<\/span><\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #009900;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000066;\">modules<\/span>=<span style=\"color: #ff0000;\">&quot;httpPlatformHandler&quot;<\/span> <span style=\"color: #000066;\">resourceType<\/span>=<span style=\"color: #ff0000;\">&quot;Unspecified&quot;<\/span> <span style=\"color: #000000; font-weight: bold;\">\/&gt;<\/span><\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #009900;\"><span style=\"color: #000000; font-weight: bold;\">&lt;\/handlers<span style=\"color: #000000; font-weight: bold;\">&gt;<\/span><\/span><\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #009900;\"><span style=\"color: #000000; font-weight: bold;\">&lt;httpPlatform<\/span><\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #009900;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000066;\">processPath<\/span>=<span style=\"color: #ff0000;\">&quot;D:\\Projects\\Python\\predictionsCool\\.venv\\Scripts\\waitress-serve.exe&quot;<\/span><\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #009900;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000066;\">arguments<\/span>=<span style=\"color: #ff0000;\">&quot;&#8211;listen=127.0.0.1:%HTTP_PLATFORM_PORT% &#8211;channel-timeout=120 predictionsCool.wsgi:application&quot;<\/span><\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #009900;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000066;\">stdoutLogEnabled<\/span>=<span style=\"color: #ff0000;\">&quot;true&quot;<\/span><\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #009900;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000066;\">stdoutLogFile<\/span>=<span style=\"color: #ff0000;\">&quot;D:\\Projects\\Python\\predictionsCool\\logs\\stdout&quot;<\/span><\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #009900;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000066;\">startupTimeLimit<\/span>=<span style=\"color: #ff0000;\">&quot;60&quot;<\/span><\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #009900;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000066;\">processesPerApplication<\/span>=<span style=\"color: #ff0000;\">&quot;1&quot;<\/span><span style=\"color: #000000; font-weight: bold;\">&gt;<\/span><\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #009900;\"><span style=\"color: #000000; font-weight: bold;\">&lt;environmentVariables<span style=\"color: #000000; font-weight: bold;\">&gt;<\/span><\/span><\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #009900;\"><span style=\"color: #000000; font-weight: bold;\">&lt;environmentVariable<\/span> <span style=\"color: #000066;\">name<\/span>=<span style=\"color: #ff0000;\">&quot;DJANGO_SETTINGS_MODULE&quot;<\/span> <span style=\"color: #000066;\">value<\/span>=<span style=\"color: #ff0000;\">&quot;predictionsCool.settings&quot;<\/span> <span style=\"color: #000000; font-weight: bold;\">\/&gt;<\/span><\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #009900;\"><span style=\"color: #000000; font-weight: bold;\">&lt;\/environmentVariables<span style=\"color: #000000; font-weight: bold;\">&gt;<\/span><\/span><\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #009900;\"><span style=\"color: #000000; font-weight: bold;\">&lt;\/httpPlatform<span style=\"color: #000000; font-weight: bold;\">&gt;<\/span><\/span><\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp; &nbsp; <span style=\"color: #009900;\"><span style=\"color: #000000; font-weight: bold;\">&lt;\/system.webServer<span style=\"color: #000000; font-weight: bold;\">&gt;<\/span><\/span><\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #009900;\"><span style=\"color: #000000; font-weight: bold;\">&lt;\/configuration<span style=\"color: #000000; font-weight: bold;\">&gt;<\/span><\/span><\/span><\/div>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"codebox_plus_footer\">GeSHi &copy; Codebox Plus Extension<\/div>\n<\/div>\n<p>\u5173\u952e\u914d\u7f6e\u9879\uff1a<\/p>\n<ul>\n<li>processPath\uff1a\u6307\u5411\u865a\u62df\u73af\u5883\u4e2d\u7684 waitress-serve.exe<br \/>\narguments\uff1a%HTTP_PLATFORM_PORT% \u7531 IIS \u81ea\u52a8\u5206\u914d\u52a8\u6001\u7aef\u53e3<br \/>\nstdoutLogFile\uff1a\u65e5\u5fd7\u8f93\u51fa\u8def\u5f84\uff0c\u9700\u786e\u4fdd logs \u76ee\u5f55\u5b58\u5728\u4e14\u6709\u5199\u6743\u9650<\/li>\n<\/ul>\n<p>\u67b6\u6784\u8bf4\u660e<\/p>\n<div class=\"codebox_plus_wrap\">\n<div class=\"codebox_plus_header\"><strong>Code: <\/strong><a href=\"#\" onclick=\"codebox_plus_select(this, 1); return false;\">[\u5168\u9009]<\/a>&nbsp;<a href=\"#\" onclick=\"codebox_plus_toggle(this, 1); return false;\">[Expand\/Collapse]<\/a><\/div>\n<div>\n<div style=\"display: inline;\">\n<div class=\"text\" style=\"font-family:monospace;\">\n<ol>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">\u6d4f\u89c8\u5668 \u2192 IIS (80\u7aef\u53e3) \u2192 HttpPlatformHandler \u2192 waitress (\u52a8\u6001\u7aef\u53e3) \u2192 Django WSGI<\/div>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"codebox_plus_footer\">GeSHi &copy; Codebox Plus Extension<\/div>\n<\/div>\n<p>IIS \u901a\u8fc7 HttpPlatformHandler \u81ea\u52a8\u542f\u52a8 waitress \u8fdb\u7a0b\uff0c\u5e76\u5c06\u8bf7\u6c42\u53cd\u5411\u4ee3\u7406\u5230 waitress \u76d1\u542c\u7684\u52a8\u6001\u7aef\u53e3\u3002<\/p>\n<p><small>\u539f\u6587\u4f5c\u8005: BG6RSH | <a href=\"https:\/\/bbs.tansoo.cn\/viewtopic.php?t=124\" target=\"_blank\" rel=\"noopener\">\u67e5\u770b\u539f\u5e16<\/a><\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>predictionsCool \u90e8\u7f72\u8bf4\u660e \u9879\u76ee\u6982\u8ff0 \u6846\u67b6\uff1aDjango 6.1  &hellip; <a href=\"https:\/\/www.tansoo.cn\/?p=1389\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[104],"tags":[],"class_list":["post-1389","post","type-post","status-publish","format-standard","hentry","category-104"],"_links":{"self":[{"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/posts\/1389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1389"}],"version-history":[{"count":0,"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/posts\/1389\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}