当前位置: > Linux教程 > Linux学习 >

YUM仓库和文件系统

时间:2020-05-30 17:37来源:linux.it.net.cn 作者:IT
YUM仓库和文件系统
 
1、自建yum仓库,分别为网络源和本地源
 
2、编译安装http2.4,实现可以正常访问,并将编译步骤和结果提交。
 
第一步,解包
第二步,开始编译
第三步:根据Makefile文件,构建应用程序
第四步:复制文件到相应路径
第五步 把程序目录导入至PATH环境变量中
第六步 启动程序
 
3、创建一个2G的文件系统,块大小为2048byte,预留1%可用空间,文件系统 ext4,卷标为TEST,要求此分区开机后自动挂载至/test目录,且默认有acl挂载选项
 
4、创建一个至少有两个PV组成的大小为20G的名为testvg的VG;要求PE大小 为16MB, 而后在卷组中创建大小为5G的逻辑卷testlv;挂载至/users目录
 
1、自建yum仓库,分别为网络源和本地源
[epel]
name=EPEL
baseurl=https://mirrors.aliyun.com/epel/$releasever/$basearch
enabled=1
gpgcheck=0
 
阿里源的yum仓库
 
[base]
name=CentOS
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=1
gpgkey=file://mnt/cdrom/PM-GPG-KEY-CentOS-7
 
本地源的yum仓库
 
2、编译安装http2.4,实现可以正常访问,并将编译步骤和结果提交。
 
第一步,解包
tar xvf httpd-2.4.43.tar.bz2
1
第二步,开始编译
./configure --prefix=/apps/httpd43  --enable-so
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
configure: 
configure: Configuring Apache Portable Runtime library...
configure: 
checking for APR... no
configure: error: APR not found.  Please read the documentation.
提示缺少APR
 
yum search apr-devel
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
========================================= N/S matched: apr-devel ==========================================
apr-devel.i686 : APR library development kit
apr-devel.x86_64 : APR library development kit
 
Name and summary matches only, use "search all" for everything.
找到缺失的APR文件
 
yum install apr-devel
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package apr-devel.x86_64 0:1.4.8-5.el7 will be installed
--> Finished Dependency Resolution
 
Dependencies Resolved
 
===========================================================================================================
 Package                   Arch                   Version                       Repository            Size
===========================================================================================================
Installing:
 apr-devel                 x86_64                 1.4.8-5.el7                   base                 188 k
 
Transaction Summary
===========================================================================================================
Install  1 Package
 
Total download size: 188 k
Installed size: 771 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : apr-devel-1.4.8-5.el7.x86_64                                                            1/1 
  Verifying  : apr-devel-1.4.8-5.el7.x86_64                                                            1/1 
 
Installed:
  apr-devel.x86_64 0:1.4.8-5.el7                                                                           
 
Complete!
安装APR-devel
 
./configure --prefix=/apps/httpd43  --enable-so
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
configure: 
configure: Configuring Apache Portable Runtime library...
configure: 
checking for APR... yes
  setting CC to "gcc"
  setting CPP to "gcc -E"
  setting CFLAGS to "  -pthread"
  setting CPPFLAGS to " -DLINUX -D_REENTRANT -D_GNU_SOURCE"
  setting LDFLAGS to " "
configure: 
configure: Configuring Apache Portable Runtime Utility library...
configure: 
checking for APR-util... no
configure: error: APR-util not found.  Please read the documentation.
再次执行,发现缺失APR-util文件
 
yum install apr-util-devel
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package apr-util-devel.x86_64 0:1.5.2-6.el7 will be installed
--> Processing Dependency: openldap-devel(x86-64) for package: apr-util-devel-1.5.2-6.el7.x86_64
--> Processing Dependency: libdb-devel(x86-64) for package: apr-util-devel-1.5.2-6.el7.x86_64
--> Processing Dependency: expat-devel(x86-64) for package: apr-util-devel-1.5.2-6.el7.x86_64
--> Running transaction check
---> Package expat-devel.x86_64 0:2.1.0-11.el7 will be installed
--> Processing Dependency: expat = 2.1.0-11.el7 for package: expat-devel-2.1.0-11.el7.x86_64
---> Package libdb-devel.x86_64 0:5.3.21-25.el7 will be installed
---> Package openldap-devel.x86_64 0:2.4.44-21.el7_6 will be installed
--> Processing Dependency: cyrus-sasl-devel(x86-64) for package: openldap-devel-2.4.44-21.el7_6.x86_64
--> Running transaction check
---> Package cyrus-sasl-devel.x86_64 0:2.1.26-23.el7 will be installed
---> Package expat.x86_64 0:2.1.0-10.el7_3 will be updated
---> Package expat.x86_64 0:2.1.0-11.el7 will be an update
--> Finished Dependency Resolution
 
Dependencies Resolved
 
===========================================================================================================
 Package                       Arch                Version                         Repository         Size
===========================================================================================================
Installing:
 apr-util-devel                x86_64              1.5.2-6.el7                     base               76 k
Installing for dependencies:
 cyrus-sasl-devel              x86_64              2.1.26-23.el7                   base              310 k
 expat-devel                   x86_64              2.1.0-11.el7                    base               57 k
 libdb-devel                   x86_64              5.3.21-25.el7                   base               39 k
 openldap-devel                x86_64              2.4.44-21.el7_6                 base              804 k
Updating for dependencies:
 expat                         x86_64              2.1.0-11.el7                    base               81 k
 
Transaction Summary
===========================================================================================================
Install  1 Package  (+4 Dependent packages)
Upgrade             ( 1 Dependent package)
 
Total download size: 1.3 M
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for base
(1/6): apr-util-devel-1.5.2-6.el7.x86_64.rpm                                        |  76 kB  00:00:00     
(2/6): cyrus-sasl-devel-2.1.26-23.el7.x86_64.rpm                                    | 310 kB  00:00:00     
(3/6): expat-2.1.0-11.el7.x86_64.rpm                                                |  81 kB  00:00:00     
(4/6): expat-devel-2.1.0-11.el7.x86_64.rpm                                          |  57 kB  00:00:00     
(5/6): libdb-devel-5.3.21-25.el7.x86_64.rpm                                         |  39 kB  00:00:00     
(6/6): openldap-devel-2.4.44-21.el7_6.x86_64.rpm                                    | 804 kB  00:00:00     
-----------------------------------------------------------------------------------------------------------
Total                                                                      1.9 MB/s | 1.3 MB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : cyrus-sasl-devel-2.1.26-23.el7.x86_64                                                   1/7 
  Installing : openldap-devel-2.4.44-21.el7_6.x86_64                                                   2/7 
  Installing : libdb-devel-5.3.21-25.el7.x86_64                                                        3/7 
  Updating   : expat-2.1.0-11.el7.x86_64                                                               4/7 
  Installing : expat-devel-2.1.0-11.el7.x86_64                                                         5/7 
  Installing : apr-util-devel-1.5.2-6.el7.x86_64                                                       6/7 
  Cleanup    : expat-2.1.0-10.el7_3.x86_64                                                             7/7 
  Verifying  : apr-util-devel-1.5.2-6.el7.x86_64                                                       1/7 
  Verifying  : expat-2.1.0-11.el7.x86_64                                                               2/7 
  Verifying  : libdb-devel-5.3.21-25.el7.x86_64                                                        3/7 
  Verifying  : expat-devel-2.1.0-11.el7.x86_64                                                         4/7 
  Verifying  : openldap-devel-2.4.44-21.el7_6.x86_64                                                   5/7 
  Verifying  : cyrus-sasl-devel-2.1.26-23.el7.x86_64                                                   6/7 
  Verifying  : expat-2.1.0-10.el7_3.x86_64                                                             7/7 
 
