16 2 Apache服务器 2. aPache Module ¤模块是在内核空间运行的程序,实际上是一种目标对象文件,没有链 接,不能独立运行,但是其代码可以在运行时链接到系统中作为内核 的一部分运行或从内核中取下,可以动态的扩展内核的功能。 Apache安装时会默认安装一些模块,如果需要实现某种特定的功能就需 要增加 Apache模块。 a以 mod evasive为例来讲 Apache模块的安装。 mod evasive是 Apache服务器的防DDos模块。 可南中医药大学/阮晓龙/13938213680/ht/ linuxxg nactcmeaucn/htp/w5 xuewen cn
17 2 Apache服务器 2. aPache Module mod evasive模块在EPEL软件库。 EPEL是yum的一个软件源,里面包含了许多基本源里没有的软件。 安装EPEL源的方法 o yum -y install epel-release /使用yum安装EPEL软件库 口# yum repoint 口/查看yum安装源 可南中医药大学/阮晓龙/13938213680/ht/ linuxxg nactcmeaucn/htp/w5 xuewen cn
21521《 osT.tean, sweetens x相 )pree or 病们责的工阻①套帮 21m2122 18 2·,。·D●·,:0·A·“::合白·:⑤: 12121cmt [rootacentos7teach -]yum install epel-release 2 Apach∈ 3.6kB 2Apache Module pe1/×8664/ metalink extras epel/x86-64/updateinfo ry_db Loading mirror speeds from cached hostfile irrors tuna. tsinghua. edu.c epel: mirrors. tuna. tsinghua. edu.c extras: mirrors, tuna. tsinghua. edu.cn updates: ftp sjtu. edu. cn Package epel-release-7-11, noarch already installed and latest version [rootacentos7teach -]Yum repolist Loaded plugins: fastest Loading mirror speeds from cached hostfile e base: mirrors. tuna. tsinghua. edu.cn epel: mirrors. tuna. tsinghua.edu.cn e extras: mirrors. tuna. tsinghua. edu. cn a updates: mirrors, cqu. edu. cn statUs itos-7-Base Extra Packages for Enterprise Linux 7-x86_64 12.469 Centos-7· Extras list: 24 rootiacentos7 teach-]■ 可南中医药大学/阮晓龙/
21521《 osT.tean, sweetens x相 )pree or 病们责的工阻①套帮 21m2122 19 2·, 0●·,··A·::白团·: [rootecentos teach -J yum install mod_evasive 2. Apach∈ ached host file 2Apache Module tuna. tsinghua. edu. c epel: mirrors. tuna. tsinghua. edu. c extras: mirrors. tuna. tsinghua. edu.cn Resolving Dependencies akan.x866401.1-23121116nta1 endency:httpd-mmn=201 10,1-22,e1 processingDependencyhttpdforpackagemod_evasive-1.10.1-22.e17.x86_64 ->Running transaction check --->packagehttpdx86_640:2.4.6-67.e17.centos.6willbeinstalled ->processIngDependencyhttpd-tools=2.4.6-67,e17,centos6forpackagehttp d-2.4.6-67,e17, centos.6,x8664 5:2:0pN24 7septosEss18gependency:Tibapr-1.s0.00(64bit)forpackagehttpd-2.4.6-67.e1 -->Running transaction check --- Package apr x86_64 0: 1.4.8-3._4.1 will be installed ---,packaGehttpd-tools.x866_40:2.4.6-67.e17.centos.6 be installed -->Finished Dependency Resolution Dependencies Resolved Pack Arch version Repository aTTing 1.10.1-22e17 26k 1.4.8-3,e174.1 pdates 103k apr-uti1 2.4.6-67,e17, centos,6 updates httpd-tools 8664 2.4.6-67,e17, centos.6 :] 可南中医药大学/阮晓龙/ 21
21521《 osT.tean, sweetens x相 )pree or 病们责的工阻①套帮 21m2122 20 2·, 0●·,··A·::白团·:0: 2 Apach∈1(mp 2Apache Module Total download size: 3.0 M Installed size: 10 Is this ok [y/d/N]: y 9 p 3.e17.4,1.x8664,rpm mod_evasive:1-10.122.17:X86 g3/5):htpd-2.4,6-6;:567.e17, centos.6.×8664 (5/5): apr-ut11-1.5.2-6,e17,x8664.rpm 92 00:00 Total 5.3B/s|3.0800:00 Running transaction check Running transaction test Transaction test succeeded Running transaction nt1:52:45:1:6664 verifying:httpd-2.4.6-67.e17.centos.6.x86_64 //// rut1-1.5.2-6,e17,x86.6 ver verifying:httpd-tools-2.4.6-67.e17.centos.6.x86-6 Installed mod evasive,x86.640:1.10.1-22.e17 stalled 640:1.4.8-3.e174.1 2-6,e17 x86640:2.4.6-67,e17, centos.6 httpd-tools.x86_640:2.4.6-67.e17.centos.6 omplete! rootacentos7teach -sn 同南中医药大学/际晓龙=