Apache httpd 2.2.8 安装教程 - 详细步骤 (httpd-2.2.8.tar.gz 安装指南)

91 阅读1分钟

准备工作

  1. 先下载httpd-2.2.8.tar.gz文件​,下载链接:pan.quark.cn/s/fffb12706…

  1. 确保你的Linux系统已经安装了gcc编译器

安装步骤

  1. 解压文件:

    tar -zxvf httpd-2.2.8.tar.gz
    

     

  2. 进入解压后的目录:

    cd httpd-2.2.8
    

     

  3. 配置安装选项:

    ./configure --prefix=/usr/local/apache2
    

    (这里指定安装到/usr/local/apache2目录)

  4. 编译:

    make
    

     

  5. 安装:

    make install
    

     

启动Apache

  1. 进入安装目录:

    cd /usr/local/apache2/bin
    

     

  2. 启动服务:

    ./apachectl start
    

     

检查是否成功

打开浏览器访问:

http://你的服务器IP

如果看到"It works!"页面,说明安装成功了