Installed:
  apr-util-devel.x86_64 0:1.5.2-6.el7                                                                      
 
Dependency Installed:
  cyrus-sasl-devel.x86_64 0:2.1.26-23.el7              expat-devel.x86_64 0:2.1.0-11.el7                   
  libdb-devel.x86_64 0:5.3.21-25.el7                   openldap-devel.x86_64 0:2.4.44-21.el7_6             
 
Dependency Updated:
  expat.x86_64 0:2.1.0-11.el7                                                                              
 
Complete!
 
安装apr-util-devel
 
 
 
./configure --prefix=/apps/httpd43  --enable-so
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
configure: 
configure: Configuring Apache Portable Runtime library...
configure: 
checking for APR... yes
  setting CC to "gcc"
  setting CPP to "gcc -E"
  setting CFLAGS to "  -pthread"
  setting CPPFLAGS to " -DLINUX -D_REENTRANT -D_GNU_SOURCE"
  setting LDFLAGS to " "
configure: 
configure: Configuring Apache Portable Runtime Utility library...
configure: 
checking for APR-util... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for gcc option to accept ISO C99... -std=gnu99
checking for pcre-config... false
configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
再次执行,发现缺失pcre文件
 
yum install pcre-devel
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package pcre-devel.x86_64 0:8.32-17.el7 will be installed
--> Finished Dependency Resolution
 
Dependencies Resolved
 
===========================================================================================================
 Package                    Arch                   Version                      Repository            Size
===========================================================================================================
Installing:
 pcre-devel                 x86_64                 8.32-17.el7                  base                 480 k
 
Transaction Summary
===========================================================================================================
Install  1 Package
 
Total download size: 480 k
Installed size: 1.4 M
Is this ok [y/d/N]: y
Downloading packages:
pcre-devel-8.32-17.el7.x86_64.rpm                                                   | 480 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : pcre-devel-8.32-17.el7.x86_64                                                           1/1 
  Verifying  : pcre-devel-8.32-17.el7.x86_64                                                           1/1 
 
Installed:
  pcre-devel.x86_64 0:8.32-17.el7                                                                          
 
Complete!
安装pcre-devel
 
 
 ./configure --prefix=/apps/httpd43  --enable-so
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
configure: 
configure: Configuring Apache Portable Runtime library...
configure: 
checking for APR... yes
  setting CC to "gcc"
  setting CPP to "gcc -E"
  setting CFLAGS to "  -pthread"
  setting CPPFLAGS to " -DLINUX -D_REENTRANT -D_GNU_SOURCE"
  setting LDFLAGS to " "
configure: 
configure: Configuring Apache Portable Runtime Utility library...
configure: 
checking for APR-util... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for gcc option to accept ISO C99... -std=gnu99
checking for pcre-config... /usr/bin/pcre-config
configure: Using external PCRE library from /usr/bin/pcre-config
  setting PCRE_INCLUDES to ""
  setting PCRE_LIBS to "-lpcre"
configure: 
configure: Configuring Apache httpd...
configure: 
  setting INCLUDES to "-I."
  adding "-I$(top_srcdir)/os/$(OS_DIR)" to INCLUDES
  adding "-I$(top_srcdir)/include" to INCLUDES
  adding "-I/usr/include/apr-1" to INCLUDES
configure: 
configure: Applying OS-specific hints for httpd...
configure: 
  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to "1"
  forcing AP_NONBLOCK_WHEN_MULTI_LISTEN to "1"
checking for rm... /usr/bin/rm
checking for pkg-config... /usr/bin/pkg-config
checking for rsync... /usr/bin/rsync
checking for gawk... gawk
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for lynx... no
checking for links... no
checking for elinks... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for library containing strerror... none required
checking for APR version 1.3.0 or later... yes
checking for APR-util version 1.3.0 or later... yes
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking for strings.h... (cached) yes
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking sys/processor.h usability... no
checking sys/processor.h presence... no
checking for sys/processor.h... no
checking sys/sem.h usability... yes
checking sys/sem.h presence... yes
checking for sys/sem.h... yes
checking sys/sdt.h usability... no
checking sys/sdt.h presence... no
checking for sys/sdt.h... no
checking sys/loadavg.h usability... no
checking sys/loadavg.h presence... no
checking for sys/loadavg.h... no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for an ANSI C-conforming const... yes
checking for library containing sqrt... -lm
checking for library containing crypt... -lcrypt
checking for getpwnam... yes
checking for getgrnam... yes
checking for initgroups... yes
checking for bindprocessor... no
checking for prctl... yes
checking for timegm... yes
checking for getpgid... yes
checking for fopen64... yes
checking for getloadavg... yes
checking for void pointer length... no
checking for gettid()... yes
checking for tm_gmtoff in struct tm... yes
checking for sd_notify in -lsystemd-daemon... no
checking whether to enable mod_authn_file... shared
checking whether to enable mod_authn_dbm... shared (most)
checking whether to enable mod_authn_anon... shared (most)
checking whether to enable mod_authn_dbd... shared (most)
checking whether to enable mod_authn_socache... shared (most)
checking whether to enable mod_authn_core... shared
checking whether to enable mod_authz_host... shared
checking whether to enable mod_authz_groupfile... shared
checking whether to enable mod_authz_user... shared
checking whether to enable mod_authz_dbm... shared (most)
checking whether to enable mod_authz_owner... shared (most)
checking whether to enable mod_authz_dbd... shared (most)
checking whether to enable mod_authz_core... shared
checking whether to enable mod_authnz_ldap... checking dependencies
checking for ldap support in apr/apr-util... yes
  setting MOD_AUTHNZ_LDAP_LDADD to " -lldap_r  -llber"
checking whether to enable mod_authnz_ldap... shared (most)
checking whether to enable mod_authnz_fcgi... no
checking whether to enable mod_access_compat... shared
checking whether to enable mod_auth_basic... shared
checking whether to enable mod_auth_form... shared (most)
checking whether to enable mod_auth_digest... checking dependencies
checking whether to enable mod_auth_digest... shared (most)
checking whether to enable mod_allowmethods... shared (most)
  adding "-I$(top_srcdir)/modules/aaa" to INCLUDES
