随笔分类 -  Nginx/Apache

摘要:Nginx本身是不支持对外部程序的直接调用或者解析,所有的外部程序(包括PHP)必须通过FastCGI接口来调用。FastCGI接口在Linux 下是socket,(这个socket可以是文件socket,也可以是ip socket)。为了调用CGI程序,还需要一个FastCGI的wrapper(wrapper可以理解为用于启动另一个程序的程序),这个 wrapper绑定在某个固定socket上,如端口或者文件socket。当Nginx将CGI请求发送给这个socket的时候,通过FastCGI 接口,wrapper接纳到请求,然后派生出一个新的线程,这个线程调用解释器或者外部程序处理脚本并. 阅读全文
posted @ 2012-12-09 15:10 枯木-Linux 阅读(385) 评论(0) 推荐(0)
摘要:DDoS攻击概念 DoS的攻击方式有很多种,最基本的DoS攻击就是利用合理的服务请求来占用过多的服务资源,从而使服务器无法处理合法用户的指令。 DDoS攻击手段是在传统的DoS攻击基础之上产生的一类攻击方式。单一的DoS攻击一般是采用一对一方式的,当被攻击目标CPU速度低、内存 小或者网络带宽小等等各项性能指标不高,它的效果是明显的。随着计算机与网络技术的发展,计算机的处理能力迅速增长,内存大大增加,同时也出现了千兆级别 的网络,这使得DoS攻击的困难程度加大了 - 目标对恶意攻击包的"消化能力"加强了不少,例如你的攻击软件每秒钟可以发送3,000个攻击包,但我的主机与网络 阅读全文
posted @ 2012-11-03 16:17 枯木-Linux 阅读(414) 评论(0) 推荐(0)
摘要:# cat /usr/local/apache2/build/config.nice //获取Apache编译时的参数#!/bin/sh##Created by configure"./configure"\"--enable-modules=all"\"--enable-mods-shared=all"\"--enable-charset-lite"\"--enable-unique-id"\"--enable-usertrack"\"--disable-vers 阅读全文
posted @ 2012-10-08 10:26 枯木-Linux 阅读(190) 评论(0) 推荐(0)
摘要:mod_cband 一个在apache2下使用的每用户、每虚拟主机、每客户端的带宽限制器mod-cband下载地址 http://dembol.org/downloads/cband/mod-cband-0.9.7.5.tgz当然安装前提是你已经安装了Apache了=========================installmod-cband==============================# tar xf mod-cband-0.9.7.5.tgz -C /usr/src/# cd /usr/src/mod-cband-0.9.7.5/# ./config --with-apx 阅读全文
posted @ 2012-09-12 19:58 枯木-Linux 阅读(307) 评论(0) 推荐(0)
摘要:apxsapxs是一个为ApacheHTTP服务器编译和安装扩展模块的工具,用于编译一个或多个源程序或目标代码文件为动态共享对象,使之可以用由mod_so提供的LoadModule指令在运行时加载到Apache服务器中。因此,要使用这个扩展机制,你的平台必须支持DSO特性,而且Apachehttpd必须内建了mod_so模块。前提是你支持动态模块加载DSO,即编译时有--enable-so选项,可通过如下命令查看当前是否含有mod_so.c模块# /usr/local/apache2/bin/httpd -lCompiled in modules: core.c prefork.c http_ 阅读全文
posted @ 2012-09-05 15:42 枯木-Linux 阅读(304) 评论(0) 推荐(0)
摘要:1、配置好DNS解析[root@server ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.2 (Santiago)[root@server ~]# uname -r2.6.32-220.el6.i686[root@server ~]# yum install bind* -y[root@server ~]# vim /etc/named.conf[root@server ~]# cat /etc/named.confoptions { listen-on port 53 { any; }; list 阅读全文
posted @ 2012-06-22 15:06 枯木-Linux 阅读(304) 评论(0) 推荐(0)
摘要:安装# yum install pcre* -y # tar xf nginx-1.2.1.tar.gz # cd nginx-1.2.1 # ./configure --with-http_stub_status_module --prefix=/usr/local/nginx --with-http_gzip_static_module # make && make install[root@server ~]# cd /usr/local/nginx/ [root@server nginx]# ls conf html logs sbin [root@server ngi 阅读全文
posted @ 2012-06-21 07:30 枯木-Linux 阅读(237) 评论(0) 推荐(0)