没有合适的资源?快使用搜索试试~ 我知道了~
Apache之RPM包安装与源码安装区别
资源推荐
资源详情
资源评论
APR及APR-Util安装
解压缩APR及APR-Util
shell> sudo tar zxvf apr-1.4.6.tar.gz -C /opt/sources
shell> sudo tar zxvf apr-util-1.4.1.tar.gz -C /opt/sources
创建安装目录并创建软链接
shell> sudo mkdir /opt/software/develop/apr-1.4.6
shell> sudo mkdir /opt/software/develop/apr-util-1.4.1
shell> sudo ln -s /opt/software/develop/apr-1.4.6 /usr/local/apr
shell> sudo ln -s /opt/software/develop/apr-util-1.4.1 /usr/local/apr-util
安装APR及APR-Util
复制代码
shell> cd /opt/sources/apr-1.4.6
shell> sudo ./configure --prefix=/usr/local/apr
shell> sudo make
shell> sudo make install
shell> cd /opt/sources/apr-util-1.4.1
shell> sudo ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
shell> sudo make
shell> sudo make install
复制代码
安装PCRE
首先请确定系统安装了Perl,Perl在此不再赘述,如有需要请去官网查看安装细则:http://www.cpan.org/src/README.html
解压缩PCRE
shell> sudo tar zxvf pcre-8.30.tar.gz -C /opt/sources
解压缩APR及APR-Util
shell> sudo tar zxvf apr-1.4.6.tar.gz -C /opt/sources
shell> sudo tar zxvf apr-util-1.4.1.tar.gz -C /opt/sources
创建安装目录并创建软链接
shell> sudo mkdir /opt/software/develop/apr-1.4.6
shell> sudo mkdir /opt/software/develop/apr-util-1.4.1
shell> sudo ln -s /opt/software/develop/apr-1.4.6 /usr/local/apr
shell> sudo ln -s /opt/software/develop/apr-util-1.4.1 /usr/local/apr-util
安装APR及APR-Util
复制代码
shell> cd /opt/sources/apr-1.4.6
shell> sudo ./configure --prefix=/usr/local/apr
shell> sudo make
shell> sudo make install
shell> cd /opt/sources/apr-util-1.4.1
shell> sudo ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
shell> sudo make
shell> sudo make install
复制代码
安装PCRE
首先请确定系统安装了Perl,Perl在此不再赘述,如有需要请去官网查看安装细则:http://www.cpan.org/src/README.html
解压缩PCRE
shell> sudo tar zxvf pcre-8.30.tar.gz -C /opt/sources
创建PCRE安装目录及软链接
shell> sudo mkdir /opt/software/develop/pcre-8.30
shell> sudo ln -s /opt/software/develop/pcre-8.30 /usr/local/pcre
安装PCRE
shell> cd /opt/sources/pcre-8.30
shell> sudo ./configure --prefix=/usr/local/pcre
shell> sudo make
shell> sudo make install
安装Apache 2.4
解压缩Apache 2.4
shell> sudo tar zxvf httpd-2.4.2.tar.gz -C /opt/sources
创建Apache安装目录及软链接
shell> sudo mkdir /opt/software/develop/httpd-2.4.2
shell> sudo ln -s /opt/software/develop/httpd-2.4.2 /usr/local/apache2
安装Apache
复制代码
shell> cd /opt/sources/httpd-2.4.2
# 此处请根据自己要搭建的环境进行配置,我这里是为了配置PHP环境
shell> sudo ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite=shared --with-mpm=prefork --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre
shell> sudo make
shell> sudo make install
复制代码
启动Apache
shell> sudo mkdir /opt/software/develop/pcre-8.30
shell> sudo ln -s /opt/software/develop/pcre-8.30 /usr/local/pcre
安装PCRE
shell> cd /opt/sources/pcre-8.30
shell> sudo ./configure --prefix=/usr/local/pcre
shell> sudo make
shell> sudo make install
安装Apache 2.4
解压缩Apache 2.4
shell> sudo tar zxvf httpd-2.4.2.tar.gz -C /opt/sources
创建Apache安装目录及软链接
shell> sudo mkdir /opt/software/develop/httpd-2.4.2
shell> sudo ln -s /opt/software/develop/httpd-2.4.2 /usr/local/apache2
安装Apache
复制代码
shell> cd /opt/sources/httpd-2.4.2
# 此处请根据自己要搭建的环境进行配置,我这里是为了配置PHP环境
shell> sudo ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite=shared --with-mpm=prefork --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre
shell> sudo make
shell> sudo make install
复制代码
启动Apache
剩余5页未读,继续阅读
资源评论
benethao899
- 粉丝: 2
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功