checking whether to enable mod_isapi... no
checking whether to enable mod_file_cache... shared (most)
checking whether to enable mod_cache... shared (most)
checking whether to enable mod_cache_disk... checking dependencies
checking whether to enable mod_cache_disk... shared (most)
checking whether to enable mod_cache_socache... shared (most)
checking whether to enable mod_socache_shmcb... shared (most)
checking whether to enable mod_socache_dbm... shared (most)
checking whether to enable mod_socache_memcache... shared (most)
checking whether to enable mod_socache_redis... shared (most)
checking whether to enable mod_socache_dc... no
  adding "-I$(top_srcdir)/modules/cache" to INCLUDES
  setting HTTPD_LDFLAGS to "-export-dynamic"
checking whether to enable mod_so... static
  setting AP_LIBS to "$(MOD_SO_LDADD)"
checking whether to enable mod_watchdog... checking dependencies
checking whether to enable mod_watchdog... shared (most)
checking whether to enable mod_macro... shared (most)
  adding "-I$(top_srcdir)/modules/core" to INCLUDES
checking whether to enable mod_dbd... shared (most)
  adding "-I$(top_srcdir)/modules/database" to INCLUDES
checking whether to enable mod_bucketeer... no
checking whether to enable mod_dumpio... shared (most)
checking whether to enable mod_echo... no
checking whether to enable mod_example_hooks... no
checking whether to enable mod_case_filter... no
checking whether to enable mod_case_filter_in... no
checking whether to enable mod_example_ipc... no
checking whether to enable mod_buffer... shared (most)
checking whether to enable mod_data... no
checking whether to enable mod_ratelimit... shared (most)
checking whether to enable mod_reqtimeout... shared
checking whether to enable mod_ext_filter... shared (most)
checking whether to enable mod_request... shared (most)
checking whether to enable mod_include... shared (most)
checking whether to enable mod_filter... shared
checking whether to enable mod_reflector... no
checking whether to enable mod_substitute... shared (most)
checking whether to enable mod_sed... checking dependencies
  setting MOD_SED_LDADD to "-export-symbols-regex sed_module"
checking whether to enable mod_sed... shared (most)
checking whether to enable mod_charset_lite... no
checking whether to enable mod_deflate... checking dependencies
checking for zlib location... not found
checking whether to enable mod_deflate... no (disabled)
checking whether to enable mod_xml2enc... no
checking whether to enable mod_proxy_html... no
checking whether to enable mod_brotli... checking dependencies
checking for Brotli library >= 0.6.0 via pkg-config... no
checking whether to enable mod_brotli... no (disabled)
  adding "-I$(top_srcdir)/modules/filters" to INCLUDES
checking whether to enable mod_http... static
  adding "$(MOD_HTTP_LDADD)" to AP_LIBS
checking whether to enable mod_mime... shared
checking whether to enable mod_ldap... checking dependencies
checking for ldap support in apr/apr-util... (cached) yes
  setting MOD_LDAP_LDADD to " -lldap_r  -llber"
checking whether to enable mod_ldap... shared (most)
  adding "-I$(top_srcdir)/modules/ldap" to INCLUDES
checking whether to enable mod_log_config... shared
checking whether to enable mod_log_debug... shared (most)
checking whether to enable mod_log_forensic... no
checking whether to enable mod_logio... shared (most)
  adding "-I$(top_srcdir)/modules/loggers" to INCLUDES
checking whether to enable mod_lua... no
  adding "-I$(top_srcdir)/modules/lua" to INCLUDES
checking whether to enable mod_env... shared
checking whether to enable mod_mime_magic... no
checking whether to enable mod_cern_meta... no
checking whether to enable mod_expires... shared (most)
checking whether to enable mod_headers... shared
checking whether to enable mod_ident... no
checking whether to enable mod_usertrack... no
checking whether to enable mod_unique_id... shared (most)
checking whether to enable mod_setenvif... shared
checking whether to enable mod_version... shared
checking whether to enable mod_remoteip... shared (most)
checking whether to enable mod_proxy... shared (most)
checking whether to enable mod_proxy_connect... checking dependencies
checking whether to enable mod_proxy_connect... shared (most)
checking whether to enable mod_proxy_ftp... checking dependencies
checking whether to enable mod_proxy_ftp... shared (most)
checking whether to enable mod_proxy_http... checking dependencies
checking whether to enable mod_proxy_http... shared (most)
checking whether to enable mod_proxy_fcgi... checking dependencies
checking whether to enable mod_proxy_fcgi... shared (most)
checking whether to enable mod_proxy_scgi... checking dependencies
checking whether to enable mod_proxy_scgi... shared (most)
checking whether to enable mod_proxy_uwsgi... checking dependencies
checking whether to enable mod_proxy_uwsgi... shared (most)
checking whether to enable mod_proxy_fdpass... checking dependencies
checking whether CMSG_DATA is declared... yes
checking whether to enable mod_proxy_fdpass... shared (most)
checking whether to enable mod_proxy_wstunnel... checking dependencies
checking whether to enable mod_proxy_wstunnel... shared (most)
checking whether to enable mod_proxy_ajp... checking dependencies
checking whether to enable mod_proxy_ajp... shared (most)
checking whether to enable mod_proxy_balancer... checking dependencies
checking whether to enable mod_proxy_balancer... shared (most)
checking whether to enable mod_proxy_express... checking dependencies
checking whether to enable mod_proxy_express... shared (most)
checking whether to enable mod_proxy_hcheck... checking dependencies
checking whether to enable mod_proxy_hcheck... shared (most)
  adding "-I$(top_srcdir)/modules/proxy" to INCLUDES
  adding "-I$(top_srcdir)/modules/http2" to INCLUDES
checking whether to enable mod_session... shared (most)
checking whether to enable mod_session_cookie... checking dependencies
checking whether to enable mod_session_cookie... shared (most)
checking whether to enable mod_session_crypto... checking dependencies
checking whether to enable mod_session_crypto... shared (most)
checking whether to enable mod_session_dbd... checking dependencies
checking whether to enable mod_session_dbd... shared (most)
  adding "-I$(top_srcdir)/modules/session" to INCLUDES
checking whether to enable mod_slotmem_shm... shared (most)
checking whether to enable mod_slotmem_plain... no
checking whether to enable mod_ssl... checking dependencies
checking for OpenSSL... checking for user-provided OpenSSL base directory... none
checking for OpenSSL version >= 0.9.8a... FAILED
configure: WARNING: OpenSSL version is too old
no
checking whether to enable mod_ssl... no (disabled)
  adding "-I$(top_srcdir)/modules/ssl" to INCLUDES
checking whether to enable mod_optional_hook_export... no
checking whether to enable mod_optional_hook_import... no
checking whether to enable mod_optional_fn_import... no
checking whether to enable mod_optional_fn_export... no
checking whether to enable mod_dialup... no
  adding "-I$(top_srcdir)/modules/test" to INCLUDES
checking for target platform... unix
checking for rlim_t... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for sys/sem.h... (cached) yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking for setsid... yes
checking for killpg... yes
checking bstring.h usability... no
checking bstring.h presence... no
checking for bstring.h... no
checking for unistd.h... (cached) yes
checking for syslog... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking for times... yes
  adding "-I$(top_srcdir)/server" to INCLUDES
