[root@localhost ~]# md5sum httpd-2.4.25
d41d8cd98f00b204e9800998ecf8427e httpd-2.4.25
[root@localhost mnt]# mount /dev/cdrom /mnt
mount: /dev/sr0 is write-protected, mounting read-only
Preparing… ################################# [100%]
Updating / installing…
1:pcre-devel-8.32-17.el7 ################################# [100%]
Preparing… ################################# [100%]
Updating / installing…
1:apr-devel-1.4.8-3.el7 ################################# [100%]
Preparing… ################################# [100%]
Updating / installing…
1:expat-devel-2.1.0-10.el7_3 ################################# [100%]
Preparing… ################################# [100%]
Updating / installing…
1:libdb-devel-5.3.21-20.el7 ################################# [100%]
Preparing… ################################# [100%]
Updating / installing…
1:cyrus-sasl-devel-2.1.26-21.el7 ################################# [100%]
Preparing… ################################# [100%]
Updating / installing…
1:openldap-devel-2.4.44-5.el7 ################################# [100%]
Preparing… ################################# [100%]
Updating / installing…
1:apr-util-devel-1.5.2-6.el7 ################################# [100%]
[root@localhost ~]# tar zxvf httpd-2.4.25 -C /opt
[root@localhost ~]# cd /opt/httpd-2.4.25
[root@localhost httpd-2.4.25]#
[root@localhost httpd-2.4.25]# ./configure --prefix=/usr/local/apache
[root@localhost httpd-2.4.25]# make
[root@localhost httpd-2.4.25]# make install
[root@localhost ~]# vi /usr/local/apache/conf/httpd.conf
编辑时可以在末行模式输入:set number 显示行数
在末行模式输入行号 :194 直接跳到对应行
[root@localhost ~]# cd /usr/local/apache/bin
[root@localhost bin]# ./apachectl start
httpd (pid 70743) already running