首 页文章中心

Linux学习网

您的位置Linux学习网 > Linux服务器应用 > 文章内容

RH Enterprise Linux AS4 U4下安装Apache

作者:佚名  来源:不详  发布时间:2008-6-25 8:23:00
1.拷贝安装包到/usr/local,并在目标目录下进行解压。
class=codetop>CODE: class=codemain>[root@localhost www]# cp httpd-2.0.58.tar.gz /usr/local

[root@localhost www]# cd /usr/local

[root@localhost local]# tar -zxvf httpd-2.0.58.tar.gz

2.配置安装参数,安装的目标目录为/usr/local/apache2,一定要设置enable-mods-shared=all,否则在编译的时候会报错。
class=codetop>CODE: class=codemain>[root@localhost local]# cd httpd-2.0.58

[root@localhosthttpd-2.0.58]#./configure --prefix=/usr/local/apache2

--enable-module=most

--enable-shared=max

--enable-so

3.编译并安装。
class=codetop>CODE: class=codemain>[root@localhost httpd-2.0.58]# make

[root@localhost httpd-2.0.58]# make install

4.启动Apache,并测试。
class=codetop>CODE: class=codemain>[root@localhost httpd-2.0.58]# cd /usr/local/apache2/bin

[root@localhost bin]# ./apachectl start

打开浏览器,并在地址栏中输入主机的IP地址

http://192.168.1.10

如果出现以下画面则说明安装成功。
收藏本页到: 365Key | del.icio.us | | 添加到雅虎收藏+
  • 网站帮助 - 广告合作 - 网站地图