checking whether APR supports thread-safe pollsets... checking for kqueue... no
checking for port_create... no
checking for epoll_create... yes
yes
checking if event MPM supports this platform... no - APR skiplist is not available
checking if mpmt_os2 MPM supports this platform... no
checking if prefork MPM supports this platform... yes
checking if WinNT MPM supports this platform... no
checking if worker MPM supports this platform... yes
checking whether to enable mod_http2... checking dependencies
checking for OpenSSL... (cached) no
checking for nghttp2... checking for user-provided nghttp2 base directory... none
checking for pkg-config along ... checking for nghttp2 version >= 1.2.1... FAILED
configure: WARNING: nghttp2 version is too old
no
checking whether to enable mod_http2... no (disabled)
checking whether to enable mod_proxy_http2... no
  adding "-I$(top_srcdir)/modules/md" to INCLUDES
checking whether to enable mod_md... checking dependencies
checking for OpenSSL... (cached) no
configure: WARNING: libssl (or compatible) not found
checking for jansson... checking for user-provided jansson base directory... none
checking for pkg-config along ... FAILED
no
configure: WARNING: libjansson not found
checking for curl... checking for user-provided curl base directory... none
checking for pkg-config along ... checking curl/curl.h usability... no
checking curl/curl.h presence... no
checking for curl/curl.h... no
checking for curl version >= 7.50... FAILED
no
configure: WARNING: libcurl not found
checking for arc4random_buf... no
checking whether to enable mod_md... no (disabled)
checking whether to enable mod_lbmethod_byrequests... checking dependencies
checking whether to enable mod_lbmethod_byrequests... shared
checking whether to enable mod_lbmethod_bytraffic... checking dependencies
checking whether to enable mod_lbmethod_bytraffic... shared
checking whether to enable mod_lbmethod_bybusyness... checking dependencies
checking whether to enable mod_lbmethod_bybusyness... shared
checking whether to enable mod_lbmethod_heartbeat... checking dependencies
checking whether to enable mod_lbmethod_heartbeat... shared
checking which MPM to use by default... worker - event is not supported
checking for pthread_kill... yes
checking whether to enable mod_unixd... shared
checking whether to enable mod_privileges... no
checking whether to enable mod_systemd... no
  adding "-I$(top_srcdir)/modules/arch/unix" to INCLUDES
checking whether to enable mod_heartbeat... no
checking whether to enable mod_heartmonitor... no
checking whether to enable mod_dav... shared (most)
  adding "-I$(top_srcdir)/modules/dav/main" to INCLUDES
checking whether to enable mod_status... shared
checking whether to enable mod_autoindex... shared
checking whether to enable mod_asis... no
checking whether to enable mod_info... shared (most)
checking whether to enable mod_suexec... no
checking whether to enable mod_cgid... checking dependencies
checking whether to enable mod_cgid... shared (most)
checking whether to enable mod_cgi... no
  adding "-I$(top_srcdir)/modules/generators" to INCLUDES
checking whether to enable mod_dav_fs... checking dependencies
checking whether to enable mod_dav_fs... shared
checking whether to enable mod_dav_lock... no
checking for extra modules... none
checking whether to enable mod_vhost_alias... shared (most)
checking whether to enable mod_negotiation... shared (most)
checking whether to enable mod_dir... shared
checking whether to enable mod_imagemap... no
checking whether to enable mod_actions... shared (most)
checking whether to enable mod_speling... shared (most)
checking whether to enable mod_userdir... shared (most)
checking whether to enable mod_alias... shared
checking whether to enable mod_rewrite... shared (most)
  adding "-I$(top_srcdir)/modules/mappers" to INCLUDES
configure: 
configure: Restore user-defined environment settings...
configure: 
  restoring CPPFLAGS to ""
  setting EXTRA_CPPFLAGS to " -DLINUX -D_REENTRANT -D_GNU_SOURCE"
  restoring CFLAGS to ""
  setting EXTRA_CFLAGS to "  -pthread"
  restoring CXXFLAGS to ""
  setting EXTRA_CXXFLAGS to ""
  restoring LDFLAGS to ""
  setting EXTRA_LDFLAGS to " "
  restoring LIBS to ""
  setting EXTRA_LIBS to ""
  restoring INCLUDES to ""
  setting EXTRA_INCLUDES to "-I. -I$(top_srcdir)/os/$(OS_DIR) -I$(top_srcdir)/include -I/usr/include/apr-1 -I$(top_srcdir)/modules/aaa -I$(top_srcdir)/modules/cache -I$(top_srcdir)/modules/core -I$(top_srcdir)/modules/database -I$(top_srcdir)/modules/filters -I$(top_srcdir)/modules/ldap -I$(top_srcdir)/modules/loggers -I$(top_srcdir)/modules/lua -I$(top_srcdir)/modules/proxy -I$(top_srcdir)/modules/http2 -I$(top_srcdir)/modules/session -I$(top_srcdir)/modules/ssl -I$(top_srcdir)/modules/test -I$(top_srcdir)/server -I$(top_srcdir)/modules/md -I$(top_srcdir)/modules/arch/unix -I$(top_srcdir)/modules/dav/main -I$(top_srcdir)/modules/generators -I$(top_srcdir)/modules/mappers"
configure: 
configure: Construct makefiles and header files...
configure: 
configure: creating config_vars.mk
configure: creating ./config.status
creating modules/aaa/Makefile
creating modules/arch/win32/Makefile
creating modules/cache/Makefile
creating modules/core/Makefile
creating modules/database/Makefile
creating modules/debugging/Makefile
creating modules/echo/Makefile
creating modules/examples/Makefile
creating modules/experimental/Makefile
creating modules/filters/Makefile
creating modules/http/Makefile
creating modules/ldap/Makefile
creating modules/loggers/Makefile
creating modules/lua/Makefile
creating modules/metadata/Makefile
creating modules/proxy/Makefile
creating modules/session/Makefile
creating modules/slotmem/Makefile
creating modules/ssl/Makefile
creating modules/test/Makefile
creating os/unix/Makefile
creating modules/http2/Makefile
creating modules/md/Makefile
creating modules/proxy/balancers/Makefile
creating server/mpm/Makefile
creating server/mpm/worker/Makefile
creating modules/arch/unix/Makefile
creating modules/cluster/Makefile
creating modules/dav/main/Makefile
creating modules/generators/Makefile
creating modules/dav/fs/Makefile
creating modules/dav/lock/Makefile
creating modules/mappers/Makefile
creating Makefile
creating modules/Makefile
creating srclib/Makefile
creating os/Makefile
creating server/Makefile
creating support/Makefile
creating test/Makefile
config.status: creating docs/conf/httpd.conf
config.status: creating docs/conf/extra/httpd-autoindex.conf
config.status: creating docs/conf/extra/httpd-dav.conf
config.status: creating docs/conf/extra/httpd-default.conf
config.status: creating docs/conf/extra/httpd-info.conf
config.status: creating docs/conf/extra/httpd-languages.conf
config.status: creating docs/conf/extra/httpd-manual.conf
config.status: creating docs/conf/extra/httpd-mpm.conf
config.status: creating docs/conf/extra/httpd-multilang-errordoc.conf
config.status: creating docs/conf/extra/httpd-ssl.conf
config.status: creating docs/conf/extra/httpd-userdir.conf
config.status: creating docs/conf/extra/httpd-vhosts.conf
config.status: creating docs/conf/extra/proxy-html.conf
config.status: creating include/ap_config_layout.h
config.status: creating support/apxs
config.status: creating support/apachectl
config.status: creating support/dbmmanage
config.status: creating support/envvars-std
config.status: creating support/log_server_status
config.status: creating support/logresolve.pl
config.status: creating support/phf_abuse_log.cgi
config.status: creating support/split-logfile
config.status: creating build/rules.mk
config.status: creating build/pkg/pkginfo
config.status: creating build/config_vars.sh
config.status: creating include/ap_config_auto.h
config.status: include/ap_config_auto.h is unchanged
config.status: executing default commands
configure: summary of build options:
 
    Server Version: 2.4.43
    Install prefix: /apps/httpd43
    C compiler:     gcc -std=gnu99
    CFLAGS:           -pthread  
    CPPFLAGS:        -DLINUX -D_REENTRANT -D_GNU_SOURCE  
    LDFLAGS:           
    LIBS:             
    C preprocessor: gcc -E
 
