利用curl快速检查http服务器类型

2008年11月6日 | 09:38分类:linux | 标签: | 114 views

今天发现linux下不错的命令,curl

例如需要查看我博客的web服务器的类型输入:

[root@localhost ~]# curl –head http://www.lihaixin.com/
HTTP/1.1 200 OK
Date: Thu, 06 Nov 2008 01:37:15 GMT
Server: Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
X-Powered-By: PHP/5.2.6
X-Pingback: http://www.lihaixin.com/xmlrpc.php
Content-Type: text/html; charset=UTF-8

[root@localhost ~]#

就可以知道使用apache2.29 php 5.2.6

发表您的评论

您的名字: (*必填)

您的邮箱: (*不会被公布 ,必填)

您的网站:

*
To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
Click to hear an audio file of the anti-spam word