|
为了了解和学习linux,本人在虚拟机上安装centos6.5-min 最小版本
1. yum -y install gcc 编译c源码所需软件和包
2. yum -y install gcc-c++ 编译c++源码所需软件和包
3.安装apache
a.在apache网站 下载 apr-1.5.1.tar.gz , apr-util-1.5.4.tar.gz, httpd-2.4.10.tar.gz 源码包
b.去pcre.org网站下载 pcre-8.36.tar.gz 源码包
c.tar zxvf apr-1.5.1.tar.gz 解压 进入 apr.1.5.1 目录
d ./configure --prefix=/usr/local/apr 然后 make && make install
e apr-util-1.5.4.tar.gz pcre-8.36.tar.gz 安装类似
f: ./configure --prefix=/usr/local/apache --enable-so --enable-rewrite --with-mpm=worker --with-pcre=/usr/local/pcre --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
g: 安装后 /usr/local/apache/bin/apachectl -t 可以检查
AH00557: httpd: apr_sockaddr_info_get() failed for Kenel-Virtual
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using
127.0.0.1. Set the 'ServerName' directive globally to suppress this message
Syntax OK
h : 修改 httpd.conf 找到ServerName ,然后使ServerName localhost:80 生效
执行 /usr/local/apache/bin/apachectl -t
Syntax OK
表示已经ok,然后启动 检查 |
|
|