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

linux 源码安装软件

2016-09-20 00:00 323 查看
1 下载软件包

wget http://172.16.10.1/resource/http_source/apr-1.4.5.tar.gz
wget http://172.16.10.1/resource/http_source/apr-util-1.3.12.tar.gz
wget http://172.16.10.1/resource/http_source/httpd-2.4.23.tar.gz
特殊提示: wget 下载遇到中文文件名称定时候可能会有乱码,加上 --restrict-file-names=nocontrol 即可

wget -r -np http://172.16.10.1/teach/ 可以批量下载

2 解压文件,三个软件包解压到三个不同的目录

tar -xzvf apr-1.4.5.tar.gz

tar -xzvf apr-util-1.3.12.tar.gz

tar -xzvf httpd-2.4.23.tar.gz

3 安装apr-1-4-5

3.1 进入软件解压包 cd apr-1.4.5 进行校验是否能安装

./configure --prefix=/opt/install_path/apr

3.2 编译

make

3.3 安装

make install

4 安装apr-unti

4.1 进入软件解压包 cd apr-util-1.3.12进行校验

./configure --prefix=/opt/install_path/apr-util --with-apr=/opt/install_path/apr

4.2 编译

make

4.3 安装

make install

5 安装httpd-2.4.23

5.1 进入软件解压包cd httpd-2.4.23进行校验

./configure --prefix=/opt/install_path/httpd --with-apr=/opt/install_path/apr --with-apr-util=/opt/install_path/apr-util

5.2 编译

make

5.3 安装

make install

6 启动

/opt/install_path/httpd/bin/httpd -f /opt/install_path/httpd/conf/httpd.conf
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息