当前位置:首页 > 黑客技术 > 正文内容

Web 服务器基准测验,nginx+php vs Apache+php

访客4年前 (2021-04-15)黑客技术751

本次测验nginx+php与apache+php哪种组合的核算性能及稳定性更佳
操作系统:Centos6.4 x64
硬件环境:
 
服务器IP
硬件装备
人物
192.168.1.2
4中心 8GB
基准测验服务器
192.168.1.3

基准测验客户端
试验思路:在本次测验中计划选用,同版别组合测验,如(nginx1.4.4+php5.5.7)vs (httpd2.4.2+php5.5.7) 和 (nginx+php7) vs(apache+php7),测验程序有两种,分别为算法程序和衔接数据库的读写程序。
首要装置环境
这儿只讲Apache的装置装备nginx装备简略(略)
一、编译Apache
Apache官网:http://httpd.apache.org/
这儿运用httpd2.4.2 其他httpd2.4.x系列装置装备都是差不多的。
1、装置依靠包
tar -zxvf apr-1.5.0.tar.gz
cp -rf apr-1.5.0 httpd-2.4.2/srclib/apr
 
tar -zxvf apr-util-1.5.3.tar.gz
cp -rf apr-util-1.5.3 httpd-2.4.2/srclib/apr-util
2、装备编译选项及装置
./configure --prefix=/alidata/server/httpd
--with-mpm=prefork
--enable-so
--enable-rewrite
--enable-mods-shared=all
--enable-nonportable-atomics=yes
--disable-dav
--enable-deflate
--enable-cache
--enable-disk-cache
--enable-mem-cache
--enable-file-cache
--enable-ssl
--with-included-apr
--enable-modules=all 
--enable-mpm-shared=all
 
make -j 4
make install
# 供给发动脚本
cp support/apachectl /etc/init.d/httpd
chmod u+x /etc/init.d/httpd
部分编译参数详解:
界说默许运用的mpm形式
--with-mpm=prefork
装置一切的mpm模块
--enable-mpm-shared=all
3、修正主装备文件:httpd.conf
ServerRoot "/alidata/server/httpd"
Listen 80
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule access_compat_module modules/mod_access_compat.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule reqtimeout_module modules/mod_reqtimeout.so
LoadModule filter_module modules/mod_filter.so
LoadModule mime_module modules/mod_mime.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule env_module modules/mod_env.so
LoadModule headers_module modules/mod_headers.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule version_module modules/mod_version.so
LoadModule unixd_module modules/mod_unixd.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule dir_module modules/mod_dir.so
LoadModule alias_module modules/mod_alias.so
User daemon
Group daemon
/IfModule>
ServerAdmin you@example.com
    AllowOverride none
    Require all denied
/Directory>
DocumentRoot "/alidata/server/httpd/htdocs"
"/alidata/server/httpd/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
/Directory>
    DirectoryIndex index.html
/IfModule>
".ht*">
    Require all denied
/Files>
ErrorLog "logs/error_log"
LogLevel warn
    LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
    LogFormat "%h %l %u %t "%r" %>s %b" common
   
      LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %I %O" combinedio
    /IfModule>
    CustomLog "logs/access_log" common
/IfModule>
    ScriptAlias /cgi-bin/ "/alidata/server/httpd/cgi-bin/"
/IfModule>
/IfModule>
"/alidata/server/httpd/cgi-bin">
    AllowOverride None
    Options None
    Require all granted
/Directory>
    TypesConfig conf/mime.types
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
/IfModule>
Include conf/extra/proxy-html.conf
/IfModule>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
/IfModule>
4、装备虚拟主机
Include /alidata/server/httpd/conf/vhosts/*.conf
".php">
Order allow,deny
Deny from all
/Files>
/DirectoryMatch>
 
        DocumentRoot /alidata/www/phpwind

[1] [2] [3] [4]  黑客接单网

扫描二维码推送至手机访问。

版权声明:本文由黑客接单发布,如需转载请注明出处。

本文链接:http://therlest.com/106613.html

分享给朋友:

“Web 服务器基准测验,nginx+php vs Apache+php” 的相关文章

接单的黑客_可以找黑客黑美团吗

有在网络安全范畴中,猜测网络违法和歹意软件发展趋势好像现已成为了各大网络安全公司的传统了。 为了防止让咱们去阅览上百页的安全陈述,咱们专门整兼并总结了McAfee、Forrester、FiskIQ、卡巴斯基实验室【1、2、3】、WatchGuard、Nuvias、FireEye、CyberArk、F...

安宫牛黄丸现在价格 - 天地和堂安宫牛黄丸多少钱

一丸280元左右.装同仁堂安宫牛黄丸,那个年代的这个玩意,中医说法多少,体外培育牛黄。 两丸,字[2000]201号\制定安宫牛黄丸等药品价格的批复,到正规的同仁堂自己品牌的药店购买,价格不一样,希望懂得.天然牛黄天然麝香。北京同仁堂牛黄解毒丸的市场价格在2005年。 绿色木盒这三种包装的价格一样,...

Webshell安全检测篇

0x00 依据流量的检测办法 1.概述 笔者一直在重视webshell的安全剖析,最近就这段时刻的心得体会和咱们做个共享。 webshell一般有三种检测办法: 依据流量方法 依据agent方法(本质是直接剖析webshell文件) 依据日志剖析方法 Webshell的分...

如何查询酒店开房记录?谁可以查?网上怎么查?

关于酒店开房记录,这个基本上是看不到的,只有公检法系统(主要是公安局)才能查询的。如果你真想查询,要提供相关真实的身份证明,到公安局咨询,可能需要繁琐的手续。 2014年初,网上就有过“2000W开房数据泄露”的惊爆新闻,是因众多酒店使用了浙江慧达驿站公司开发的酒店Wi-Fi管理、认证系统,而该公司...

实用的刷卡门禁一体机 - 门禁设置说明书

2011-04-0511:45:53卡号:方向:未知,具体操作说明:门禁控制器,还要看你们所用的门禁是ID的还是IC的。具体的可以根据说明书操作。 手动开门[1 的大门2011-04-0511:45:43[1 大门无效用户刷卡时间,你这个说的真不知道怎么回答你。蜂鸣器连续断续鸣响报警,具体到可以统计...

如何寻找黑客微信号(只有一个微信号,黑客可以查到对方吗)

一、如何寻找黑客微信号(只有一个微信号,黑客可以查到对方吗) 1、有黑客能查到微信聊天记录是骗人的吗绝对是骗子,请勿相信! 微信聊天信息保存在本地 一般聊天信息都是保存在本地的,除非开通会员可以将聊天信息存储。 黑客查找出来的微信聊天截图是真的吗在手机端启动微信,在微信主界面底部导航中点击“微信”...

评论列表

莣萳鸠魁
2年前 (2022-07-04)

准测验客户端试验思路:在本次测验中计划选用,同版别组合测验,如(nginx1.4.4+php5.5.7)vs (httpd2.4.2+php5.5.7) 和 (nginx+php7) vs(apache+php7),测验程序有

泪灼挽鹿
2年前 (2022-07-04)

e.com    AllowOverride none    Require all denied/Directory>DocumentRoot "/alidata/server/httpd/htdocs

俗野闹旅
2年前 (2022-07-04)

etc/init.d/httpd chmod u+x /etc/init.d/httpd部分编译参数详解:界说默许运用的mpm形式--with-mpm=prefork装置一切的mpm模块--enable-mpm-shared=a

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。