[root@localhost src]# tar zxvf httpd-2.4.46.tar.gz [root@localhost src]# tar zxvf apr-1.7.0.tar.gz [root@localhost src]# tar zxvf apr-util-1.6.1.tar.gz
[root@localhost src]# cd httpd-2.4.46/ [root@localhost httpd-2.4.46]# ./configure \ --prefix=/usr/local/apache \ --with-included-apr \ --with-pcre=/usr/local/bin/pcre-config [root@localhost httpd-2.4.46]# make && make install
apache(httpd), apr, apr-util 파일을 다운로드 및 압축 해제한 후 컴파일합니다.
[root@localhost httpd-2.4.46]# vi /usr/local/apache/conf/httpd.conf # ServerName gives the name and port that the server uses to identify itself. # This can often be determined automatically, but we recommend you specify # it explicitly to prevent problems during startup. # # If your host doesn't have a registered DNS name, enter its IP address here. # #ServerName www.example.com:80 ServerName localhost:80