注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

0与1构筑世界,程序员创造时代

软件架构设计 Java编程

 
 
 

日志

 
 

Apache1.x - 在Linux上安装  

2008-11-17 16:50:41|  分类: Apache |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
  文章声明

  
作者:
傲风(aofengblog@163.com)       编写时间:2008年11月17日

网址:http://aofengblog.blog.163.com



一、预备
操作系统:SUSE LINUX Enterprise Server 9
apache_1.3.33.tar.gz


二、安装
1、解压和目录调整。
aofeng@suse9dev:~>tar -zxvf apache_1.3.33.tar.gz

aofeng@suse9dev:~>mv apache_1.3.33 apache_1.3.33_src

aofeng@suse9dev:~>mkdir apache_1.3.33

aofeng@suse9dev:~>cd apache_1.3.33_src

2、安装三步曲。
1)aofeng@suse9dev:~/apache_1.3.33_src> ./configure --prefix=/nfs10/aofeng/apache_1.3.33
Configuring for Apache, Version 1.3.33
 + using installation path layout: Apache (config.layout)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
 + configured for Linux platform
 + setting C compiler to gcc
 + setting C pre-processor to gcc -E
 + using "tr [a-z] [A-Z]" to uppercase
 + checking for system header files
 + adding selected modules
 + using system Expat
 + checking sizeof various data types
 + doing sanity check on compiler and options
Creating Makefile in src/support
Creating Makefile in src/regex
Creating Makefile in src/os/unix
Creating Makefile in src/ap
Creating Makefile in src/main
Creating Makefile in src/modules/standard

2)aofeng@suse9dev:~/apache_1.3.33_src> make

3)aofeng@suse9dev:~/apache_1.3.33_src> make install
待出现如下信息说明安装成功:
+--------------------------------------------------------+
| You now have successfully built and installed the      |
| Apache 1.3 HTTP server. To verify that Apache actually |
| works correctly you now should first check the         |
| (initially created or preserved) configuration files   |
|                                                        |
|   /nfs10/nieyong/apache_1.3.33/conf/httpd.conf
|                                                        |
| and then you should be able to immediately fire up     |
| Apache the first time by running:                      |
|                                                        |
|   /nfs10/nieyong/apache_1.3.33/bin/apachectl start
|                                                        |
| Thanks for using Apache.       The Apache Group        |
|                                http://www.apache.org/  |
+--------------------------------------------------------+


三、验证
1、显示Apache的版本信息。
aofeng@suse9dev:~/apache_1.3.33/bin> ./httpd -v
Server version: Apache/1.3.33 (Unix)
Server built:   Nov 17 2008 17:33:16

2、测试。
aofeng@suse9dev:~/apache_1.3.33/bin> ./apachectl start
./apachectl start: httpd started

aofeng@suse9dev:~/apache_1.3.33/bin> ./apachectl stop
./apachectl stop: httpd stopped

3、启动Apache。
aofeng@suse9dev:~/apache_1.3.33/bin> ./httpd -f /nfs10/aofeng/apache_1.3.33/conf/httpd.conf

在Linux上安装Apache - 傲风 - 傲风的博客提示:apache_1.3.33/logs/errror_log 日志文件中将显示类似这样的信息:
[Mon Nov 17 18:33:55 2008] [notice] Apache/1.3.33 (Unix) configured -- resuming normal operations
[Mon Nov 17 18:33:55 2008] [notice] Accept mutex: sysvsem (Default: sysvsem)

4、打开浏览器器,输入URL,浏览器显示的界面如下:
在Linux上安装Apache - 傲风 - 傲风的博客

5、停止Apache。
aofeng@suse9dev:~/apache_1.3.33/bin> kill -TERM 7250

在Linux上安装Apache - 傲风 - 傲风的博客说明:进程号7250通过查看apache_1.3.33/logs/httpd.pid  文件获得。
在Linux上安装Apache - 傲风 - 傲风的博客提示:apache_1.3.33/logs/errror_log 日志文件中将显示类似这样的信息:
[Mon Nov 17 18:33:44 2008] [notice] caught SIGTERM, shutting down

6、重启Apache。
aofeng@suse9dev:~/apache_1.3.33/bin> kill -HUP 7250

在Linux上安装Apache - 傲风 - 傲风的博客提示:apache_1.3.33/logs/errror_log 日志文件中将显示类似这样的信息:
[Mon Nov 17 18:28:54 2008] [notice] SIGHUP received.  Attempting to restart
[Mon Nov 17 18:28:54 2008] [notice] Apache/1.3.33 (Unix) configured -- resuming normal operations
[Mon Nov 17 18:28:54 2008] [notice] Accept mutex: sysvsem (Default: sysvsem)


参考资料
1、
http://httpd.apache.org/docs/1.3/install.html
2、http://httpd.apache.org/docs/1.3/invoking.html
3、http://httpd.apache.org/docs/1.3/stopping.html

<正文结束>
  评论这张
 
阅读(824)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017