1.拷贝安装包到/usr/local,并在目标目录下进行解压。
2.配置安装参数,安装的目标目录为/usr/local/apache2,一定要设置enable-mods-shared=all,否则在编译的时候会报错。
3.编译并安装。
4.启动Apache,并测试。
打开浏览器,并在地址栏中输入主机的IP地址
如http://192.168.1.10
如果出现以下画面则说明安装成功。
|
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
如果出现以下画面则说明安装成功。

添加到雅虎收藏