1.apr and Apr-util,: http://apr.apache.org/download.cgi
Yum Install Gccyum install Libtoolyum install Expat-develyum install PCRE-DEVELCD apr-1.6.3/./configure--prefix=/opt/ Apr
The following error occurred
RM ' Libtoolt ' file or directory
Or
Include/arch/unix/apr_private.h is Unchange
CP Configure./Configure.bakvi configure# $RM "$cfgfile" #注释掉这行
: Wq
!. /configure--prefix #重新执行上一次相同的命令
Make-j 4 #四核运行
Make install
TAR-ZXVF apr-util-1.6.1.tar.bz2 #注意不要下载apr-util-1.6.1.tar.gz This GZ file will be installed incorrectly
CD apr-util-1.6.1
Make && make instal
2. Download and install Pcre "if and yum install skip this step"
wget https://ftp.pcre.org/pub/pcre/pcre2-10.30.tar.gztar -zxvf pcre2- 10.30. Tar . GZCD pcre2-10.30. /configure--prefix=/opt/pcremake doinstall or yum Install pcre-devel
3. Installing Apache
./configure--prefix=/opt/apache--with-apr=/opt/apr--with-apr-util=/opt/apr-util--with-include-apr--enable- so make doinstall
4. You will find that Apache Stop|restart|start is unsuccessful.
Could not reliably determine the server's fully qualified domain name
Solutions
VI httpd.conf#servername www.example.com: the #修改为ServerName localhost: the
Apache Source Installation