yum install gcc
yum install make
yum install openssl-devel
yum install apr-devel
yum install apr-util-devel
yum install wget
cd /usr/src
wget http://www-us.apache.org/dist//apr/apr-1.6.3.tar.gz
wget http://www-us.apache.org/dist//apr/apr-util-1.6.1.tar.gz
tar xvfz apr-1.5.2.tar.gz
tar xvfz apr-util-1.5.4.tar.gz
cd apr-1.6.3
./configure --bindir=/usr/bin/
make && make install
cd ../apr-util-1.6.1
./configure --bindir=/usr/bin/ --with-apr=/usr/bin/apr-1-config
make && make install
http://httpd.apache.org/download.cgi#apache24
cd /usr/src
wget http://www-eu.apache.org/dist//httpd/httpd-2.4.29.tar.gz
tar xvfz httpd-2.4.29.tar.gz
cd httpd-2.4.29
./configure --help
yum install pcre-devel -y
mkdir /etc/httpd/
./configure --prefix=/etc/httpd/ --sbindir=/sbin/ --enable-ssl --enable-so
make
make install
vi /etc/hosts
127.0.0.1 localhost.localdomain localhost
xxx.xxx.xxx.xxx serverName.domain.com serverName
apachectl start
apachectl stop
apachectl restart
apachectl -k graceful
ไม่มีความคิดเห็น:
แสดงความคิดเห็น