我们今天来学习一下如何安装源码包。以安装Apache为例(注意要把系统自带的删除掉)

   1.下载httpd源码包并解压

源码包安装

   2.安装Development tools包组(这个包组里有make等工具。)

源码包安装

   3.查看README INSTALL文件

   4.编译安装:

   (1)./configure --prefix=/app/apache22 --sysconfdir=/etc/apache22 --enable-rewrite

   (2)make(路径要在包里面)

   (3)make install (需root权限)

源码包安装

   5.将路径添加到PATH变量中,开启Apache

        export PATH=$PATH:/app/apache24/bin

        apachectl start

源码包安装

   6.清空防火墙

       centos7:systemctl stop firewalld.service

       systemctl disable firewalld.service

       centos6:service iptables stop

       service iptables save

源码包安装

   7.查看端口:

    netstat -tnl

源码包安装

   8.修改文件;并在浏览器打开

    vim /app/apache24/htdocs/index.html

源码包安装源码包安装

转载于:https://blog.51cto.com/13560258/2069590

相关文章:

  • 2021-10-29
  • 2021-09-17
  • 2021-08-12
  • 2022-02-04
  • 2022-01-10
  • 2021-08-01
  • 2021-11-12
猜你喜欢
  • 2021-07-12
  • 2021-09-03
  • 2021-08-09
  • 2021-04-18
相关资源
相似解决方案