您的位置:首页 > 运维架构 > Apache

ubuntu 手动apache记录

2014-12-21 15:07 85 查看
1.下载apache

tar -xvzf httpd.xx 解压

2.下载安装pcre

Download PCRE from PCRE.org

解压,进入文件夹中

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

有可能会提示configure: error: You need a C++ compiler for C++ support.
那么就安装c++组件
age-get install g++

make
make install

3.下载apr, apr-util

进入apache文件夹中的srclib中

wget http://mirrors.axint.net/apache/apr/apr-1.4.6.tar.gz 
tar -xvzf apr-1.4.6.tar.gz

cd apr-1.4.6/

./configure
--prefix=/usr/local/pcre
make
make install


# APR Utils
wget http://mirrors.axint.net/apache//apr/apr-util-1.4.1.tar.gz tar -xvzf apr-util-1.4.1.tar.gz
cd apr-util-1.4.1
./configure --with-apr=/usr/local/apr
make make install

4.进入apache文件夹中

./configure --prefix=/usr/local/apache2  --with-apr=/usr/local/apr  --with-apr-util=/usr/local/apr-util/   [code]--with-pcre=/usr/local/pcre
make
make install

5.进入/usr/local/apache2/conf/httpd.conf
搜索ServerName
添加 ServerName localhost:80

完成
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: