linux apache24 使用,科学网—linux_centos第24_2次课Apache的安装 - 郭会强的博文

第24次课Apache的安装

下载apache的网址

[root@ghq~]# cd /usr/local/src

[root@ghqsrc]# ls

mysql-5.1.40-linux-i686-icc-glibc23.tar.gz

从网上下载,使用命令wget

[root@ghq src]# wgethttp://apache.fayea.com//httpd/httpd-2.2.31.tar.bz2

--2015-08-2007:24:43-- http://apache.fayea.com//httpd/httpd-2.2.31.tar.bz2

Resolvingapache.fayea.com... 119.6.56.18

Connectingto apache.fayea.com|119.6.56.18|:80... connected.

HTTPrequest sent, awaiting response... 200 OK

Length:5610489 (5.3M) [application/x-bzip2]

Savingto: “httpd-2.2.31.tar.bz2”

下载完毕

[root@ghqsrc]# ls

httpd-2.2.31.tar.bz2mysql-5.1.40-linux-i686-icc-glibc23.tar.gz

[root@ghqsrc]# tar zxvf  httpd-2.2.31.tar.gz

[root@ghqsrc]# ls

httpd-2.2.31httpd-2.2.31.tar.gz

httpd-2.2.31.tar.bz2  mysql-5.1.40-linux-i686-icc-glibc23.tar.gz

[root@ghqsrc]# cd httpd-2.2.31

[root@ghqhttpd-2.2.31]# ls

ABOUT_APACHE  config.layout httpd.spec      LICENSE        README.platforms

acinclude.m4  configure     include         Makefile.in    README-win32.txt

Apache.dsw    configure.in   INSTALL        Makefile.win   ROADMAP

build         docs           InstallBin.dsp  modules       server

BuildAll.dsp  emacs-style   LAYOUT          NOTICE         srclib

BuildBin.dsp  httpd.dep     libhttpd.dep    NWGNUmakefile  support

buildconf     httpd.dsp      libhttpd.dsp    os             test

CHANGES       httpd.mak      libhttpd.mak    README         VERSIONING

[root@ghq httpd-2.2.31]# cat README(查看readme,知道怎么安装)

Apache HTTP Server

What is it?

-----------

The Apache HTTP Server is a powerful andflexible HTTP/1.1 compliant

web server. Originally designed as a replacement for the NCSA HTTP

Server, it has grown to be the most popularweb server on the

Internet. As a project of the Apache Software Foundation, the

developers aim to collaboratively develop andmaintain a robust,

commercial-grade, standards-based server withfreely available

source code.

The Latest Version

------------------

Details of the latest version can be found onthe Apache HTTP

server project page under.

Documentation

-------------

The documentation available as of the date ofthis release is

included in HTML format in the docs/manual/directory.  The most

up-to-date documentation for the 2.2.xreleases can be found at

.

Installation

------------

Please see the file called INSTALL.  Platform specific notes can be

found in README.platforms.

Licensing

---------

Please see the file called LICENSE.

Cryptographic Software Notice

-----------------------------

This distribution may include software thathas been designed for use

with cryptographic software.  The country in which you currently reside

may have restrictions on the import,possession, use, and/or re-export

to another country, of encryptionsoftware.  BEFORE using any encryption

software, please check your country's laws,regulations and policies

concerning the import, possession, or use,and re-export of encryption

software, to see if this is permitted.  See

for more information.

The U.S. Government Department of Commerce,Bureau of Industry and

Security (BIS), has classified this softwareas Export Commodity

Control Number (ECCN) 5D002.C.1, whichincludes information security

software using or performing cryptographicfunctions with asymmetric

algorithms. The form and manner of this Apache Software Foundation

distribution makes it eligible for exportunder the License Exception

ENC Technology Software Unrestricted (TSU)exception (see the BIS

Export Administration Regulations, Section740.13) for both object

code and source code.

The following provides more details on theincluded files that

may be subject to export controls oncryptographic software:

Apache httpd 2.0 and later versions includethe mod_ssl module under

modules/ssl/

for configuring and listening toconnections over SSL encrypted

network sockets by performing calls to ageneral-purpose encryption

library, such as OpenSSL or the operatingsystem's platform-specific

SSL facilities.

In addition, some versions of apr-utilprovide an abstract interface

for SSL encrypted network sockets in thefiles under the directory

srclib/apr-util/ssl/

that makes use of a general-purpose encryptionlibrary, such as

OpenSSL or the operating system'splatform-specific SSL facilities.

Apache httpd currently does not use thatapr-util interface.

Some object code distributions of Apachehttpd, indicated with the

word "crypto" in the packagename, may include object code for the

OpenSSL encryption library as distributedin open source form from

.

The above files are optional and may beremoved if the cryptographic

functionality is not desired or needs to beexcluded from redistribution.

Distribution packages of Apache httpd thatinclude the word "nossl"

in the package name have been created withoutthe above files and are

therefore not subject to this notice.

Contacts

--------

o If you want to be informed about newcode releases, bug fixes,

security fixes, general news andinformation about the Apache server

subscribe to the apache-announce mailinglist as described under

o If you want freely available support forrunning Apache please join the

Apache user community by subscribing toUsers Mailing List at

or one of the following

USENET newsgroups:

comp.infosystems.www.servers.unix

comp.infosystems.www.servers.ms-windows

Also available at:

o If you want commercial support forrunning Apache please contact

one of the companies and contractorswhich are listed at

o If you have a concrete bug report forApache please go to the

Apache Group Bug Database and submityour report:

o If you want to participate in activelydeveloping Apache please

