安装apache
2017-09-29 17:36:19 0 举报
apache安装
作者其他创作
大纲/内容
修改httpd-vhosts.conf
yum install zlib zlib-devel -yrpm -qa zlib zlib-devel
ServerAdmin example@example.com DocumentRoot \"/application/apache2.2.31/htdocs/www\" ServerName www.etiantian.org ServerAlias etiantian..com ErrorLog \"logs/www-error_log\" CustomLog \"logs/www-access_log\" common
创建用户
检查配置文件启动apache
下载apache软件包
./configure --prefix=/application/apache2.2.31 --enable-deflate --enable-headers --enable-modules=most --enable-so --with-mpm=woker --enable-rewritemakemake install
useradd www -s /sbin/nologin -M
bin/apachectl -tbin/apachectl start
结束
创建软链接
网络班1期-杨飏
编译并安装apache
修改主配置文件
开始
wget -q http://mirrors.tuna.tsinghua.edu.cn/apache//httpd/httpd-2.2.31.tar.gztar xf httpd-2.2.31
安装zlib库
ln -s /application/apache2.2.31/ /application/apache
0 条评论
下一页