Lm th? no ?: C?u h?nh v th? nghi?m m?t PERL Script v?i IIS 4.0, 5.0, 5.1 v 6.0

D?ch tiu ? D?ch tiu ?
ID c?a bi: 245225 - Xem s?n ph?m m bi ny p d?ng vo.
Chng ti ? ngh? t?t c? ng?i dng nng c?p ? Microsoft Internet Information Services (IIS) Phin b?n 7.0 ch?y trn Microsoft Windows Server 2008. IIS 7.0 lm tng ng k? Web an ninh c s? h? t?ng. ? bi?t thm chi ti?t v? cc ch? ? lin quan ?n an ninh IIS, gh thm Web site sau c?a Microsoft:
http://www.Microsoft.com/technet/Security/prodtech/IIS.mspx
? bi?t thm chi ti?t v? IIS 7.0, gh thm Web site sau c?a Microsoft:
http://www.iis.net/default.aspx?tabid=1
Bung t?t c? | Thu g?n t?t c?

? Trang ny

TM T?T

Bi vi?t t?ng b?c ny m t? lm th? no ? c?u h?nh v ki?m tra m?t t?p l?nh PERL v?i Internet Information Server (IIS) Phin b?n 4.0 v Internet Information Services (IIS) Phin b?n 5.0, 5.1 v 6.0.

o?n m? PERL sau y c th? ?c s? d?ng v?i IIS ? ki?m tra cho cc ci ?t ng v th?c hi?n c?a phin Common Gateway Interface (CGI) v Internet Server ?ng d?ng l?p tr?nh giao di?n (ISAPI) PERL script ngn ng? d?ch, ch?ng h?n nh ActiveState PERL v PERL cho ISAPI.

? bi?t thm chi ti?t v? thng d?ch vin ActiveState PERL, thm ActiveState Web site sau:
http://www.ActiveState.com/

T?o m?t th? nghi?m PERL Script

Trong Notepad, ti?t ki?m nh?ng d?ng m? trong th m?c t?p l?nh l Helloworld.pl:
$url = "http://$ENV{SERVER_NAME}$ENV{URL}";
$ip = "$ENV{REMOTE_ADDR}";
print <<ENDOFTEXT;
HTTP/1.0 200 OK
Content-Type: text/html

<HTML>
<HEAD><TITLE>Hello World!</TITLE></HEAD>
<BODY>
<H4>Hello World!</H4>
<P>You have reached <a href="$url">$url</a></P>
<P>Your IP Address is $ip</P>
<H5>Have a nice day!</H5>
</BODY>
</HTML>
ENDOFTEXT
exit(0);
				
Chu y Ngn ng? PERL gi?y php khng c khng gian t?i ?u c?a m?t d?ng.

Chu y Sau khi b?n t?o t?p, b?n ph?i c?u h?nh PERL ? ch?y m?t cch an ton v?i IIS. ?ng ? Perl.exe trong b?t k? th m?c c th? truy c?p b?i m?t ng?i s? d?ng v?i m?t tr?nh duy?t.

B?ng cch s? d?ng tr?nh qu?n l? d?ch v? Internet (ISM) Microsoft Management Console (MMC)-theo, b?n c th? ?t cc t?p Perl.exe ho?c PerlIS.dll bn ngoi c?u trc th m?c Web i?n h?nh m ng?i dng c quy?n truy c?p vo, v b?n c th? s? d?ng cc K?ch b?n ? tnh nng c?a IIS ? c?u h?nh th?c hi?n c?a PERL script.

C?u h?nh b?n ? PERL Script cho IIS 4,0

  1. Nh?p vo B?t ?u, b?m Chng tr?nh, b?m Windows NT 4.0 ty ch?n Pack, b?m My ch? thng tin Internet c?a Microsoft, v sau nh?p vo Qu?n l? d?ch v? Internet.
  2. Nh?p chu?t ph?i vo m?t trang Web m b?n mu?n cho php PERL cho, v sau nh?p vo Thu?c tnh.
  3. B?m vo cc Th m?c chnh tab.
  4. Nh?p vo Cu hinh.
  5. Nh?p vo Thm.
  6. G? sau y cho Tr?nh th?c hi?n:
    ?ng d?n ?y ? ?n perlis.dll\perlis.dll
    B?n c?ng c th? g? nh sau:
    ?ng d?n ?y ? ?n perl.exe\perl.exe %s %s
    Chu y: "%S % s" l tr?ng h?p nh?y c?m (v d?, "%S % S" khng lm vi?c).
  7. Cho Ph?n m? r?ng, lo?i .pl.

    Chu y H?y ch?c ch?n r?ng cc T?t c? cc ?ng t? ty ch?n ?c ch?n cho ch?c nng ?y ?, v r?ng cc K?ch b?n cng c? ch?n h?p ki?m.
  8. Nh?p vo Ok e tr ve ISM. V?i th m?c script m?c ?nh v?i IIS, URL l sau y:
    http://Tn my ch?/Scripts/helloworld.pl

C?u h?nh b?n ? PERL Script cho IIS 5.0 v 5.1

  1. Nh?p vo B?t ?u, b?m Chng tr?nh, b?m Cng c? qu?n tr?, v sau nh?p vo D?ch v? thng tin Internet.
  2. Nh?p chu?t ph?i vo m?t trang Web m b?n mu?n cho php PERL cho, v sau nh?p vo Thu?c tnh.
  3. B?m vo cc Th m?c chnh tab.
  4. Nh?p vo Cu hinh.
  5. Nh?p vo Thm.
  6. G? sau y cho Tr?nh th?c hi?n:
    ?ng d?n ?y ? ?n perlis.dll\perlis.dll
    B?n c?ng c th? g? nh sau:
    ?ng d?n ?y ? ?n perl.exe\perl.exe %s %s
    Chu y %S"% s" l tr?ng h?p nh?y c?m (v d?, "%S % S" khng lm vi?c).
  7. Cho Ph?n m? r?ng, lo?i .pl.

    Chu y H?y ch?c ch?n r?ng cc T?t c? cc ?ng t? ty ch?n ?c ch?n cho ch?c nng ?y ?. Ngoi ra, h?y ch?c ch?n r?ng cc K?ch b?n cng c? ch?n h?p ki?m.
  8. Nh?p vo Ok e tr ve ISM. V?i th m?c script m?c ?nh v?i IIS, URL l sau y:
    http://Tn my ch?/Scripts/helloworld.pl

C?u h?nh b?n ? PERL Script cho IIS 6.0

  1. Nh?p vo B?t ?u, b?m Chng tr?nh, b?m Cng c? qu?n tr?, v sau nh?p vo D?ch v? thng tin Internet.
  2. Nh?p chu?t ph?i vo m?t trang Web m b?n mu?n cho php PERL cho, v sau nh?p vo Thu?c tnh.
  3. B?m vo cc Th m?c chnh tab.
  4. Nh?p vo Cu hinh.
  5. Nh?p vo Thm.
  6. Trong cc Tr?nh th?c hi?n h?p, g? nh sau:
    ?ng d?n ?y ? ?n perlis.dll\perlis.dll
    B?n c?ng c th? g? nh sau:
    ?ng d?n ?y ? ?n perl.exe\perl.exe %s %s
    Chu y %S"% s" l tr?ng h?p nh?y c?m (v d?, "%S % S" khng lm vi?c).
  7. Trong cc Ph?n m? r?ng h?p, lo?i .pl.

    Chu y
    H?y ch?c ch?n r?ng cc T?t c? cc ?ng t? ty ch?n ?c ch?n cho ch?c nng ?y ?. Ngoi ra, h?y ch?c ch?n r?ng cc K?ch b?n cng c? ch?n h?p ki?m.
  8. Nh?p vo Ok e tr ve ISM.
  9. B?m vo cc Ph?n m? r?ng d?ch v? web th m?c.
  10. Nh?p vo Thm m?t ph?n m? r?ng m?i d?ch v? Web.
  11. G? tn cho ph?n m? r?ng, v d? nh "PERL script."
  12. Nh?p vo Thm, g? ?ng d?n ?y ? ?n t?p tin Perl.exe, v sau nh?p vo Ok.
  13. H?y ch?c ch?n r?ng cc ?t tr?ng thi m? r?ng ? ?c php ch?n h?p ki?m.
  14. Nh?p vo Ok e tr ve ISM. V?i m?c ?nh IIS script th m?c, URL l sau y:
    http://Tn my ch?/Scripts/helloworld.pl

THAM KH?O

? thm thng tin v? PERL Script trong IIS 1.0, 2,0 v 3,0, b?m s? bi vi?t d?i y ? xem bi vi?t trong c s? ki?n th?c Microsoft:
150629 C?u h?nh v th? nghi?m m?t PERL Script v?i Internet thng tin my ch? (IIS)

Thu?c tnh

ID c?a bi: 245225 - L?n xem xt sau cng: 21 Thang Tam 2011 - Xem xt l?i: 2.0
p d?ng
  • Microsoft Internet Information Services 6.0
T? kha:
kbhowtomaster kbmt KB245225 KbMtvi
My d?ch
QUAN TRONG: Bi vi?t ny ?c d?ch b?ng ph?n m?m d?ch my c?a Microsoft ch? khng ph?i do con ng?i d?ch. Microsoft cung c?p cc bi vi?t do con ng?i d?ch v c? cc bi vi?t do my d?ch ? b?n c th? truy c?p vo t?t c? cc bi vi?t trong C s? Ki?n th?c c?a chng ti b?ng ngn ng? c?a b?n. Tuy nhin, bi vi?t do my d?ch khng ph?i lc no c?ng hon h?o. Lo?i bi vi?t ny c th? ch?a cc sai st v? t? v?ng, c php ho?c ng? php, gi?ng nh m?t ng?i n?c ngoi c th? m?c sai st khi ni ngn ng? c?a b?n. Microsoft khng ch?u trch nhi?m v? b?t k? s? thi?u chnh xc, sai st ho?c thi?t h?i no do vi?c d?ch sai n?i dung ho?c do ho?t ?ng s? d?ng c?a khch hng gy ra. Microsoft c?ng th?ng xuyn c?p nh?t ph?n m?m d?ch my ny.
Nh?p chu?t vo y ? xem b?n ti?ng Anh c?a bi vi?t ny:245225

Cung cp Phan hi

 

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