subscribe to the `dev@httpd.apache.org'mailing list as described at

Acknowledgments

----------------

We wish to acknowledge the followingcopyrighted works that

make up portions of the Apache software:

Portions of this software were developed atthe National Center

for Supercomputing Applications (NCSA) at theUniversity of

Illinois at Urbana-Champaign.

This software contains code derived from theRSA Data Security

Inc. MD5 Message-Digest Algorithm, includingvarious

modifications by Spyglass Inc., CarnegieMellon University, and

Bell Communications Research, Inc (Bellcore).

Regular expression support is provided by thePCRE library package, which

is open source software, written by PhilipHazel, and copyright by the

University of Cambridge, England.  The original software is available from

ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/

Apache 2 relies heavily on the use ofautoconf and libtool to provide

a build environment.

编译安装源码包的三个步骤(不绝对):(1)./configure(2)make(3)make install

不加apr,安装apache可能出错

安装apache,第一步./configure

这里需要加--with-include-apr,如果不加该命令,安装可能会出错

[root@ghqhttpd-2.2.31]# ./configure --prefix=/usr/local/apache2 --with-include-apr--with-pcre --enable-mods-shared=most

说明:--prefix=/usr/local/apache2指定安装目录

[root@ghqhttpd-2.2.31]# ./configure --prefix=/usr/local/apache2 --with-include-apr

checkingfor chosen layout... Apache

checkingfor working mkdir -p... yes

checkingbuild system type... i686-pc-linux-gnu

checkinghost system type... i686-pc-linux-gnu

checkingtarget system type... i686-pc-linux-gnu

ConfiguringApache Portable Runtime library ...

[root@ghqhttpd-2.2.31]# make

[root@ghqhttpd-2.2.31]# make install

[root@ghqhttpd-2.2.31]# ls /usr/local/apache2

bin  build cgi-bin  conf  error htdocs  icons  include lib  logs  man manual  modules

安装完毕

安装教程可以参考:

问题?怎么确认apache安装成功了?

转载本文请联系原作者获取授权,同时请注明本文来自郭会强科学网博客。

链接地址:http://blog.sciencenet.cn/blog-575910-914696.html

上一篇:linux_centos 第24次课 LAMP的搭建之一:MySQL的安装

下一篇:linux_centos第24_3次课php的安装

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/429699.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

《DSP using MATLAB 》示例Example6.3

代码: C0 0; B1 [2 4; 3 1]; A1 [1 1 0.9; 1 0.4 -0.4]; B2 [0.5 0.7; 1.5 2.5; 0.8 1]; A2 [1 -1 0.8; 1 0.5 0.5; 1 0 -0.5]; [b1, a1] par2dir(C0, B1, A1)[b2, a2] par2dir(C0, B2, A2)b conv(b1, b2) % Overall direct form numerator a conv(a1…

简单说明c语言程序步骤,C语言的入门简介和三个简单的C语言程序详细说明

学习一种编程语言,最重要的是建立一个练习环境,边学边练才能学好。Keil软件是目前最流行开发80C51系列单片机的软件,Keil提供了包括C编译器、宏汇编、连接器、库管理和一个功能强大的仿真调试器等在内的完整开发方案,通过一个集成…

java入门,学习笔记

编译 通过javac编译java程序,会编译出一个后缀为class的文件,我们再通过java虚拟机(jvm)执行编译后的java程序。 在java中始终有一个main函数,它作为程序的入口,程序从这个入口开始执行一直到结束。 public…

C语言 第五章 选择结构 答案,c语言第五章 选择结构程序设计(习题册答案).doc

第五章 选择结构程序设计基础练习(A)一、填空题1、关系表达式的运算结果是 逻辑 值。C语言没有逻辑型数据,以 1 代表“真”,以 0代表“假”。2、逻辑运算符!是 单目 运算符,其结合性是由 右结合性 。3、C语言提供的三种逻辑运算符…

linux命令之ifconfig详细解释

依赖于ifconfig命令中使用一些选项属性,ifconfig工具不仅可以被用来简单地获取网络接口配置信息,还可以修改这些配置。 1.命令格式: ifconfig [网络设备] [参数] 2.命令功能: ifconfig 命令用来查看和配置网…

c语言 如何连接两个程序,C语言连接两个链表程序

创建两个链表,并这两链表连接起来成为一个链表的示例程序,将以下代码保存到一个源文件中:combine_linked_list.c, 如下所示 –#include #include struct node { int data; struct node *next; }; struct node *even NULL; struct…

微信小程序UI组件、开发框架、实用库...

UI组件 weui-wxss ★852 - 同微信原生视觉体验一致的基础样式库Wa-UI ★122 - 针对微信小程序整合的一套UI库wx-charts ★105 - 微信小程序图表工具wemark ★85 - 微信小程序Markdown渲染库WeZRender ★36 - 微信小程序Canvas增强组件wetoast ★21 - 仿照微信小程序提供的showT…

c语言编程一个 图书管理,我也要用c语言编程一个图书管理系统,

#includeusing namespace std;const int N 25;//定义20本图书struct Book {char name[25];char author[15];char price[7];char publisher[20];char isbn[20];};int ii 19;Book book[N] { { "红与黑","司汤达","26.00","长江文艺出版社&…

十二个球称三次C语言编程,十二个球,有一个不知轻重,现有一个天平,称三次,找出此球!...

平均分成A、B、C三组,每组4个;第一秤:A、B两组先分别放天平左右:情况一:平衡.则问题出在C组,A、B组共8个为标准球. 第二秤用3个标准球和C组的3个球对比, 如果第二秤平衡,剩下的一个就是问题球,第三秤用标准球和问题球对比,得出问题…

loadrunner controller:实时查看VUser的运行情况

1) 如下图,在Run标签页,点击“Vusers...”打开Vuser窗口; 2) 如下图选中一个Vuser点击按钮可以打开Run-Time Viewer窗口,RTV窗口页面显示的就是该Vuser当前的操作; 3) 如下图所示,…

解决鼠标滚动的时候多次执行函数

有这种场景,鼠标滚动到页面的底部的时候,显示剩余的数据; 这种情况有时候会出现的错误是鼠标滚动的时候会多次触发,同样的多次执行ajax,调取数据; 解决的方法是:设置一个全局变量flag,当鼠标滚动…

上海工程技术大学c语言,上海工程技术大学 C语言实习报告.doc

实 习 报 告《高级语言程序设计》2012~2013学年第 一 学期学院(部) 管理学院指导教师 李旭芳班级代号 0315121姓名/学号 张何兵/031512130同组人 无实验一一:实验项目名称:在函数中进行10个学生成绩从高到低排名 sort(int a[10])二&#xff1…

【二色汉诺塔 】

/* 二色汉诺塔 */#include <stdio.h>void hanoi(int disks, char sources, char temp, char target) {if(disks 1){printf("move disk from %c to %c \n", sources, target);printf("move disk from %c to %c \n", sources, target);}else{hanoi(d…

c语言程序定义不知数量的一维数组,c语言程序设计10-第6章 利用数组处理批量数据 6.1 怎样定义和引用一维数组.ppt...

c语言程序设计10-第6章 利用数组处理批量数据 6.1 怎样定义和引用一维数组* 临沂大学汽车学院&#xff1a;韩晓翠 第6章 利用数组处理批量数据 6.1 怎样定义和引用一维数组 授课要点 数组的概念 一维数组的定义和引用 一维数组的初始化和赋值 数组元素的遍历 问题&#xff1a;从…

c语言凸包算法,基于C语言的凸包算法实现

基于C语言的凸包算法实现非计算机专业&#xff0c;代码有些的不好的地方&#xff0c;大佬轻喷^ _ ^根据要求&#xff0c;需要使用C语言实现凸包算法——Graham扫描法&#xff0c;本文将从算法理解、实现思路、遇到的问题及其解决方案三个方面来阐述实现过程。算法理解凸包算法G…

VS Code 使用小技巧

所有插件查找地址&#xff08;https://marketplace.visualstudio.com/&#xff09; 编码快捷方式&#xff08;http://docs.emmet.io/cheat-sheet/&#xff09; 安装插件出现 错误unable to verify the first certificate &#xff08;无法确认第一证书&#xff09;   解决方…

android 怎么自定义任务栈,Android中的Activity详解--启动模式与任务栈

目录Activity生命周期任务栈启动模式Intent FlagtaskAffinity属性1.Activityactivity的简单介绍就不写了&#xff0c;作为最常用的四大组件之一&#xff0c;肯定都很熟悉其基本用法了。2.生命周期首先&#xff0c;是都很熟悉的一张图&#xff0c;即官方介绍的Activity生命周期图…

SQL Server--疑难杂症之坑爹的Windows故障转移群集

-- 估计是春节前最后一次写博客&#xff0c;也估计是本年值班最后一次踩雷&#xff0c;感叹下成也SQL SERVER&#xff0c;败也SQL SERVER。 -- 场景描述&#xff1a; 操作系统版本 &#xff1a;Windows Server 2012 数据中心版本 数据库版本 &#xff1a;SQL SERVER 2012 企业版…

android handle 阻塞,Android全面解析之Handler机制:常见问题汇总

主线程为什么不用初始化Looper&#xff1f;答&#xff1a;因为应用在启动的过程中就已经初始化主线程Looper了。每个java应用程序都是有一个main方法入口&#xff0c;Android是基于Java的程序也不例外。Android程序的入口在ActivityThread的main方法中&#xff1a;// 初始化主线…

gulp使用

gulp需要全局安装和当前目录都安装才能使用gulp命令 安装gulp插件 npm install gulp-rev gulp-rev-replace gulp-useref gulp-filter gulp-uglify gulp-csso --save-dev gulp-rev&#xff1a;给每个文件添加版本号&#xff0c;根据文件内容计算hash码&#xff0c;修改文件名&am…