概述
文章目录
- 一、实验环境
- 二、CentOS 6.x 配置epel的yum仓库指向并且安装httpd
- 三、CentOS 7.x 配置epel的yum仓库指向并且安装httpd
- 四、CentOS 6.x安装httpd版本以及目录结构说明
- 五、CentOS 7.x安装httpd版本以及目录结构说明
一、实验环境
CentOS 7.x:
[root@www ~]# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
[root@www ~]# uname -a
Linux www.example.com 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@www ~]# ip addr show|sed -rn '/inet[[:space:]]+127/! s/^[[:space:]]+inet[[:space:]]+(.*)/[[:digit:]]+[[:space:]]+.*$/1/p'
192.168.56.78
CentOS 6.x:
[root@localhost ~]# cat /etc/redhat-release
CentOS release 6.10 (Final)
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.32-754.el6.x86_64 #1 SMP Tue Jun 19 21:26:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]# ifconfig | sed -rn 's/^[[:space:]]+inet addr:(.*)[[:space:]]+Bcast.*$/1/p'
192.168.56.98
二、CentOS 6.x 配置epel的yum仓库指向并且安装httpd
epel的wiki地址:
https://fedoraproject.org/wiki/EPEL
1、CentOS 6.x配置epel仓库
执行yum安装epel源命令:
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
过程:
[root@localhost ~]# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
Loaded plugins: fastestmirror
Setting up Install Process
epel-release-latest-6.noarch.rpm
|
14 kB
00:00
Examining /var/tmp/yum-root-FhSOg1/epel-release-latest-6.noarch.rpm: epel-release-6-8.noarch
Marking /var/tmp/yum-root-FhSOg1/epel-release-latest-6.noarch.rpm to be installed
Determining fastest mirrors
* base: mirrors.cn99.com
* extras: mirrors.163.com
* updates: mirrors.163.com
base
| 3.7 kB
00:00
base/primary_db
| 4.7 MB
00:01
extras
| 3.4 kB
00:00
extras/primary_db
|
26 kB
00:00
updates
| 3.4 kB
00:00
updates/primary_db
| 1.9 MB
00:00
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:6-8 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================================
Package
Arch
Version
Repository
Size
============================================================================================================================================================
Installing:
epel-release
noarch
6-8
/epel-release-latest-6.noarch
22 k
Transaction Summary
============================================================================================================================================================
Install
1 Package(s)
Total size: 22 k
Installed size: 22 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : epel-release-6-8.noarch
1/1
Verifying
: epel-release-6-8.noarch
1/1
Installed:
epel-release.noarch 0:6-8
Complete!
查看repo:
[root@localhost ~]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/metalink
| 9.0 kB
00:00
* base: mirrors.cn99.com
* epel: mirrors.aliyun.com
* extras: mirrors.163.com
* updates: mirrors.163.com
epel
| 3.2 kB
00:00
epel/primary
| 3.2 MB
00:01
epel
12501/12501
repo id
repo name
status
base
CentOS-6 - Base
6,713
epel
Extra Packages for Enterprise Linux 6 - x86_64
12,501
extras
CentOS-6 - Extras
33
updates
CentOS-6 - Updates
233
repolist: 19,480
2、epel仓库的httpd软件包查看
[root@localhost ~]# yum list |grep '^httpd'
httpd.x86_64
2.2.15-69.el6.centos
base
httpd-devel.i686
2.2.15-69.el6.centos
base
httpd-devel.x86_64
2.2.15-69.el6.centos
base
httpd-itk.x86_64
2.2.22-7.el6
epel
httpd-manual.noarch
2.2.15-69.el6.centos
base
httpd-tools.x86_64
2.2.15-69.el6.centos
base
#发现上面的列表中,epel中没有httpd的主包了,不过呢,我们的base仓库中有。用它也是一样。
apache的httpd项目,红帽有个概念,就是CentOS 6.x不管怎么升级,只要发型版本的主版本不升级,
即不到CentOS 7,那么base仓库提供的httpd软件包也总是httpd2.2版本的。但是,现在apache主推
httpd2.4版本,有很多新的特性和差异,也就是说,如果生产环境是是CentOS 6.x又想用httpd2.4版本的,
那么只有自己编译安装或者自己制作rpm包,后者的难度偏大,所以一般要么是生产环境用CentOS7.x,
要么就是自己在CentOS 6.x上编译安装httpd2.4(本次博文不涉及编译安装,相关博文请参考我后边提供
的httpd2.4编译安装的博文)。
[root@localhost ~]# yum info httpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.cn99.com
* epel: mirrors.ustc.edu.cn
* extras: mirrors.163.com
* updates: mirrors.163.com
Available Packages
Name
: httpd
Arch
: x86_64
Version
: 2.2.15
Release
: 69.el6.centos
Size
: 836 k
Repo
: base
Summary
: Apache HTTP Server
URL
: http://httpd.apache.org/
License
: ASL 2.0
Description : The Apache HTTP Server is a powerful, efficient, and extensible
: web server.
#上面详情,关于httpd的相关信息
阿里云的镜像站点有提供httpd相关的软件包,和base仓库差不多:
https://mirrors.aliyun.com/centos/6/os/x86_64/Packages/
epel仓库的链接:
https://mirrors.tuna.tsinghua.edu.cn/epel/6/x86_64/Packages/h/
3、yum直接安装httpd
#安装httpd至少会安装以下几个基本组件:
apr
apr-util
apr-util-ldap
httpd-tools
[root@localhost ~]# yum install httpd
省略......
Dependencies Resolved
============================================================================================================================================================
Package
Arch
Version
Repository
Size
============================================================================================================================================================
Installing:
httpd
x86_64
2.2.15-69.el6.centos
base
836 k
Installing for dependencies:
apr
x86_64
1.3.9-5.el6_9.1
base
124 k
apr-util
x86_64
1.3.9-3.el6_0.1
base
87 k
apr-util-ldap
x86_64
1.3.9-3.el6_0.1
base
15 k
httpd-tools
x86_64
2.2.15-69.el6.centos
base
81 k
mailcap
noarch
2.1.31-2.el6
base
27 k
Transaction Summary
===========================================================================================================================================================
三、CentOS 7.x 配置epel的yum仓库指向并且安装httpd
1、CentOS 7.x配置epel仓库
执行yum安装epel源命令:
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
过程:
[root@www ~]# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Loaded plugins: fastestmirror
epel-release-latest-7.noarch.rpm
|
15 kB
00:00:00
Examining /var/tmp/yum-root-p0kmOS/epel-release-latest-7.noarch.rpm: epel-release-7-11.noarch
Marking /var/tmp/yum-root-p0kmOS/epel-release-latest-7.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================================
Package
Arch
Version
Repository
Size
============================================================================================================================================================
Installing:
epel-release
noarch
7-11
/epel-release-latest-7.noarch
24 k
Transaction Summary
============================================================================================================================================================
Install
1 Package
Total size: 24 k
Installed size: 24 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : epel-release-7-11.noarch
1/1
Verifying
: epel-release-7-11.noarch
1/1
Installed:
epel-release.noarch 0:7-11
Complete!
查看repo:
[root@www ~]# yum repolist
Loaded plugins: fastestmirror
Determining fastest mirrors
epel/x86_64/metalink
| 8.9 kB
00:00:00
* base: mirrors.163.com
* epel: mirrors.aliyun.com
* extras: mirrors.163.com
* updates: mirrors.163.com
base
| 3.6 kB
00:00:00
epel
| 3.2 kB
00:00:00
extras
| 3.4 kB
00:00:00
updates
| 3.4 kB
00:00:00
(1/6): base/7/x86_64/group_gz
| 166 kB
00:00:00
(2/6): extras/7/x86_64/primary_db
| 205 kB
00:00:00
(3/6): epel/x86_64/updateinfo
| 929 kB
00:00:00
(4/6): updates/7/x86_64/primary_db
| 6.0 MB
00:00:02
(5/6): epel/x86_64/primary
| 3.6 MB
00:00:03
(6/6): base/7/x86_64/primary_db
| 5.9 MB
00:00:04
epel
12716/12716
repo id
repo name
status
base/7/x86_64
CentOS-7 - Base
9,911
epel/x86_64
Extra Packages for Enterprise Linux 7 - x86_64
12,716
extras/7/x86_64
CentOS-7 - Extras
434
updates/7/x86_64
CentOS-7 - Updates
1,614
repolist: 24,675
2、epel仓库的httpd软件包查看
[root@www ~]# yum list |grep '^httpd'
httpd.x86_64
2.4.6-80.el7.centos.1
updates
httpd-devel.x86_64
2.4.6-80.el7.centos.1
updates
httpd-itk.x86_64
2.4.7.04-2.el7
epel
httpd-manual.noarch
2.4.6-80.el7.centos.1
updates
httpd-tools.x86_64
2.4.6-80.el7.centos.1
updates
#同样epel仓库也没有提供httpd的主包。然后centos的updates仓库有更新。
[root@www ~]# yum info httpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* epel: mirrors.aliyun.com
* extras: mirrors.163.com
* updates: mirrors.163.com
Available Packages
Name
: httpd
Arch
: x86_64
Version
: 2.4.6
Release
: 80.el7.centos.1
Size
: 2.7 M
Repo
: updates/7/x86_64
Summary
: Apache HTTP Server
URL
: http://httpd.apache.org/
License
: ASL 2.0
Description : The Apache HTTP Server is a powerful, efficient, and extensible
: web server.
阿里云的镜像站点有提供httpd相关的软件包,和base仓库差不多:
https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/
epel仓库的链接:
https://mirrors.tuna.tsinghua.edu.cn/epel/7/x86_64/Packages/h/
3、yum直接安装httpd
[root@www ~]# yum install httpd
省略......
Dependencies Resolved
============================================================================================================================================================
Package
Arch
Version
Repository
Size
============================================================================================================================================================
Installing:
httpd
x86_64
2.4.6-80.el7.centos.1
updates
2.7 M
Installing for dependencies:
apr
x86_64
1.4.8-3.el7_4.1
base
103 k
apr-util
x86_64
1.5.2-6.el7
base
92 k
httpd-tools
x86_64
2.4.6-80.el7.centos.1
updates
90 k
mailcap
noarch
2.1.41-2.el7
base
31 k
Transaction Summary
===========================================================================================================================================================
省略......
apr项目地址:
http://apr.apache.org/
APR也是apache旗下的一个项目。
httpd2.4版本需要apr-devel大于等于1.4.0版本,apr-util-devel大于等于1.4.0版本。而默认的base仓库的
apr-devel和apr-util-devel的版本都是1.3.9版本,所以这也是为什么默认的CentOS 6.x的base仓库提供的
httpd版本是2.2的缘故。(不过我们可以自己根据源码包制作1.4以上版本的apr-devel以及apr-util-devel的rpm包,
然后制作httpd2.4版本的rpm包,可以直接在CentOS 6.x上安装我们制作的rpm包)
四、CentOS 6.x安装httpd版本以及目录结构说明
[root@localhost ~]# rpm -ql httpd
/etc/httpd
#配置文件和安装文件根目录
/etc/httpd/conf
#主配置文件目录
/etc/httpd/conf.d
#子配置文件目录,需要在主配置文件中包含,默认就包含
/etc/httpd/conf.d/README #说明文件
/etc/httpd/conf.d/welcome.conf
#如果用户没有指定,这个文件表示默认的主页文件
/etc/httpd/conf/httpd.conf
#主配置文件
/etc/httpd/conf/magic
#如果mod_mime无法解析,magic是另外一个用来设备文件类型的文件
/etc/httpd/logs
#日志文件目录,指向的是/var/log/httpd的符号链接
/etc/httpd/modules #httpd的模块文件的目录,指向的是/usr/lib64/httpd/modules的符号链接
/etc/httpd/run
#pid文件存放路径,指向的是/var/run/httpd的符号链接
/etc/logrotate.d/httpd #httpd的日志切割轮训脚本,被rsyslog托管
/etc/rc.d/init.d/htcacheclean #清理httpd磁盘换成的一个脚本文件
/etc/rc.d/init.d/httpd
#httpd的服务管理的脚本文件
/etc/sysconfig/htcacheclean
#htcacheclean脚本文件的(选项设置)配置文件
/etc/sysconfig/httpd
#httpd脚本文件的(选项设置)配置文件
/usr/lib64/httpd
#动态链接文件主目录
/usr/lib64/httpd/modules
#httpd的模块文件存放路径,下面的以*.so结尾的都是默认httpd安装后支持的模块
/usr/lib64/httpd/modules/mod_actions.so
/usr/lib64/httpd/modules/mod_alias.so
/usr/lib64/httpd/modules/mod_asis.so
/usr/lib64/httpd/modules/mod_auth_basic.so
/usr/lib64/httpd/modules/mod_auth_digest.so
/usr/lib64/httpd/modules/mod_authn_alias.so
/usr/lib64/httpd/modules/mod_authn_anon.so
/usr/lib64/httpd/modules/mod_authn_dbd.so
/usr/lib64/httpd/modules/mod_authn_dbm.so
/usr/lib64/httpd/modules/mod_authn_default.so
/usr/lib64/httpd/modules/mod_authn_file.so
/usr/lib64/httpd/modules/mod_authnz_ldap.so
/usr/lib64/httpd/modules/mod_authz_dbm.so
/usr/lib64/httpd/modules/mod_authz_default.so
/usr/lib64/httpd/modules/mod_authz_groupfile.so
/usr/lib64/httpd/modules/mod_authz_host.so
/usr/lib64/httpd/modules/mod_authz_owner.so
/usr/lib64/httpd/modules/mod_authz_user.so
/usr/lib64/httpd/modules/mod_autoindex.so
/usr/lib64/httpd/modules/mod_cache.so
/usr/lib64/httpd/modules/mod_cern_meta.so
/usr/lib64/httpd/modules/mod_cgi.so
/usr/lib64/httpd/modules/mod_cgid.so
/usr/lib64/httpd/modules/mod_dav.so
/usr/lib64/httpd/modules/mod_dav_fs.so
/usr/lib64/httpd/modules/mod_dbd.so
/usr/lib64/httpd/modules/mod_deflate.so
/usr/lib64/httpd/modules/mod_dir.so
/usr/lib64/httpd/modules/mod_disk_cache.so
/usr/lib64/httpd/modules/mod_dumpio.so
/usr/lib64/httpd/modules/mod_env.so
/usr/lib64/httpd/modules/mod_expires.so
/usr/lib64/httpd/modules/mod_ext_filter.so
/usr/lib64/httpd/modules/mod_filter.so
/usr/lib64/httpd/modules/mod_headers.so
/usr/lib64/httpd/modules/mod_ident.so
/usr/lib64/httpd/modules/mod_include.so
/usr/lib64/httpd/modules/mod_info.so
/usr/lib64/httpd/modules/mod_ldap.so
/usr/lib64/httpd/modules/mod_log_config.so
/usr/lib64/httpd/modules/mod_log_forensic.so
/usr/lib64/httpd/modules/mod_logio.so
/usr/lib64/httpd/modules/mod_mime.so
/usr/lib64/httpd/modules/mod_mime_magic.so
/usr/lib64/httpd/modules/mod_negotiation.so
/usr/lib64/httpd/modules/mod_proxy.so
/usr/lib64/httpd/modules/mod_proxy_ajp.so
/usr/lib64/httpd/modules/mod_proxy_balancer.so
/usr/lib64/httpd/modules/mod_proxy_connect.so
/usr/lib64/httpd/modules/mod_proxy_ftp.so
/usr/lib64/httpd/modules/mod_proxy_http.so
/usr/lib64/httpd/modules/mod_proxy_scgi.so
/usr/lib64/httpd/modules/mod_reqtimeout.so
/usr/lib64/httpd/modules/mod_rewrite.so
/usr/lib64/httpd/modules/mod_setenvif.so
/usr/lib64/httpd/modules/mod_speling.so
/usr/lib64/httpd/modules/mod_status.so
/usr/lib64/httpd/modules/mod_substitute.so
/usr/lib64/httpd/modules/mod_suexec.so
/usr/lib64/httpd/modules/mod_unique_id.so
/usr/lib64/httpd/modules/mod_userdir.so
/usr/lib64/httpd/modules/mod_usertrack.so
/usr/lib64/httpd/modules/mod_version.so
/usr/lib64/httpd/modules/mod_vhost_alias.so
/usr/sbin/apachectl
#调用httpd脚本管理httpd服务的一个集成脚本工具,apachectl
/usr/sbin/htcacheclean
#清理httpd的磁盘缓存的主程序文件
/usr/sbin/httpd
#httpd的主程序文件
/usr/sbin/httpd.event
#event模型的httpd的主程序文件,默认的httpd是prefork
/usr/sbin/httpd.worker
#worker模型的httpd的主程序文件
/usr/sbin/httxt2dbm
#一个数据库管理组件(为 RewriteMap 创建 dbm 文件。)
/usr/sbin/rotatelogs
#httpd自带的日志切割轮训脚本
/usr/sbin/suexec
#执行外部程序前切换用户,这是一个有SUID权限的主程序文件
/usr/share/doc/httpd-2.2.15
#文档路径,下面也是
/usr/share/doc/httpd-2.2.15/ABOUT_APACHE
/usr/share/doc/httpd-2.2.15/CHANGES
/usr/share/doc/httpd-2.2.15/LICENSE
/usr/share/doc/httpd-2.2.15/NOTICE
/usr/share/doc/httpd-2.2.15/README
/usr/share/doc/httpd-2.2.15/VERSIONING
/usr/share/man/man8/apachectl.8.gz
#man手册
/usr/share/man/man8/htcacheclean.8.gz
/usr/share/man/man8/httpd.8.gz
/usr/share/man/man8/rotatelogs.8.gz
/usr/share/man/man8/suexec.8.gz
/var/cache/mod_proxy
#负载均衡缓存路径
/var/lib/dav
/var/log/httpd
#日志文件路径
/var/run/httpd
#pid文件路径
/var/www
#站点资源文件跟路径
/var/www/cgi-bin
#cgi程序路径
/var/www/error
#
/var/www/error/HTTP_BAD_GATEWAY.html.var
/var/www/error/HTTP_BAD_REQUEST.html.var
/var/www/error/HTTP_FORBIDDEN.html.var
/var/www/error/HTTP_GONE.html.var
/var/www/error/HTTP_INTERNAL_SERVER_ERROR.html.var
/var/www/error/HTTP_LENGTH_REQUIRED.html.var
/var/www/error/HTTP_METHOD_NOT_ALLOWED.html.var
/var/www/error/HTTP_NOT_FOUND.html.var
/var/www/error/HTTP_NOT_IMPLEMENTED.html.var
/var/www/error/HTTP_PRECONDITION_FAILED.html.var
/var/www/error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
/var/www/error/HTTP_REQUEST_TIME_OUT.html.var
/var/www/error/HTTP_REQUEST_URI_TOO_LARGE.html.var
/var/www/error/HTTP_SERVICE_UNAVAILABLE.html.var
/var/www/error/HTTP_UNAUTHORIZED.html.var
/var/www/error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
/var/www/error/HTTP_VARIANT_ALSO_VARIES.html.var
/var/www/error/README
/var/www/error/contact.html.var
/var/www/error/include
/var/www/error/include/bottom.html
/var/www/error/include/spacer.html
/var/www/error/include/top.html
/var/www/error/noindex.html
/var/www/html
#默认的主页文件路径,可以自己定义主页放在这个目录下
/var/www/icons
#下面都是一些图片之类的(图标相关的)
/var/www/icons/README
/var/www/icons/README.html
/var/www/icons/a.gif
/var/www/icons/a.png
/var/www/icons/alert.black.gif
/var/www/icons/alert.black.png
/var/www/icons/alert.red.gif
/var/www/icons/alert.red.png
/var/www/icons/apache_pb.gif
/var/www/icons/apache_pb.png
/var/www/icons/apache_pb2.gif
/var/www/icons/apache_pb2.png
/var/www/icons/apache_pb2_ani.gif
/var/www/icons/back.gif
/var/www/icons/back.png
/var/www/icons/ball.gray.gif
/var/www/icons/ball.gray.png
/var/www/icons/ball.red.gif
/var/www/icons/ball.red.png
/var/www/icons/binary.gif
/var/www/icons/binary.png
/var/www/icons/binhex.gif
/var/www/icons/binhex.png
/var/www/icons/blank.gif
/var/www/icons/blank.png
/var/www/icons/bomb.gif
/var/www/icons/bomb.png
/var/www/icons/box1.gif
......#省略来很多图片
五、CentOS 7.x安装httpd版本以及目录结构说明
[root@www ~]# rpm -ql httpd
/etc/httpd
#根路径
/etc/httpd/conf
#总配置文件路径
/etc/httpd/conf.d
#子配置文件刘静
/etc/httpd/conf.d/README
/etc/httpd/conf.d/autoindex.conf
/etc/httpd/conf.d/userdir.conf
/etc/httpd/conf.d/welcome.conf
#默认欢迎页
/etc/httpd/conf.modules.d
#模块化配置文件路径
/etc/httpd/conf.modules.d/00-base.conf
/etc/httpd/conf.modules.d/00-dav.conf
/etc/httpd/conf.modules.d/00-lua.conf
/etc/httpd/conf.modules.d/00-mpm.conf
/etc/httpd/conf.modules.d/00-proxy.conf
/etc/httpd/conf.modules.d/00-systemd.conf
/etc/httpd/conf.modules.d/01-cgi.conf
/etc/httpd/conf/httpd.conf
#主配置文件
/etc/httpd/conf/magic
/etc/httpd/logs
/etc/httpd/modules
/etc/httpd/run
/etc/logrotate.d/httpd
/etc/sysconfig/htcacheclean
/etc/sysconfig/httpd
/run/httpd
/run/httpd/htcacheclean
#htacheclean程序运行pid文件路径
/usr/lib/systemd/system/htcacheclean.service
#htcacheclean程序的unit脚本
/usr/lib/systemd/system/httpd.service
#httpd程序的unit脚本
/usr/lib/tmpfiles.d/httpd.conf
/usr/lib64/httpd
/usr/lib64/httpd/modules
#模块文件路径
/usr/lib64/httpd/modules/mod_access_compat.so
/usr/lib64/httpd/modules/mod_actions.so
/usr/lib64/httpd/modules/mod_alias.so
/usr/lib64/httpd/modules/mod_allowmethods.so
/usr/lib64/httpd/modules/mod_asis.so
/usr/lib64/httpd/modules/mod_auth_basic.so
/usr/lib64/httpd/modules/mod_auth_digest.so
/usr/lib64/httpd/modules/mod_authn_anon.so
/usr/lib64/httpd/modules/mod_authn_core.so
/usr/lib64/httpd/modules/mod_authn_dbd.so
/usr/lib64/httpd/modules/mod_authn_dbm.so
......#省略了很多模块文件
/usr/libexec/initscripts/legacy-actions/httpd
/usr/libexec/initscripts/legacy-actions/httpd/configtest
/usr/libexec/initscripts/legacy-actions/httpd/graceful
/usr/sbin/apachectl
/usr/sbin/fcgistarter
/usr/sbin/htcacheclean
/usr/sbin/httpd
/usr/sbin/rotatelogs
/usr/sbin/suexec
/usr/share/doc/httpd-2.4.6
#文档路径
/usr/share/doc/httpd-2.4.6/ABOUT_APACHE
/usr/share/doc/httpd-2.4.6/CHANGES
/usr/share/doc/httpd-2.4.6/LICENSE
/usr/share/doc/httpd-2.4.6/NOTICE
/usr/share/doc/httpd-2.4.6/README
/usr/share/doc/httpd-2.4.6/VERSIONING
/usr/share/doc/httpd-2.4.6/httpd-dav.conf
/usr/share/doc/httpd-2.4.6/httpd-default.conf
/usr/share/doc/httpd-2.4.6/httpd-info.conf
/usr/share/doc/httpd-2.4.6/httpd-languages.conf
/usr/share/doc/httpd-2.4.6/httpd-manual.conf
/usr/share/doc/httpd-2.4.6/httpd-mpm.conf
/usr/share/doc/httpd-2.4.6/httpd-multilang-errordoc.conf
/usr/share/doc/httpd-2.4.6/httpd-vhosts.conf
/usr/share/doc/httpd-2.4.6/proxy-html.conf
/usr/share/httpd
/usr/share/httpd/error
/usr/share/httpd/error/HTTP_BAD_GATEWAY.html.var
/usr/share/httpd/error/HTTP_BAD_REQUEST.html.var
/usr/share/httpd/error/HTTP_FORBIDDEN.html.var
/usr/share/httpd/error/HTTP_GONE.html.var
/usr/share/httpd/error/HTTP_INTERNAL_SERVER_ERROR.html.var
/usr/share/httpd/error/HTTP_LENGTH_REQUIRED.html.var
/usr/share/httpd/error/HTTP_METHOD_NOT_ALLOWED.html.var
/usr/share/httpd/error/HTTP_NOT_FOUND.html.var
/usr/share/httpd/error/HTTP_NOT_IMPLEMENTED.html.var
/usr/share/httpd/error/HTTP_PRECONDITION_FAILED.html.var
/usr/share/httpd/error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
/usr/share/httpd/error/HTTP_REQUEST_TIME_OUT.html.var
/usr/share/httpd/error/HTTP_REQUEST_URI_TOO_LARGE.html.var
/usr/share/httpd/error/HTTP_SERVICE_UNAVAILABLE.html.var
/usr/share/httpd/error/HTTP_UNAUTHORIZED.html.var
/usr/share/httpd/error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
/usr/share/httpd/error/HTTP_VARIANT_ALSO_VARIES.html.var
/usr/share/httpd/error/README
/usr/share/httpd/error/contact.html.var
/usr/share/httpd/error/include
/usr/share/httpd/error/include/bottom.html
/usr/share/httpd/error/include/spacer.html
/usr/share/httpd/error/include/top.html
/usr/share/httpd/icons
/usr/share/httpd/icons/README
/usr/share/httpd/icons/README.html
/usr/share/httpd/icons/a.gif
......#省略了很多图片文件
/usr/share/httpd/noindex
#下面是一些和样式设计有关系的
/usr/share/httpd/noindex/css
/usr/share/httpd/noindex/css/bootstrap-theme.min.css
/usr/share/httpd/noindex/css/bootstrap.min.css
/usr/share/httpd/noindex/css/fonts
/usr/share/httpd/noindex/css/fonts/Bold
/usr/share/httpd/noindex/css/fonts/Bold/OpenSans-Bold.eot
/usr/share/httpd/noindex/css/fonts/Bold/OpenSans-Bold.svg
/usr/share/httpd/noindex/css/fonts/Bold/OpenSans-Bold.ttf
/usr/share/httpd/noindex/css/fonts/Bold/OpenSans-Bold.woff
/usr/share/httpd/noindex/css/fonts/BoldItalic
/usr/share/httpd/noindex/css/fonts/BoldItalic/OpenSans-BoldItalic.eot
/usr/share/httpd/noindex/css/fonts/BoldItalic/OpenSans-BoldItalic.svg
/usr/share/httpd/noindex/css/fonts/BoldItalic/OpenSans-BoldItalic.ttf
/usr/share/httpd/noindex/css/fonts/BoldItalic/OpenSans-BoldItalic.woff
......#省略了一些样式文件
/usr/share/man/man8/apachectl.8.gz
/usr/share/man/man8/fcgistarter.8.gz
/usr/share/man/man8/htcacheclean.8.gz
/usr/share/man/man8/httpd.8.gz
/usr/share/man/man8/rotatelogs.8.gz
/usr/share/man/man8/suexec.8.gz
/var/cache/httpd #httpd缓存目录
/var/cache/httpd/proxy
#httpd负载均衡缓存路径
/var/lib/dav
/var/log/httpd
#日志文件路径
/var/www
#站点资源文件路径
/var/www/cgi-bin
#cgi程序路径
/var/www/html
#主页文件路径
最后
以上就是忧伤大树为你收集整理的httpd安装和目录结构介绍的全部内容,希望文章能够帮你解决httpd安装和目录结构介绍所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复