最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

ubuntu16.04 linux 編譯安裝apache2.4.33的教程詳解

 更新時(shí)間:2018年05月16日 08:50:46   作者:ghostwu  
這篇文章主要介紹了ubuntu16.04 linux 編譯安裝apache2.4.33,需要的朋友可以參考下

下載軟件包:

wget http://mirror.bit.edu.cn/apache//httpd/httpd-2.4.33.tar.gz
wget http://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-1.6.3.tar.gz
wget http://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-util-1.6.1.tar.gz

首先需要安裝apr和apr-util

tar xf apr-1.6.3.tar.gz 
cd apr-1.6.3/
./configure
sudo make
sudo make install

安裝apr-util:

./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
sudo make
sudo make install

這兩個(gè)必不可少,如果缺少其他的依賴,請(qǐng)自行百度

安裝apr-util的,在編譯的時(shí)候報(bào)錯(cuò):

xml/apr_xml.c:35:19: fatal error: expat.h: No such file or directory

解決方法:

sudo apt-get install libexpat1-dev

還有其他依賴:

1,pcre

sudo apt-get install libpcre3 libpcre3-dev 

2,openssl

sudo apt-get install openssl libssl-dev 

3,zlib

sudo apt-get install zlib1g-dev

編譯apache

./configure \
--prefix=/usr/local/httpd24 \
--sysconfdir=/etc/httpd24 \
--enable-so \
--enable-ssl \
--enable-cgi \
--enable-rewrite \
--with-zlib \
--with-pcre \
--with-mpm=prefork \
--enable-modules=most \
--enable-mpms-shared=all 

最后make makeinstall

root@dev:~# /usr/local/httpd24/bin/apachectl start
root@dev:~# ps -ef | grep httpd
root   24411 17534 0 06:15 ?    00:00:00 /usr/local/httpd24/bin/httpd -k start
daemon  24412 24411 0 06:15 ?    00:00:00 /usr/local/httpd24/bin/httpd -k start
daemon  24413 24411 0 06:15 ?    00:00:00 /usr/local/httpd24/bin/httpd -k start
daemon  24414 24411 0 06:15 ?    00:00:00 /usr/local/httpd24/bin/httpd -k start
daemon  24415 24411 0 06:15 ?    00:00:00 /usr/local/httpd24/bin/httpd -k start
daemon  24416 24411 0 06:15 ?    00:00:00 /usr/local/httpd24/bin/httpd -k start
root   24418 24367 0 06:15 pts/19  00:00:00 grep --color=auto httpd

修改配置文件( vim /etc/httpd24/httpd.conf )

ServerName 127.0.0.1

DocumentRoot 后面指定一個(gè)網(wǎng)站根目錄

總結(jié)

以上所述是小編給大家介紹的ubuntu16.04 linux 編譯安裝apache2.4.33的教程詳解,希望對(duì)大家有所幫助,如果大家有任何疑問請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!

相關(guān)文章

最新評(píng)論

巫山县| 六盘水市| 云龙县| 尤溪县| 稷山县| 崇礼县| 咸丰县| 新龙县| 灯塔市| 定陶县| 九龙城区| 永平县| 武安市| 铁力市| 兴城市| 高唐县| 诏安县| 中超| 靖安县| 外汇| 林西县| 涿州市| 合作市| 绥江县| 搜索| 曲麻莱县| 白城市| 敦化市| 读书| 泸定县| 上虞市| 永安市| 吉木萨尔县| 吉木乃县| 乌鲁木齐县| 西盟| 碌曲县| 北安市| 封丘县| 加查县| 长治县|