编译成功
 
 
 
 
第三步:根据Makefile文件,构建应用程序
make
 
第四步:复制文件到相应路径
make install
Making install in srclib
make[1]: Entering directory `/data/httpd-2.4.43/srclib'
make[2]: Entering directory `/data/httpd-2.4.43/srclib'
make[2]: Leaving directory `/data/httpd-2.4.43/srclib'
make[1]: Leaving directory `/data/httpd-2.4.43/srclib'
Making install in os
make[1]: Entering directory `/data/httpd-2.4.43/os'
Making install in unix
make[2]: Entering directory `/data/httpd-2.4.43/os/unix'
make[3]: Entering directory `/data/httpd-2.4.43/os/unix'
make[3]: Leaving directory `/data/httpd-2.4.43/os/unix'
make[2]: Leaving directory `/data/httpd-2.4.43/os/unix'
make[2]: Entering directory `/data/httpd-2.4.43/os'
make[2]: Leaving directory `/data/httpd-2.4.43/os'
make[1]: Leaving directory `/data/httpd-2.4.43/os'
Making install in server
make[1]: Entering directory `/data/httpd-2.4.43/server'
Making install in mpm
make[2]: Entering directory `/data/httpd-2.4.43/server/mpm'
Making install in worker
make[3]: Entering directory `/data/httpd-2.4.43/server/mpm/worker'
make[4]: Entering directory `/data/httpd-2.4.43/server/mpm/worker'
mkdir /apps
mkdir /apps/httpd43
mkdir /apps/httpd43/modules
make[4]: Leaving directory `/data/httpd-2.4.43/server/mpm/worker'
make[3]: Leaving directory `/data/httpd-2.4.43/server/mpm/worker'
make[3]: Entering directory `/data/httpd-2.4.43/server/mpm'
make[3]: Leaving directory `/data/httpd-2.4.43/server/mpm'
make[2]: Leaving directory `/data/httpd-2.4.43/server/mpm'
make[2]: Entering directory `/data/httpd-2.4.43/server'
make[2]: Leaving directory `/data/httpd-2.4.43/server'
make[1]: Leaving directory `/data/httpd-2.4.43/server'
Making install in modules
make[1]: Entering directory `/data/httpd-2.4.43/modules'
Making install in aaa
make[2]: Entering directory `/data/httpd-2.4.43/modules/aaa'
make[3]: Entering directory `/data/httpd-2.4.43/modules/aaa'
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_authn_file.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_authn_dbm.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_authn_anon.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_authn_dbd.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_authn_socache.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_authn_core.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_authz_host.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_authz_groupfile.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_authz_user.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_authz_dbm.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_authz_owner.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_authz_dbd.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_authz_core.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_authnz_ldap.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_access_compat.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_auth_basic.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_auth_form.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_auth_digest.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_allowmethods.la /apps/httpd43/modules/
make[3]: Leaving directory `/data/httpd-2.4.43/modules/aaa'
make[2]: Leaving directory `/data/httpd-2.4.43/modules/aaa'
Making install in cache
make[2]: Entering directory `/data/httpd-2.4.43/modules/cache'
make[3]: Entering directory `/data/httpd-2.4.43/modules/cache'
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_file_cache.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_cache.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_cache_disk.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_cache_socache.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_socache_shmcb.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_socache_dbm.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_socache_memcache.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_socache_redis.la /apps/httpd43/modules/
make[3]: Leaving directory `/data/httpd-2.4.43/modules/cache'
make[2]: Leaving directory `/data/httpd-2.4.43/modules/cache'
Making install in core
make[2]: Entering directory `/data/httpd-2.4.43/modules/core'
make[3]: Entering directory `/data/httpd-2.4.43/modules/core'
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_watchdog.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_macro.la /apps/httpd43/modules/
make[3]: Leaving directory `/data/httpd-2.4.43/modules/core'
make[2]: Leaving directory `/data/httpd-2.4.43/modules/core'
Making install in database
make[2]: Entering directory `/data/httpd-2.4.43/modules/database'
make[3]: Entering directory `/data/httpd-2.4.43/modules/database'
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_dbd.la /apps/httpd43/modules/
make[3]: Leaving directory `/data/httpd-2.4.43/modules/database'
make[2]: Leaving directory `/data/httpd-2.4.43/modules/database'
Making install in debugging
make[2]: Entering directory `/data/httpd-2.4.43/modules/debugging'
make[3]: Entering directory `/data/httpd-2.4.43/modules/debugging'
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_dumpio.la /apps/httpd43/modules/
make[3]: Leaving directory `/data/httpd-2.4.43/modules/debugging'
make[2]: Leaving directory `/data/httpd-2.4.43/modules/debugging'
Making install in filters
make[2]: Entering directory `/data/httpd-2.4.43/modules/filters'
make[3]: Entering directory `/data/httpd-2.4.43/modules/filters'
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_buffer.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_ratelimit.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_reqtimeout.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_ext_filter.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_request.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_include.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_filter.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_substitute.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_sed.la /apps/httpd43/modules/
make[3]: Leaving directory `/data/httpd-2.4.43/modules/filters'
make[2]: Leaving directory `/data/httpd-2.4.43/modules/filters'
Making install in http
make[2]: Entering directory `/data/httpd-2.4.43/modules/http'
make[3]: Entering directory `/data/httpd-2.4.43/modules/http'
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_mime.la /apps/httpd43/modules/
make[3]: Leaving directory `/data/httpd-2.4.43/modules/http'
make[2]: Leaving directory `/data/httpd-2.4.43/modules/http'
Making install in ldap
make[2]: Entering directory `/data/httpd-2.4.43/modules/ldap'
make[3]: Entering directory `/data/httpd-2.4.43/modules/ldap'
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_ldap.la /apps/httpd43/modules/
make[3]: Leaving directory `/data/httpd-2.4.43/modules/ldap'
make[2]: Leaving directory `/data/httpd-2.4.43/modules/ldap'
Making install in loggers
make[2]: Entering directory `/data/httpd-2.4.43/modules/loggers'
make[3]: Entering directory `/data/httpd-2.4.43/modules/loggers'
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_log_config.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_log_debug.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_logio.la /apps/httpd43/modules/
make[3]: Leaving directory `/data/httpd-2.4.43/modules/loggers'
make[2]: Leaving directory `/data/httpd-2.4.43/modules/loggers'
Making install in metadata
make[2]: Entering directory `/data/httpd-2.4.43/modules/metadata'
make[3]: Entering directory `/data/httpd-2.4.43/modules/metadata'
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_env.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_expires.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_headers.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_unique_id.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_setenvif.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_version.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_remoteip.la /apps/httpd43/modules/
make[3]: Leaving directory `/data/httpd-2.4.43/modules/metadata'
make[2]: Leaving directory `/data/httpd-2.4.43/modules/metadata'
Making install in proxy
make[2]: Entering directory `/data/httpd-2.4.43/modules/proxy'
make[3]: Entering directory `/data/httpd-2.4.43/modules/proxy'
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_proxy.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_proxy_connect.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_proxy_ftp.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_proxy_http.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_proxy_fcgi.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_proxy_scgi.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_proxy_uwsgi.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_proxy_fdpass.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_proxy_wstunnel.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_proxy_ajp.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_proxy_balancer.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_proxy_express.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_proxy_hcheck.la /apps/httpd43/modules/
make[3]: Leaving directory `/data/httpd-2.4.43/modules/proxy'
make[2]: Leaving directory `/data/httpd-2.4.43/modules/proxy'
Making install in session
make[2]: Entering directory `/data/httpd-2.4.43/modules/session'
make[3]: Entering directory `/data/httpd-2.4.43/modules/session'
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_session.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_session_cookie.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_session_crypto.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_session_dbd.la /apps/httpd43/modules/
make[3]: Leaving directory `/data/httpd-2.4.43/modules/session'
make[2]: Leaving directory `/data/httpd-2.4.43/modules/session'
Making install in slotmem
make[2]: Entering directory `/data/httpd-2.4.43/modules/slotmem'
make[3]: Entering directory `/data/httpd-2.4.43/modules/slotmem'
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_slotmem_shm.la /apps/httpd43/modules/
make[3]: Leaving directory `/data/httpd-2.4.43/modules/slotmem'
make[2]: Leaving directory `/data/httpd-2.4.43/modules/slotmem'
Making install in proxy/balancers
make[2]: Entering directory `/data/httpd-2.4.43/modules/proxy/balancers'
make[3]: Entering directory `/data/httpd-2.4.43/modules/proxy/balancers'
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_lbmethod_byrequests.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_lbmethod_bytraffic.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_lbmethod_bybusyness.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_lbmethod_heartbeat.la /apps/httpd43/modules/
make[3]: Leaving directory `/data/httpd-2.4.43/modules/proxy/balancers'
make[2]: Leaving directory `/data/httpd-2.4.43/modules/proxy/balancers'
Making install in arch/unix
make[2]: Entering directory `/data/httpd-2.4.43/modules/arch/unix'
make[3]: Entering directory `/data/httpd-2.4.43/modules/arch/unix'
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_unixd.la /apps/httpd43/modules/
make[3]: Leaving directory `/data/httpd-2.4.43/modules/arch/unix'
make[2]: Leaving directory `/data/httpd-2.4.43/modules/arch/unix'
Making install in dav/main
make[2]: Entering directory `/data/httpd-2.4.43/modules/dav/main'
make[3]: Entering directory `/data/httpd-2.4.43/modules/dav/main'
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_dav.la /apps/httpd43/modules/
make[3]: Leaving directory `/data/httpd-2.4.43/modules/dav/main'
make[2]: Leaving directory `/data/httpd-2.4.43/modules/dav/main'
Making install in generators
make[2]: Entering directory `/data/httpd-2.4.43/modules/generators'
make[3]: Entering directory `/data/httpd-2.4.43/modules/generators'
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_status.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_autoindex.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_info.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_cgid.la /apps/httpd43/modules/
make[3]: Leaving directory `/data/httpd-2.4.43/modules/generators'
make[2]: Leaving directory `/data/httpd-2.4.43/modules/generators'
Making install in dav/fs
make[2]: Entering directory `/data/httpd-2.4.43/modules/dav/fs'
make[3]: Entering directory `/data/httpd-2.4.43/modules/dav/fs'
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_dav_fs.la /apps/httpd43/modules/
make[3]: Leaving directory `/data/httpd-2.4.43/modules/dav/fs'
make[2]: Leaving directory `/data/httpd-2.4.43/modules/dav/fs'
Making install in mappers
make[2]: Entering directory `/data/httpd-2.4.43/modules/mappers'
make[3]: Entering directory `/data/httpd-2.4.43/modules/mappers'
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_vhost_alias.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_negotiation.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_dir.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_actions.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_speling.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_userdir.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_alias.la /apps/httpd43/modules/
/usr/lib64/apr-1/build/libtool --silent --mode=install install mod_rewrite.la /apps/httpd43/modules/
make[3]: Leaving directory `/data/httpd-2.4.43/modules/mappers'
make[2]: Leaving directory `/data/httpd-2.4.43/modules/mappers'
make[2]: Entering directory `/data/httpd-2.4.43/modules'
make[2]: Leaving directory `/data/httpd-2.4.43/modules'
make[1]: Leaving directory `/data/httpd-2.4.43/modules'
Making install in support
make[1]: Entering directory `/data/httpd-2.4.43/support'
make[2]: Entering directory `/data/httpd-2.4.43/support'
mkdir /apps/httpd43/bin
make[2]: Leaving directory `/data/httpd-2.4.43/support'
make[1]: Leaving directory `/data/httpd-2.4.43/support'
make[1]: Entering directory `/data/httpd-2.4.43'
 
make[2]: Entering directory `/data/httpd-2.4.43/os'
make[3]: Entering directory `/data/httpd-2.4.43/os/unix'
make[3]: Leaving directory `/data/httpd-2.4.43/os/unix'
make[2]: Leaving directory `/data/httpd-2.4.43/os'
make[2]: Entering directory `/data/httpd-2.4.43/server'
make[3]: Entering directory `/data/httpd-2.4.43/server/mpm'
make[4]: Entering directory `/data/httpd-2.4.43/server/mpm/worker'
make[4]: Leaving directory `/data/httpd-2.4.43/server/mpm/worker'
make[3]: Leaving directory `/data/httpd-2.4.43/server/mpm'
make[2]: Leaving directory `/data/httpd-2.4.43/server'
make[2]: Entering directory `/data/httpd-2.4.43/modules'
make[3]: Entering directory `/data/httpd-2.4.43/modules/aaa'
Building shared: mod_authn_file.la mod_authn_dbm.la mod_authn_anon.la mod_authn_dbd.la mod_authn_socache.la mod_authn_core.la mod_authz_host.la mod_authz_groupfile.la mod_authz_user.la mod_authz_dbm.la mod_authz_owner.la mod_authz_dbd.la mod_authz_core.la mod_authnz_ldap.la mod_access_compat.la mod_auth_basic.la mod_auth_form.la mod_auth_digest.la mod_allowmethods.la
make[4]: Entering directory `/data/httpd-2.4.43/modules/aaa'
make[4]: Nothing to be done for `local-shared-build'.
make[4]: Leaving directory `/data/httpd-2.4.43/modules/aaa'
make[3]: Leaving directory `/data/httpd-2.4.43/modules/aaa'
make[3]: Entering directory `/data/httpd-2.4.43/modules/cache'
Building shared: mod_file_cache.la mod_cache.la mod_cache_disk.la mod_cache_socache.la mod_socache_shmcb.la mod_socache_dbm.la mod_socache_memcache.la mod_socache_redis.la
make[4]: Entering directory `/data/httpd-2.4.43/modules/cache'
make[4]: Nothing to be done for `local-shared-build'.
make[4]: Leaving directory `/data/httpd-2.4.43/modules/cache'
make[3]: Leaving directory `/data/httpd-2.4.43/modules/cache'
make[3]: Entering directory `/data/httpd-2.4.43/modules/core'
Building shared: mod_watchdog.la mod_macro.la
make[4]: Entering directory `/data/httpd-2.4.43/modules/core'
make[4]: Nothing to be done for `local-shared-build'.
make[4]: Leaving directory `/data/httpd-2.4.43/modules/core'
make[3]: Leaving directory `/data/httpd-2.4.43/modules/core'
make[3]: Entering directory `/data/httpd-2.4.43/modules/database'
Building shared: mod_dbd.la
make[4]: Entering directory `/data/httpd-2.4.43/modules/database'
make[4]: Nothing to be done for `local-shared-build'.
make[4]: Leaving directory `/data/httpd-2.4.43/modules/database'
make[3]: Leaving directory `/data/httpd-2.4.43/modules/database'
make[3]: Entering directory `/data/httpd-2.4.43/modules/debugging'
Building shared: mod_dumpio.la
make[4]: Entering directory `/data/httpd-2.4.43/modules/debugging'
make[4]: Nothing to be done for `local-shared-build'.
make[4]: Leaving directory `/data/httpd-2.4.43/modules/debugging'
make[3]: Leaving directory `/data/httpd-2.4.43/modules/debugging'
make[3]: Entering directory `/data/httpd-2.4.43/modules/filters'
Building shared: mod_buffer.la mod_ratelimit.la mod_reqtimeout.la mod_ext_filter.la mod_request.la mod_include.la mod_filter.la mod_substitute.la mod_sed.la
make[4]: Entering directory `/data/httpd-2.4.43/modules/filters'
make[4]: Nothing to be done for `local-shared-build'.
make[4]: Leaving directory `/data/httpd-2.4.43/modules/filters'
make[3]: Leaving directory `/data/httpd-2.4.43/modules/filters'
make[3]: Entering directory `/data/httpd-2.4.43/modules/http'
Building shared: mod_mime.la
make[4]: Entering directory `/data/httpd-2.4.43/modules/http'
make[4]: Nothing to be done for `local-shared-build'.
make[4]: Leaving directory `/data/httpd-2.4.43/modules/http'
make[3]: Leaving directory `/data/httpd-2.4.43/modules/http'
make[3]: Entering directory `/data/httpd-2.4.43/modules/ldap'
Building shared: mod_ldap.la
make[4]: Entering directory `/data/httpd-2.4.43/modules/ldap'
make[4]: Nothing to be done for `local-shared-build'.
make[4]: Leaving directory `/data/httpd-2.4.43/modules/ldap'
make[3]: Leaving directory `/data/httpd-2.4.43/modules/ldap'
make[3]: Entering directory `/data/httpd-2.4.43/modules/loggers'
Building shared: mod_log_config.la mod_log_debug.la mod_logio.la
make[4]: Entering directory `/data/httpd-2.4.43/modules/loggers'
make[4]: Nothing to be done for `local-shared-build'.
make[4]: Leaving directory `/data/httpd-2.4.43/modules/loggers'
make[3]: Leaving directory `/data/httpd-2.4.43/modules/loggers'
make[3]: Entering directory `/data/httpd-2.4.43/modules/metadata'
Building shared: mod_env.la mod_expires.la mod_headers.la mod_unique_id.la mod_setenvif.la mod_version.la mod_remoteip.la
make[4]: Entering directory `/data/httpd-2.4.43/modules/metadata'
make[4]: Nothing to be done for `local-shared-build'.
make[4]: Leaving directory `/data/httpd-2.4.43/modules/metadata'
make[3]: Leaving directory `/data/httpd-2.4.43/modules/metadata'
make[3]: Entering directory `/data/httpd-2.4.43/modules/proxy'
Building shared: mod_proxy.la mod_proxy_connect.la mod_proxy_ftp.la mod_proxy_http.la mod_proxy_fcgi.la mod_proxy_scgi.la mod_proxy_uwsgi.la mod_proxy_fdpass.la mod_proxy_wstunnel.la mod_proxy_ajp.la mod_proxy_balancer.la mod_proxy_express.la mod_proxy_hcheck.la
make[4]: Entering directory `/data/httpd-2.4.43/modules/proxy'
make[4]: Nothing to be done for `local-shared-build'.
make[4]: Leaving directory `/data/httpd-2.4.43/modules/proxy'
make[3]: Leaving directory `/data/httpd-2.4.43/modules/proxy'
make[3]: Entering directory `/data/httpd-2.4.43/modules/session'
Building shared: mod_session.la mod_session_cookie.la mod_session_crypto.la mod_session_dbd.la
make[4]: Entering directory `/data/httpd-2.4.43/modules/session'
make[4]: Nothing to be done for `local-shared-build'.
make[4]: Leaving directory `/data/httpd-2.4.43/modules/session'
make[3]: Leaving directory `/data/httpd-2.4.43/modules/session'
make[3]: Entering directory `/data/httpd-2.4.43/modules/slotmem'
Building shared: mod_slotmem_shm.la
make[4]: Entering directory `/data/httpd-2.4.43/modules/slotmem'
make[4]: Nothing to be done for `local-shared-build'.
make[4]: Leaving directory `/data/httpd-2.4.43/modules/slotmem'
make[3]: Leaving directory `/data/httpd-2.4.43/modules/slotmem'
make[3]: Entering directory `/data/httpd-2.4.43/modules/proxy/balancers'
Building shared: mod_lbmethod_byrequests.la mod_lbmethod_bytraffic.la mod_lbmethod_bybusyness.la mod_lbmethod_heartbeat.la
make[4]: Entering directory `/data/httpd-2.4.43/modules/proxy/balancers'
make[4]: Nothing to be done for `local-shared-build'.
make[4]: Leaving directory `/data/httpd-2.4.43/modules/proxy/balancers'
make[3]: Leaving directory `/data/httpd-2.4.43/modules/proxy/balancers'
make[3]: Entering directory `/data/httpd-2.4.43/modules/arch/unix'
Building shared: mod_unixd.la
make[4]: Entering directory `/data/httpd-2.4.43/modules/arch/unix'
make[4]: Nothing to be done for `local-shared-build'.
make[4]: Leaving directory `/data/httpd-2.4.43/modules/arch/unix'
make[3]: Leaving directory `/data/httpd-2.4.43/modules/arch/unix'
make[3]: Entering directory `/data/httpd-2.4.43/modules/dav/main'
Building shared: mod_dav.la
make[4]: Entering directory `/data/httpd-2.4.43/modules/dav/main'
make[4]: Nothing to be done for `local-shared-build'.
make[4]: Leaving directory `/data/httpd-2.4.43/modules/dav/main'
make[3]: Leaving directory `/data/httpd-2.4.43/modules/dav/main'
make[3]: Entering directory `/data/httpd-2.4.43/modules/generators'
Building shared: mod_status.la mod_autoindex.la mod_info.la mod_cgid.la
make[4]: Entering directory `/data/httpd-2.4.43/modules/generators'
make[4]: Nothing to be done for `local-shared-build'.
make[4]: Leaving directory `/data/httpd-2.4.43/modules/generators'
make[3]: Leaving directory `/data/httpd-2.4.43/modules/generators'
make[3]: Entering directory `/data/httpd-2.4.43/modules/dav/fs'
Building shared: mod_dav_fs.la
make[4]: Entering directory `/data/httpd-2.4.43/modules/dav/fs'
make[4]: Nothing to be done for `local-shared-build'.
make[4]: Leaving directory `/data/httpd-2.4.43/modules/dav/fs'
make[3]: Leaving directory `/data/httpd-2.4.43/modules/dav/fs'
make[3]: Entering directory `/data/httpd-2.4.43/modules/mappers'
Building shared: mod_vhost_alias.la mod_negotiation.la mod_dir.la mod_actions.la mod_speling.la mod_userdir.la mod_alias.la mod_rewrite.la
make[4]: Entering directory `/data/httpd-2.4.43/modules/mappers'
make[4]: Nothing to be done for `local-shared-build'.
make[4]: Leaving directory `/data/httpd-2.4.43/modules/mappers'
make[3]: Leaving directory `/data/httpd-2.4.43/modules/mappers'
make[2]: Leaving directory `/data/httpd-2.4.43/modules'
make[2]: Entering directory `/data/httpd-2.4.43/support'
make[2]: Leaving directory `/data/httpd-2.4.43/support'
 
