ubuntu10下安装apache
来源:互联网 发布:stata软件怎么下载 编辑:程序博客网 时间:2024/05/16 15:06
1. 上传apache安装文件到服务器上
2. chmod 755 httpd-2.2.16.tar.gz
3. 解压文件。tar -xzvf httpd-2.2.16.tar.gz
4. 编译,安装。./configure --with-layout=Apache --prefix=/opt/httpd-2.2.16 --enable-module=most --enable-mods-shared=most --enable-deflate --enable-module=so --enable-expires --enable-module=rewrite --enable-dav ; make ; make install
5. link到usr目录下。如:cd /usr;ln -s /opt/httpd-2.2.16 apache
6. 配置日志。每天写一个文件,定时删除7天以前的日志.如:vi /usr/apache/conf/httpd.conf
1. ErrorLog "|/usr/apache/bin/rotatelogs /usr/apache/logs/error_log.%Y%m%d 86400 480"
CustomLog "|/usr/apache/bin/rotatelogs /usr/apache/logs/access_log.%Y%m%d 86400 480" combined
JkLogFile "|/usr/apache/bin/rotatelogs /usr/apache/logs/jk_log.%Y%m%d 86400 480"
7. .configure可能出现的错误:
configure: error: mod_deflate has been requested but can not be built due to prerequisite failures
解决方法:apt-get install zlib1g-dev
- ubuntu10下安装apache
- Ubuntu10下Apache-2.2安装
- Ubuntu10下Apache-2.2安装
- Ubuntu10下Apache-2.2安装
- Ubuntu10.10下Apache+Php+Mysql安装
- Ubuntu10.04下安装svn+apache
- Ubuntu10安装apache,mysql,php
- Ubuntu10下Tomcat7安装
- Ubuntu10下Subversion安装
- 三大Web Server:Apache、Nginx、Lighttpd在 Ubuntu10.04 LTS 下的安装配置
- Ubuntu10.04下安装JDK6
- ubuntu10下多用户安装tomcat
- Ubuntu10.04下安装uClinux
- Ubuntu10.04下安装JDK6
- ubuntu10.10下安装googleearth
- Ubuntu10下JDK1.6安装
- Ubuntu10下Memcached1.4.5安装
- Ubuntu10下Eclipse3.6安装
- RegQueryValueEx 耗了我一天的时间 终于解决了
- 取球问题
- printf()的实现
- 自动执行 Java 性能优化
- ARM中Steppingstone启动
- ubuntu10下安装apache
- ADS1.2下的scatter的理解
- Hidden Markov Models : Generating Patterns
- Android学习2——应用组成
- CPSR_cxsf 的含义
- js prototype属性
- 比较炫的验证程序
- S3C2440的时钟描述
- 搭建java socket服务器+mysql+tomcat+memcached环境