Ubuntu Server源码编译安装Apache2

sudo apt-get update

sudo apt-get install gcc

sudo apt-get install make

sudo apt-get install libapr1-dev

sudo apt-get install libaprutil1-dev

sudo apt-get install libpcre3-dev

sudo apt-get install zlib1g-dev


tar -xvf /home/davidyezhiwei/httpd-2.4.27.tar.gz

sudo mv /home/davidyezhiwei/httpd-2.4.27 /usr/local/src

cd /usr/local/src/httpd-2.4.27/

./configure --prefix=/usr/local/apache2

sudo make

sudo make install


cd /usr/local/apache2/

sudo cp /usr/local/apache2/conf/httpd.conf httpd.conf.bak

sudo vim /usr/local/apache2/conf/httpd.conf

sudo /usr/local/apache2/bin/apachectl restart

你可能感兴趣的:(Linux,Ubuntu,Apache)