免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3090 | 回复: 3

[Web] [学习] Apache入门经验总结 [复制链接]

论坛徽章:
0
发表于 2006-04-10 21:59 |显示全部楼层
Apache HTTPd 使用记录

1,Download the software: httpd-2.2.0.tar.gz
      http://httpd.apache.org/download.cgi
2,Compiling and Installing
   1)extract:tar -zxvf httpd-2.2.0.tar.gz
   2)./configure --prefix=/usr/local/apache ----enable-rewrite=shared ----enable-speling=shared
   3)make
   4)make install
   5)customize---vi /usr/local/apache/conf/httpd.conf
      ServerRoot "/usr/local/apache"(制定服务器的根目录)

      Listen 192.168.71.88:80(此处是更改默认的端口,可以写多个,应用于一块网卡绑定多个IP)
      #Listen 80(表示所有IP均为80端口)
     
      ServerName zhqmail.scut.edu.cn:80(域名)

      DocumentRoot "/var/www/html"(设置存放网页的根目录)

      <Directory />(全局权限设置)
    Options FollowSymLinks
    #AllowOverride None
    AllowOverride all
    Order deny,allow
    #Deny from all
    Allow from all
     </Directory>

   <Directory "/var/www/html">(网页根目录权限设置)
     Options Indexes FollowSymLinks
     Allow from all
   </Directory>

   <IfModule dir_module>(设置默认的启动文件,默认为index.html,可以个性化更改)
    DirectoryIndex index.html
    </IfModule>
3,startting and stopping the service
   
   ln /usr/local/apache/bin/apchectl /etc/init.d/httpd
   系统启动:/etc/init.d/httpd start
   系统停止:/etc/init.d/httpd stop

[ 本帖最后由 HonestQiao 于 2006-6-2 11:18 编辑 ]

论坛徽章:
0
发表于 2006-05-31 12:01 |显示全部楼层

回复 1楼 matrix_z83 的帖子

For Solaris10的安装:
在sunfreeware里找到apache-2.2.0-sol10-x86-local.gz;gunzip一下,再pkgadd -d 一下;
提前要先装:The apr-1.2.2, aprutil-1.2.2, expat, libiconv, gdbm, db-4.4.20.NC, openssl-0.9.8b, and either the libgcc or gcc must be installed.上述内容在sunfreeware里都有的。
启停方式一样。

论坛徽章:
0
发表于 2006-06-01 14:08 |显示全部楼层
支持一下

论坛徽章:
0
发表于 2006-06-01 15:09 |显示全部楼层
我觉得写的还是不错的,但我的建议是多看官方文档,你会了解得更多东西;
多实战,安装,整合,调节,压力测试,你会遇到很多问题,总结下来的就是你的财富。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP