在CentOS6安装apache源码包
来源:互联网 发布:好用的洗面奶知乎 编辑:程序博客网 时间:2024/06/05 14:07
一、安装准备
1.安装C语言编辑器:gcc
2.在http://mirror.bit.edu.cn/apache/httpd上下载安装包
3.安装WinSCP
将下载在windows上的httpd安装拷贝到Linux /root下
二、安装
1.解压httpd安装包:在/root下输入 tar -zxvf httpd-2.2.34.tar.gz。
2.进入解压目录:cd httpd-2.2.34。
3.查看安装帮助:vi INSTALL。(步骤在INSTALL文件中带$的语句)
4.指定安装路径: ./configure --prefix=/usr/local/apache。
我安装时出现错误:configure error:Cannot use an external APR with the bundled APR-util。
此时需要安装apr和apr-util。
5.安装apr:
cd srclib/apr
./configure --prefix=/usr/local/apr
make && make install
6.安装apt-util:
cd srclib/apr-util
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make && make install
7.安装apache:
./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
make && make instal
三、启动
prefix/bin/apachectl start:/usr/local/apache/bin/apachectl start。
报错httpd:Could not reliably determine the server's fully qualified domain name,using localhost.localdomain for ServerName.
- 在CentOS6安装apache源码包
- centos6.5源码安装Apache
- centos6.4源码安装apache 服务
- centOs6.7安装mysql5.6源码包
- 用源码包安装Apache
- CentOS7源码包安装apache
- Linux安装apache源码包
- CentOS6.4 LVS rpm包安装及源码安装
- Linux[Centos6.3] 源码编译安装配置 SVN+Apache
- linux apache 源码包安装与配置
- lamp之源码包安装apache
- 【Ubuntu 16】源码包安装Apache Httpd
- linux下源码包安装apache
- CentOS源码包安装apache、nginx服务
- linux下源码包安装apache
- node.js源码包安装 centos6.4 x86_64
- CentOs6.5 x64 安装源码包MySql5.6.38教程
- centos6.5安装 apache
- 五、tensorflow之传入值(placeholder)
- 类的静态成员的应用
- openstack mitaka neutron 官方安装步骤
- BZOJ 3100 排列——单调队列
- R语言朴素贝叶斯包的解释
- 在CentOS6安装apache源码包
- effective java(17) 之要么为继承而设计,并提供文档说明,要么就禁止继承
- 约瑟夫问题
- 机器翻译
- 左右外连接与内连接
- 孤儿进程与僵尸进程
- LintCode 最接近零的子数组和
- 习题1.6程序开发的基本步骤
- webdriver.chrome()禁止加载图片