Ubuntu Server源码编译安装Apache2

前端之家收集整理的这篇文章主要介绍了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 installlibaprutil1-dev

sudo apt-get install libpcre3-dev

sudo apt-get installzlib1g-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

原文链接:https://www.f2er.com/ubuntu/351683.html

猜你在找的Ubuntu相关文章