centos7 安装http service中make出错

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos7 安装http service中make出错相关的知识,希望对你有一定的参考价值。

apr、pcre所有程序均已安装,配置过程没问题,就是make过程会出现这个错误。求大神解答。

参考技术A 你是不是要apache? 为啥不用yum或apt-get去安装httpd呢?追问

我就是直接复制官网的下载链接根据它的安装手册一步步来的,在配置过程中已经把提示该安装的都安装了,到了这一步就下不去了,

参考技术B 缺少安装源

在 CentOS8 上安装 zookeeper-3.5.9 服务

官网地址 http://zookeeper.apache.org/

1、创建 /usr/local/services/zookeeper 文件夹:

 mkdir -p /usr/local/services/zookeeper

2、进入到 /usr/local/services/zookeeper 目录中:

 cd /usr/local/services/zookeeper

3、下载 apache-zookeeper-3.5.9-bin.tar.gz

 wget https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/zookeeper-3.5.9/apache-zookeeper-3.5.9-bin.tar.gz

4、解压缩 apache-zookeeper-3.5.9-bin.tar.gz

tar -zxvf apache-zookeeper-3.5.9-bin.tar.gz

5、进入到 /usr/local/services/zookeeper/apache-zookeeper-3.5.9-bin/conf 目录中:

 

 cd apache-zookeeper-3.5.9-bin/conf/

6、复制 zoo_sample.cfg 文件的并命名为为 zoo.cfg:

 cp zoo_sample.cfg zoo.cfg

7、用 vim 打开 zoo.cfg 文件并修改其内容为如下:   

# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just 
# example sakes.
#dataDir=/tmp/zookeeper
# 数据文件夹
dataDir=/usr/local/services/zookeeper/apache-zookeeper-3.5.9-bin/data

# 日志文件夹
dataLogDir=/usr/local/services/zookeeper/apache-zookeeper-3.5.9-bin/logs
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
#maxClientCnxns=60
#
# Be sure to read the maintenance section of the 
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1

8、保存并关闭 zoo.cfg 文件:

     

9、进入到 /usr/local/services/zookeeper/apache-zookeeper-3.5.9-bin/bin 目录中:

 cd ../bin/

10、用 vim 打开 /etc/ 目录下的配置文件 profile:  

 vim /etc/profile

并在其尾部追加如下内容:

 # idea - apache-zookeeper-3.5.9-bin config start - 2016-09-08



    export ZOOKEEPER_HOME=/usr/local/services/zookeeper/apache-zookeeper-3.5.9-bin/

    export PATH=$ZOOKEEPER_HOME/bin:$PATH

    export PATH



    # idea - zookeeper-3.4.9 config start - 2016-09-08


11、使 /etc/ 目录下的 profile 文件即可生效:

 source /etc/profile

12、启动 zookeeper 服务: 

zkServer.sh start

如打印如下信息则表明启动成功:

    ZooKeeper JMX enabled by default

    Using config: /usr/local/services/zookeeper/apache-zookeeper-3.5.9-bin/bin/../conf/zoo.cfg

    Starting zookeeper ... STARTED

 

13、查询 zookeeper 状态:

zkServer.sh status

14、关闭 zookeeper 服务:

 zkServer.sh stop

 如打印如下信息则表明成功关闭:

    ZooKeeper JMX enabled by default

    Using config: /usr/local/services/zookeeper/apache-zookeeper-3.5.9-bin/bin/../conf/zoo.cfg

    Stopping zookeeper ... STOPPED

 

15、重启 zookeeper 服务:  

  zkServer.sh restart

 如打印如下信息则表明重启成功:

    ZooKeeper JMX enabled by default

    Using config: /usr/local/services/zookeeper/apache-zookeeper-3.5.9-bin/bin/../conf/zoo.cfg

    ZooKeeper JMX enabled by default

    Using config: /usr/local/services/zookeeper/apache-zookeeper-3.5.9-bin/bin/../conf/zoo.cfg

    Stopping zookeeper ... STOPPED

    ZooKeeper JMX enabled by default

    Using config: /usr/local/services/zookeeper/apache-zookeeper-3.5.9-bin/bin/../conf/zoo.cfg

    Starting zookeeper ... STARTED

以上是关于centos7 安装http service中make出错的主要内容,如果未能解决你的问题,请参考以下文章

centos7 关闭firewall安装iptables并配置

在虚拟机中安装CentOS7

CentOS7 相关配置

Centos7安装Apache Http服务器无法访问如何解决

CentOS7 上安装 Zookeeper-3.4.9 服务

在 CentOS7 上安装 Zookeeper-3.4.9 服务