GVKun编程网logo

Windows Server的IIS和Apache性能(iis对比apache性能)

2

想了解WindowsServer的IIS和Apache性能的新动态吗?本文将为您提供详细的信息,我们还将为您解答关于iis对比apache性能的相关问题,此外,我们还将为您介绍关于apache-win

想了解Windows Server的IIS和Apache性能的新动态吗?本文将为您提供详细的信息,我们还将为您解答关于iis对比apache性能的相关问题,此外,我们还将为您介绍关于apache - windows下运行php的web server,怎么搭配性能比较优、Apache FTPServer 安装为 Windows 服务的问题、Apache Windows 下无权限访问 Server 文件目录解决办法、Apache Windows下无权限访问Server文件目录解决办法的新知识。

本文目录一览:

Windows Server的IIS和Apache性能(iis对比apache性能)

Windows Server的IIS和Apache性能(iis对比apache性能)

我曾经在《Windows服务器下的IIS和Apache性能比较》一文中比较了IIS和Apache的一些性能比较,并实际搭建了一个Apache+MySQL+PHP的平台,我当时的初步比较是两者在静态HTML的处理能力上基本相同。

但是,经过我在实际网站上运行Apache+MySQL+PHP一段时间后,我发现在Windows Server 2003的环境下,Apache 2.2.6的稳定性的确不如IIS6,在动态文件处理能力上也不足,内存的消耗量却远远高于IIS,以至于将系统配置为《在Windows Server下集成Apache、Tomcat和IIS》的时候,Apache会影响IIS的并发处理能力。

因此,在Windows Server 2003的环境下还是使用IIS6更为稳定,IIS同样也可以支持PHP和MySQL,配置方法是,在IIS的“WEB服务扩展”中,添加一个新的WEB服务扩展,程序后缀为PHP,ISAPI程序为php5isapi.dll,然后再“环境变量”-“系统变量”中增加变量名PHPRC,数值为php.ini的路径,重启服务器即可。

这样搭建的系统也可以支持WordPress等等流行的PHP程序,可惜不支持mod_rewrite,使用一些第三方的插件才能支持类似Apache的mod_rewrite功能。

新搭建的IIS+MySQL+PHP系统我还会观察一段时间,看看整体性能和稳定性是否比Apache好一些。

apache - windows下运行php的web server,怎么搭配性能比较优

apache - windows下运行php的web server,怎么搭配性能比较优

受限只能在windows用php,nginx就不考虑了,太弱;swoole也没win版本

立即学习“PHP免费学习笔记(深入)”;

我的设想是iis7.5,op缓存有wincache,好在redis/memcache都有win版可用

另外一个是apache+mod_fpm/mod_fastcgi,win下按理应该是fcgi方式快一些吧

顺便问一下,如果是纯html,用哪个web server最佳?如果以上性能不够,可能会生成纯html的方式

回复内容:

受限只能在windows用php,nginx就不考虑了,太弱;swoole也没win版本

立即学习“PHP免费学习笔记(深入)”;

我的设想是iis7.5,op缓存有wincache,好在redis/memcache都有win版可用

另外一个是apache+mod_fpm/mod_fastcgi,win下按理应该是fcgi方式快一些吧

顺便问一下,如果是纯html,用哪个web server最佳?如果以上性能不够,可能会生成纯html的方式

kangle也不错哦。

PHP官方的ZendOpcache同样支持Windows,不需要使用wincache这个东西.
Redis和Memcached的Windows版本是第三方提供的,不是Redis/Memcached官方支持的.
Swoole在Cygwin环境下也可以运行于Windows.

Windows 7 上 IIS 和 Apache 性能测试对比
环境(64位Win7): IIS7+PHP5.4(NTS非线程安全版本) vs Apache2.4(32位)+PHP5.4
静态文件处理:
ab -k -c100 -n10000 http://127.0.0.1/info.htm # IIS RPS 1709
ab -k -c100 -n10000 http://127.0.0.1:8080/info.htm # Apache RPS 1847
结论:基于APR运行时和WinNT多线程的Apache在静态资源处理方面并不比IIS差.
apache - windows下运行php的web server,怎么搭配性能比较优

apache - windows下运行php的web server,怎么搭配性能比较优
PHP文件处理:
ab -k -c100 -n10000 http://127.0.0.1/bs.php # IIS RPS 1180
ab -k -c100 -n10000 http://127.0.0.1:8080/bs.php # Apache RPS 1071
结论:Apache使用了线程化的MPM,所以需要使用线程安全版本的PHP,而线程安全检查有一定开销,所以性能要比IIS+PHP-CGI低一些.
apache - windows下运行php的web server,怎么搭配性能比较优

apache - windows下运行php的web server,怎么搭配性能比较优

在一次IIS7+PHP的phpinfo()测试中,100并发,10000个请求,居然有8978个请求失败了!
apache - windows下运行php的web server,怎么搭配性能比较优

然而,访问量多大呢?什么类型的网站呢?

我想知道 nginx 怎么就太弱了。。。

坑太多。我们公司用了几年的win。IIS. php.
这个月决定转移到liunx了。主要是一个网站在IIS上不停报错。客户已经吧电话打爆了。最后迁移到Liunx。问题解决。老板决定以后再也不用win服务器了。早点出坑吧。到时候出l了问题。哭都来不及。

Apache FTPServer 安装为 Windows 服务的问题

Apache FTPServer 安装为 Windows 服务的问题

服务器环境是 Windows2008 64 位

安装过程

1. 下载 Apache FTPServer 的 Windows 版本,解压到 D:\FTP

2. 安装 jre 到 C:\Program Files\Java\jre7 并在系统中添加环境变量 JAVA_HOME 为此路径

3. 然后安装为 windows 服务

cd D:\FTPServer\bin
d:
service.bat install ftpd res/conf/ftpd-typical.xml

4.net start ftpd 启动时出现问题

google 后在下面地方找到一些有用的信息

Apache FtpServer 在 64 位系统下服务不能启动解决方法

使用上面的方法,下载最新 tomcat,用其中的 Tomcat.exe 替换 bin 目录下的 ftpd.exe

然后如果 mode=java 时可以启动,但不能停止服务

5. 尝试使用 tomcat 所带的 service.bat 安装服务,发现提示 JAVE_HOME 变量没有定义正确

   打开 service.bat 查看,发现和 ftpserver 所带的批处理不同,里面区分了 JRE_HOME,JAVA_HOME, 后者对应的是 jdk 的路径

  猜测原来的命令和 jdk 更匹配些

  于是安装 jdk, 并设置 JAVA_HOME 为 jdk 目录,然后重新安装服务

service.bat remove ftpd
service.bat install ftpd res/conf/ftpd-typical.xml

这时 net start ftpd,net stop ftpd 都可以执行成功

6. 换回 FTPServer 原来自带的 ftpd.exe, 还是执行失败

 

总结

1. 使用 tomcat 中带的启动文件替换 FTPServer 中的 ftpd.exe

2. 使用 jdk 作为 JAVA_HOME,而不能是 jre

Apache Windows 下无权限访问 Server 文件目录解决办法

Apache Windows 下无权限访问 Server 文件目录解决办法

操作系统:Win7

软件环境:Apache2.4

故障描述:当尝试将 DocumentRoot 改到 Apache 目录以外的地方时,就会出现如下错误(You don''t have permission to access /on this server.)

解决方案:付给 Apache 访问 Server 文件目录的权限。

具体实施:将 <Directory /> 下的【Require all denied】修改为【Allow from all】,但是这样修改后存在一定的安全隐患。

#
# Deny access to the entirety of your server''s filesystem. You must
# explicitly permit access to web content directories in other 
# <Directory> blocks below.
#
<Directory />
    AllowOverride none
#    Require all denied
    Allow from all
</Directory>


Apache Windows下无权限访问Server文件目录解决办法

Apache Windows下无权限访问Server文件目录解决办法

操作系统:Win7

软件环境:Apache2.4

故障描述:当尝试将DocumentRoot改到Apache目录以外的地方时,就会出现如下错误(You don''t have permission to access / on this server.)

解决方案:付给Apache访问Server文件目录的权限。

具体实施:将<Directory />下的【Require all denied】修改为【Allow from all】,但是这样修改后存在一定的安全隐患。

#
# Deny access to the entirety of your server''s filesystem. You must
# explicitly permit access to web content directories in other 
# <Directory> blocks below.
#
<Directory />
    AllowOverride none
#    Require all denied
    Allow from all
</Directory>


我们今天的关于Windows Server的IIS和Apache性能iis对比apache性能的分享就到这里,谢谢您的阅读,如果想了解更多关于apache - windows下运行php的web server,怎么搭配性能比较优、Apache FTPServer 安装为 Windows 服务的问题、Apache Windows 下无权限访问 Server 文件目录解决办法、Apache Windows下无权限访问Server文件目录解决办法的相关信息,可以在本站进行搜索。

本文标签: