16 2 Apache服务器 2.aPache Module ¤模块是在内核空间运行的程序,实际上是一种囯标对象文件,没有链 接,不能独立运行,但是其代码可以在运行时链接到系统中作为内核 的一部分运行或从内核中取下,可以动态的扩展内核的功能。 Apache安装时会默认安装一些模块,如果需要实现某种特定的功能就需 要增加 Apache模块。 口以mod_ evasive为例来讲 Apache模块的安装。 mod evasive是 Apache服务器的防DDOS模块。 南中医药大学/阮晓龙/13938213680/http://inux.xg.hactcm.edu.cn/http://www.51xueweb.cn
河南中医药大学 / 阮晓龙 / 13938213680 / http://linux.xg.hactcm.edu.cn / http://www.51xueweb.cn 2.Apache服务器 模块是在内核空间运行的程序,实际上是一种目标对象文件,没有链 接,不能独立运行,但是其代码可以在运行时链接到系统中作为内核 的一部分运行或从内核中取下,可以动态的扩展内核的功能。 ◼ Apache安装时会默认安装一些模块,如果需要实现某种特定的功能就需 要增加Apache模块。 以mod_evasive为例来讲Apache模块的安装。 mod_evasive是Apache服务器的防DDOS模块。 16 2.2Apache Module
2 Apache服务器 2.aPache Module mod evasive模块在EPEL软件库。 EPEL是yum的一个软件源,里面包含了许多基本源里没有的软件。 ■安装EPEL源的方法 # install epel-release /使用yum安装EPEL软件库 口# yum repolist 口查看yum安装源 南中医药大学/阮晓龙/13938213680/http://inux.xg.hactcm.edu.cn/http://www.51xueweb.cn
河南中医药大学 / 阮晓龙 / 13938213680 / http://linux.xg.hactcm.edu.cn / http://www.51xueweb.cn 2.Apache服务器 mod_evasive模块在EPEL软件库。 ◼ EPEL是yum的一个软件源,里面包含了许多基本源里没有的软件。 ◼ 安装EPEL源的方法: # yum -y install epel-release //使用yum安装EPEL软件库 # yum repolist //查看yum安装源 17 2.2Apache Module
J 211.69. 35.213-Centos 7-Teach-rootecentos7teache--Xshell 5 (Free for Home/School 文件)乘辑()查(工具①选项卡B)W帮助(H)sh/root 8 ·,國·6··8·A·:鹵田,,②”要加当前,左 1216935213ce057L+ [rootacentos7teach -]#yum install epel-release 2. Apache basded plugins: fast 00:0 2Apache Module 13.4 dates (1/ 3): epel/x86_64/updateinfo (3/3): updates/7/x86_64/primary_db Loading mirror speeds from cached hostfile s base: mirrors. tuna. tsinghua. edu s epel: mirrors. tuna, tsinghua. edu extras: mirrors. tuna. tsinghua. edu.cn updates: ftp sjtu. edu Package epel-release-7-11 noarch already installed and latest version Nothing to do [rootacentos7teach -]#yum repolist Loaded plugins: fastes Loading mirror speeds from cached hostfile base: mirrors. tuna. tsinghua. edu. cn Del: mirrors. tuna. tsinghua. edu.ci w extras: mirrors, tuna. tsinghua. edu. cn updates: mirrors. cqu entos-7- Base 9,591 Extra Packages for Enterprise Linux 7-x86_64 12,469 Centos-7-Extra Centos-7-Updates 2,41 仅将文本发选到图远项卡 问南中医药大学/阮晓龙/mm22 ssH2xemB0x40见31.241会舌4 LAP NU
河南中医药大学 / 阮晓龙 / 13938213680 / http://linux.xg.hactcm.edu.cn / http://www.51xueweb.cn 2.Apache服务器 18 2.2Apache Module
J 211.69,35.213-CentoS 7-Teach- rootecentos7te shell 5 (Free for Home/School 文件)乘辑()查(工具①选项卡(B)口0 19 ·,國·0··8·A:鹵团,,②”P要加当前,左 1216935213ce057L+ 2. Apache Loading mirror: sets fror ca 2Apache Module ase: m7 el: mirrors extras: mirrors. tuna. tsinghua. edu. cn s updates: mirrors. cqu. edu.cn Resolving Dependencies ->Running transaction check ---> Package mod_evasive x86_64 0: 1.10. 1-22.e17 will be installed package: mod_evasive-l 10.1-22.e17,x866 processIngDependencyhttpdforpackagemod_evasive-1.10.1-22.e17.x86_64 29:316::m5.6w11b6msta14 processIngDependency:libaprutil-1.so.0o(64bit)forpackagehttpd-2.4.6-6 7.e17.cent。s.6.x8664 I-runn6.xependency:libapr-1.s0.00(64bit)forpackage:httpd-2.4.6-67.e1 - Processing I---> Package apr-utiT x86_64 0: 1.5.2-6e17 will be instant Package apr Packagehttpd-tools.x86_640:2.4.6-67.e17.centos.6willbeinstalled --> Finished Dependency Resolution Dependencies Resolved Version Repository size x86641.10.1-22e17 x86 1.4.8-3,e174,1 updates apr-ut1 base 2.4,6-67.e17,cent updates httpd-tool: 24.6-67,e17 cento6 update 88k 仅将文本发选到图远项卡 问南中医药大学/阮晓龙/mm22 5sH2 xterm T B0x4040.211会活4 LAP NUN
河南中医药大学 / 阮晓龙 / 13938213680 / http://linux.xg.hactcm.edu.cn / http://www.51xueweb.cn 2.Apache服务器 19 2.2Apache Module
J 211.69. 35.213-Centos 7-Teach-rootecentos7teache--Xshell 5 (Free for Home/School 文件)乘辑()查(工具①选项卡B)W帮助(H)sh/root 20 ·,國·0··8·A:鹵团,,②”P要加当前,左 1216935213ce057L+ 2. Apache nstall 1 Package(+ Dependent packages) 2Apache Module Total down load size: 3.0M Ly/d/N]: y ng packages 14.8-3e174.1.x86_64.rpm 103kB00:00 (2/5):httpd-tools-2.4.6-67.e17.centos.6.x86_64.rpm 88 kB httpd-2.4.6-67.e17.centos6.x86_64.rpm (5/5):apr-uti1-1.5.2-6.e17.x86_64.rp""pm (4/5): mod evasive-1.10.1-22.e17.x8664 00 MB/s unning transaction check Running transaction test Installing: apr-1.4.8-3.e17_4.1. x86 Installing:httpd-tools-2.4.6-67.e17.centos6.) Installing mod_evasive-1 10 1-22. e17. x86_64 erifying:httpd-2.4.6-67.e17.centos.6.x86_64 mod evasive-1.10.1-22.e17.x8664 apr-uti1-1.5.2-6,e17,x86 //// Verif fying:httpd-tools-2.4.6-67 centos. 6.x86 64 Installed 640:1.10.1-22e17 Dependency Installed: pr,x86_640:1.4.8-3.e174.1 httpdx86-_640:2.4.6-67.e17.centos.6 httpd-tools.x86_640:2.4.6-67.e17.centos.6 [r。 otlacentos7 teach-]#■ 仅相文本发送到图远项卡 问南中医药大学/阮晓龙/mm22 5sH2 xterm T B0x4040.241会活4 LAP NU
河南中医药大学 / 阮晓龙 / 13938213680 / http://linux.xg.hactcm.edu.cn / http://www.51xueweb.cn 2.Apache服务器 20 2.2Apache Module