??????? ??????? ?????? Python ?? IIS

?????? ????????? ?????? ?????????
???? ???????: 276494 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

??????

Python interpreted ??? ??????? ???? ???? ?? ??????? Microsoft Visual Basic Script (VBScript) ?? Microsoft JScript Perl ?? ???? ??????? ?????? ????. ????? ?????? ???? ??????? ?????? (IIS) Windows Scripting Host VBScript ????????? JScript, ???? ??????? IIS ???? ??????? ???????? ????? ????? ?????? ?????? (ASP) ???????? ??? ??????? ?????? ????? ???????? ??????? (CGI) ?????. ???? ??? ??????? ????? ??????? Python ???? ??????? ?????? ?? ?????? ??? CGI ? ASP.

??????? ????

????? ?????? ?? ????? Python ??? ???? ??????? ?????? ?????? ??????? ?????? Python. ?????? ?????? ?? ??? ??????? ?????? ActiveState ActivePython 2.0.

????? ??????? ??????? ????? ????? ????? Python ??????? ??? ???? ??????? ?????? ????????? ?? IIS ? ASP.
  1. ???? ?? ???? ???? ??? ???? ????? ??? ??????? ?????? Python ????? ?????. ?????? ????? ?? ?????? ??????? ???????:

    1. ???? ??? ?????? ?????? ??? ?????? ???? ??? ????? ???? ??????? ?? ?????? ???? ????? (ISM) ? ?? ???? ??? ?????.
    2. ???? ??? ????? ??????? ?????? ??????? ?? ?????? ??????? ?? ??????.
    3. ??? ??????? ??????? ? ???? ?? ????? ???? ???? ????? ??? ???? ????? ??? ???.
    4. ?? ???? ??? ??? ???? ?????? ???? ??? ????? ?????? ????? ??? ?? ????? ??????? (????? ????????? ?? "?????" ?????????"").
    5. ??? ?????? ? ???? ?? ????? ??????? (??? ?? ??? ???????? ?????).
    ?????? ??? ???? ?? ????????? ??? ????? ??????? ???? "????? ???????" ?? ??????? IIS.
  2. ?????? ?? ????? ??????? ??? ????? ????? .py. ?????? ????? ?? ?????? ??????? ???????:
    1. ?? ISM ???? ???? ??????? ??????, ???? ??? ?????? ?????? ??? ??? ????????? ??? ?? ???? ??? ?????.
    2. ?? ??????? ???????? ????? ????? ??????? ???? ??? ???? WWW ?? ???? ??? ?????.
    3. ???? ??? ????? ??????? ?????? ??????? ?? ???? ??? ?????.
    4. ?????? ????? ??????? ???? ??? ????? ?? ?? ?????? ????? ???? ???????? ????????? ??????? (??????? ?????? ?????? ??? ???? ????????? ????? ??):
      • ????? ????????: "C:\Python20\python.exe %s % s" (????? "% s" ??? ??? ?????? ??????? ??????? ?? ??? ??????? ??????? ?????? ??????? ??? ???? ?????? ???? ?? ???? ?????? ?? ??? API ???? ?????? [ISAPI] - ???????? ??? ????? ?????? ???).
      • ????: .py
      • ???? ??????? ??????: ??????.
      • ???? ?? ?? ????? ?????: ?????? (?? ??? ??????) ???? ?????.

  3. ???? ?? ????? ?????? ????? ?? ?????? ???? ???? ?? ????? ?????? ??????? (ACL) ?? ?????????. ?????? ??????? ? IUSR_ [??? ?????????] ? [??? ?????????] IWAM_ ?????? ?????????? ??? ?? ???? ???? ??? ????? "?????" ????? (RX). ??? ??????? ????? ???? ?? ?????? ???? ?????? ? ?? ????? ???????? ????????.
???? ??????? ???????? ????? Python ?????? ??????? ??????? ???????? ? ????? ??????? ?????? ???????? ??? Python CGI ?? IIS.

????? ??? ?? ?? ???? ??? ????? Microsoft ??? ?????? ???? ????????? ???????? ???????. ???? ????? ?? ???? ??????? ?????? Test.py.
print
print 'Status: 200 OK'
print 'Content-type: text/html'
print

print '<HTML><HEAD><TITLE>Python Sample CGI</TITLE></HEAD>'
print '<BODY>'
print '<H1>This is a header</H1>'

print '<p>' #this is a comment
print 'See this is just like most other HTML'
print '<br>'
print '</BODY>'
				

??????? "Test.py" ??? ???? ???:
http:// <computer_name> /scripts/test.py
????? ?? ???? ???? ??????? ????? Python ?????? ???????? ????? ?? ????? ASP. ??? ?? ????? ???? ???? ??????? ?????? Python ????? ????? ??? ???????? ??????? ?????? ???? ????????? ???????? ???????. ???? ????? ?? ???? ??????? ?????? Python.asp.
<%@LANGUAGE=Python%>
<HTML>
<head></head>
<body>
<h1>Python Test</h1>

<%
#do some python stuff here

Response.Write('Python Test<br>')
Response.write('<h3>Smaller heading</hr>')
%>

</body>
</html>
				

??????? "Python.asp" ??? ???? ???:
http:// <computer_name> /scripts/python.asp

?????

?????? ??? ???? ?? ????????? ??? Python ????:
http://www.python.org/
?????? ??? ???? ??????? Python ActiveState:
http://www.activestate.com/Products/ActivePython/

?????? ?????? ?????? ???? ??? ???????? ?? ??? ??????? ???? ????? ?????? ?????? ?? Microsoft. ?? ???? Microsoft ?? ???? ? ?????? ?? ??????? ????? ???? ?? ???? ?????? "?? ??? ????????.

???? Microsoft ??????? ??? ??????? ?????? ????? ???? ???????? ?? ?????? ??? ????? ??????. ?? ??? ????? ??????? ??? ??????? ??? ???? ?????. ??? ???? Microsoft ??? ??? ????????? ???? ???????.

???????

???? ???????: 276494 - ????? ??? ??????: 30/????/1427 - ??????: 2.1
????? ???
  • Microsoft Internet Information Server 4.0
  • Microsoft Internet Information Services 5.0
????? ??????: 
kbmt kbinfo KB276494 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????276494

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com