打开官网
http://httpd.apache.org/download.cgi
[root@jiaxin-ceshi sbin]# cd /usr/local/src/
[root@jiaxin-ceshi src]# wget http://mirror.bit.edu.cn/apache//httpd/httpd-2.4.37.tar.gz
[root@jiaxin-ceshi src]# tar xf httpd-2.4.37.tar.gz
[root@jiaxin-ceshi src]# cd httpd-2.4.37
安装依赖
[root@jiaxin-ceshi httpd-2.4.37]# yum -y install gcc gcc-c++ expat-devel apr*
[root@jiaxin-ceshi httpd-2.4.37]# ./configure --prefix=/usr/local/httpd
[root@jiaxin-ceshi httpd-2.4.37]# make
[root@jiaxin-ceshi httpd-2.4.37]# make install
[root@jiaxin-ceshi httpd-2.4.37]# cd /usr/local/httpd/
[root@jiaxin-ceshi httpd]# ./bin/httpd
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.19.100.12. Set the 'ServerName' directive globally to suppress this message
[root@jiaxin-ceshi httpd]# ps -ef | grep httpd
root 24636 1 0 21:04 ? 00:00:00 ./bin/httpd
daemon 24637 24636 0 21:04 ? 00:00:00 ./bin/httpd
daemon 24638 24636 0 21:04 ? 00:00:00 ./bin/httpd
daemon 24639 24636 0 21:04 ? 00:00:00 ./bin/httpd
root 24729 2475 0 21:04 pts/0 00:00:00 grep --color=auto httpd
打开浏览器