Installing configuration files
mkdir /apps/httpd43/conf
mkdir /apps/httpd43/conf/extra
mkdir /apps/httpd43/conf/original
mkdir /apps/httpd43/conf/original/extra
Installing HTML documents
mkdir /apps/httpd43/htdocs
Installing error documents
mkdir /apps/httpd43/error
Installing icons
mkdir /apps/httpd43/icons
mkdir /apps/httpd43/logs
Installing CGIs
mkdir /apps/httpd43/cgi-bin
Installing header files
mkdir /apps/httpd43/include
Installing build system files
mkdir /apps/httpd43/build
Installing man pages and online manual
mkdir /apps/httpd43/man
mkdir /apps/httpd43/man/man1
mkdir /apps/httpd43/man/man8
mkdir /apps/httpd43/manual
make[1]: Leaving directory `/data/httpd-2.4.43'
 
 
 
 
 
第五步 把程序目录导入至PATH环境变量中
PATH=/apps/httpd43/bin:$PATH
 
 
第六步 启动程序
apachectl start
 
 
 
 
3、创建一个2G的文件系统,块大小为2048byte,预留1%可用空间,文件系统 ext4,卷标为TEST,要求此分区开机后自动挂载至/test目录,且默认有acl挂载选项
fdisk /dev/sda 创建一个sda6
mke2fs -b 2048 -L TEST -t ext4 -m 1 /dev/sda6 把sda6的文件系统改成ext4,预留1%可用空间,卷标为TEST,块大小为2048
 
UUID=1080bd43-e2fb-469b-952a-f440f1ce23df /test                   ext4    acl             0 0
 
 
df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        895M     0  895M   0% /dev
tmpfs           910M     0  910M   0% /dev/shm
tmpfs           910M   11M  900M   2% /run
tmpfs           910M     0  910M   0% /sys/fs/cgroup
/dev/sda2       100G  4.6G   96G   5% /
/dev/sda3        50G  105M   50G   1% /data
/dev/sda1      1014M  179M  836M  18% /boot
/dev/sda6       2.0G  9.1M  1.9G   1% /test
tmpfs           182M  8.0K  182M   1% /run/user/42
tmpfs           182M     0  182M   0% /run/user/0
 
 
dumpe2fs -h /dev/sda6
dumpe2fs 1.42.9 (28-Dec-2013)
Filesystem volume name:   TEST
Last mounted on:          <not available>
Filesystem UUID:          1080bd43-e2fb-469b-952a-f440f1ce23df
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent 64bit flex_bg sparse_super huge_file uninit_bg dir_nlink extra_isize
Filesystem flags:         signed_directory_hash 
Default mount options:    user_xattr acl
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              131072
Block count:              1048576
Reserved block count:     10485
Free blocks:              994651
Free inodes:              131061
First block:              0
Block size:               2048
Fragment size:            2048
Group descriptor size:    64
Reserved GDT blocks:      512
Blocks per group:         16384
Fragments per group:      16384
Inodes per group:         2048
Inode blocks per group:   256
Flex block group size:    16
Filesystem created:       Sat May 30 09:59:00 2020
Last mount time:          Sat May 30 10:39:44 2020
Last write time:          Sat May 30 10:39:44 2020
Mount count:              4
Maximum mount count:      -1
Last checked:             Sat May 30 09:59:00 2020
Check interval:           0 (<none>)
Lifetime writes:          98 MB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:           256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
Default directory hash:   half_md4
Directory Hash Seed:      e6738626-08cc-4a57-b0dd-002a3adfba48
Journal backup:           inode blocks
Journal features:         journal_64bit
Journal size:             64M
Journal length:           32768
Journal sequence:         0x00000004
Journal start:            0
 
 
 
4、创建一个至少有两个PV组成的大小为20G的名为testvg的VG;要求PE大小 为16MB, 而后在卷组中创建大小为5G的逻辑卷testlv;挂载至/users目录
先创建PV
 
pvcreate /dev/sda7 /dev/sda8
 
创建VG名为testvg,PE大小为16
 
vgcreate testvg -s 16 /dev/sda7 /dev/sda8
 
 
创建大小5G,名字为testlv的逻辑卷
 
lvcreate -L 5G -n testlv testvg 
 
 
把testlv创建一个xfs的文件系统
 
 mkfs.xfs /dev/testvg/testlv 
 
 
挂载到/users目录下
 
mount /dev/testvg/testlv /users
 


(责任编辑:IT)
------分隔线----------------------------
栏目列表
推荐内容