Apache http server linux 安装过程说明
https://blog.csdn.net/sundenskyqq/article/details/24733923
PS:Apache http server 须要依赖 apr、apr-util、pcre,所以要先下载和安装这三个东东。
而apr-util和pcre又依赖apr,所以要先安装apr。
步骤:
1、 下载apr、apr-util、pcre、Apache httpserver
地址例如以下:
apr/ apr-util: http://apr.apache.org/download.cgi
pcre: http://www.pcre.org/
apache http server: http://httpd.apache.org/download.cgi#apache24
2、 将文件上传到服务器(linux)
比如文件夹:/usr/mytest/source
3、 分别解压四个文件
比如解压到当前文件夹:
解压apr : tar –vxf apr-1.5.0.tar.gz(在source文件夹下会多出一个文件夹apr-1.5.0)
解压apr : tar –vxf apr-util-1.5.3.tar.gz(在source文件夹下会多出一个文件夹apr-util-1.5.3)
解压pcre : tar –vxf pcre-8.33.tar.gz(在source文件夹下会多出一个文件夹pcre-8.33)
解压Apache http server:tar –vxf httpd-2.4.9.tar.gz(在source文件夹下会多出一个文件夹httpd-2.4.9)
PS:注意,我下载的都是tar.gz格式的,假设是其它格式的,请參考linux关于解压方面的相关命令。
4、 安装apr
切换到apr-1.5.0文件夹下,依次运行命令:
(1)./configure--prefix=/usr/mytest /soft/apr (该命令的意思是配置安装文件。指定安装路径为绝对路径)
(2)make (编译)
(3)make install(安装)
5、 安装apr-util
切换到apr-util-1.5.3文件夹下。依次运行命令:
(1)./configure--prefix=/usr/mytest /soft/apr-util --with-apr=/usr/mytest
/soft/apr/bin/apr-1-config
(该命令的意思是配置安装文件,指定安装路径为绝对路径。且须要依赖apr。否则将会出错)
(2)make (编译)
(3)make install(安装)
6、 安装pcre
切换到pcre-8.33文件夹下,依次运行命令:
(1)./configure--prefix=/usr/mytest /soft/pcre --with-apr=/usr/mytest
/soft/apr/bin/apr-1-config
(该命令的意思是配置安装文件。指定安装路径为绝对路径;且须要依赖apr,否则将会出错)
(2)make (编译)
(3)make install(安装)
7、 安装Apache httpserver
切换到httpd-2.4.9文件夹下,依次运行命令:
(1)./configure--prefix=/usr/mytest /soft/httpd
--with-apr=/usr/mytest/soft/apr/bin/apr-1-config --with-apr=/usr/mytest/soft/apr-util/bin/apu-1-config
--with-apr=/usr/mytest /soft/pcre/bin/pcre-config
(该命令的意思是配置安装文件,指定安装路径为绝对路径;且须要依赖apr/apr-util/pcre。否则将会出错)
(2)make (编译)
(3)make install(安装)
至此安装完毕并结束。
8、 启动測试:
(1) 须要首先改动配置文件:(/usr/mytest /soft/httpd/conf/httpd.conf)
ServerName (如127.0.0.1:1025)
Listener (如127.0.0.1:1025)
PS:假设配置文件里Listen定义的是默认的80port(或1024以下)。那么启动Apache将须要root权限以将它绑定在特权port上。
參考网址:http://www.jinbuguo.com/apache/menu22/invoking.html
(2) 切换到/usr/mytest /soft/httpd/bin文件夹下。
运行:./apachectl –k start
(3) 到浏览器中输入ServerName配置的属性值。得到:It works!
9、 共享服务器使用说明:
在httpd/htdocs 文件夹以下添加文件夹、文件等,浏览器中就可以查看。
Apache http server linux 安装过程说明的更多相关文章
- 0级搭建类008-Ubuntu Server Linux安装 (18.04.2) 公开
项目文档引子系列是根据项目原型,制作的测试实验文档,目的是为了提升项目过程中的实际动手能力,打造精品文档AskScuti. 项目文档引子系列目前不对外发布,仅作为博客记录.如学员在实际工作过程中需提前 ...
- 持续集成之二:搭建SVN服务器--Apache HTTP Server安装
安装环境 Red Hat Enterprise Linux Server release 7.3 (Maipo) jdk1.7.0_80 httpd-2.4.35.tar.gz apr-1.6.5.t ...
- CentOS 7安装配置Apache HTTP Server
原文 CentOS 7安装配置Apache HTTP Server RPM安装httpd # yum -yinstall httpd //安装httpd会自动安装一下依赖包: apr apr-ut ...
- 怎样从外网访问内网Apache HTTP Server
本地安装了一个Apache HTTP Server,只能在局域网内访问,怎样从外网也能访问到本地的Apache HTTP Server呢?本文将介绍具体的实现步骤. 1. 准备工作 1.1 安装并启动 ...
- LinuxMint下Apache Http源码安装过程
1. 源码包下载 Apache Http安装要求必须安装APR.APR-Util.PCRE等包. Apache Http包下载地址:http://httpd.apache.org/download.c ...
- Linux 安装 httpd2.4.16
假设: apr安装在: /opt/httpd/apr apr-util安装在 /opt/httpd/apr-suite/apr-util apr-iconv安装在/opt/httpd/apr-suit ...
- Linux下编译安装Apache Http Server
Linux下编译安装Apache Http Server [TOC] 1.下载httpd-2.4.12.tar.bz2 wget http://mirror.bit.edu.cn/apache/htt ...
- Linux下Apache HTTP Server 2.4.20安装
一.创建software目录 mkdir /softwareer 二.下载apache源码包 wget http://mirror.bit.edu.cn/apache//httpd/httpd-2.4 ...
- linux安装apache的纠结过程
本以为linux下安装apache是件很简单的过程.三命令就可以搞定,jxvf解压,make 编译,make install 安装就OK了.没想到这个过程还颇费周折.可能和环境有关吧.先说一下我的环境 ...
随机推荐
- linux使用ip能ping通,但使用域名却不能访问的解决方法
使用命令:yum -y update进行更新测试,一般测试结果为couldn't resolve hostmirrors.aliyun.com 解决方式参考博客couldn't resolve hos ...
- tensorflow 保存训练模型ckpt 查看ckpt文件中的变量名和对应值
TensorFlow 模型保存与恢复 一个快速完整的教程,以保存和恢复Tensorflow模型. 在本教程中,我将会解释: TensorFlow模型是什么样的? 如何保存TensorFlow模型? 如 ...
- Sencha Touch快速入门(译)
翻译自:http://www.sencha.com/learn/sencha-touch-quick-start/ 1.下载Sencha Touch SDK——下载链接 2.安装Safari或Chro ...
- 通过公网IP主机建立ssh隧道
环境描述 hostA: 有公网IP的linux主机 hostB: 私有路由器后端无公网IPlinux主机,能够ssh连接到hostA hostC: 个人pc机 隧道创建步骤 step1 在hostB上 ...
- Oracle dbms_random随机数包详解
Oracle dbms_random包主要用于获得随机数,可以为数字也可以为字母等,还可以实现混拼.常用函数如下: dbms_random.value 生成一个指定范围的38位随机小数(小数点后38位 ...
- spring配置文件头部配置解析
http://blog.csdn.net/f_639584391/article/details/50167321
- log4net写txt日志
1.配置: <configSections>节点下添加: <section name="log4net" type="log4net.Config.Lo ...
- Codeforces Round #311 (Div. 2) A,B,C,D,E
A. Ilya and Diplomas 思路:水题了, 随随便便枚举一下,分情况讨论一下就OK了. code: #include <stdio.h> #include <stdli ...
- Struts2_day01--课程安排_Struts2概述_入门
Struts2_day01 Struts2课程安排 今天内容 Struts2概述 Struts2框架入门 导入源文件 Struts2执行过程 查看源代码 Struts2的核心配置文件 标签packag ...
- shell脚本学习总结03--别名的使用
1.创建别名 $ alias dms='cd Oracle/Middleware/user_projects/domains/7001_costctl/' $ dms $ dms $ pwd /hom ...