一、安装QConf :
1. 使用源码安装 1)git clone https://github.com/Qihoo360/QConf.git 2) cd QConf && mdkir build && cd build && cmake .. 3) make 4) make install 5)
vi QCONF_INSTALL_PREFIX/conf/idc.conf6)
echo test > QCONF_INSTALL_PREFIX/conf/localidc7)
cd QCONF_INSTALL_PREFIX/bin && sh agent-cmd.sh start2. 使用rpm包安装 1) 根据不同的CentOS 系统下载不同的rpm包 下载页面:https://github.com/Qihoo360/QConf/releases 如果是CentOS 6.*,则下载:QConf-1.0.0-1.el6.x86_64.rpm 如果是CentOS 5.*,则下载:QConf-1.0.0-1.el5.x86_64.rpm 2) rpm -ivh QConf-1.0.0-1.el5.x86_64.rpm
二、使用QConf
1. 启动qconf-agent 1) cd /usr/local/qconf 2) cd bin && sh agent-cmd.sh start 3) export PATH=$PATH:/usr/local/qconf/bin 2. 先部署zookeeper服务器 1) wget http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.3.6/zookeeper-3.3.6.tar.gz 2) tar -zxv -f zookeeper-3.3.6.tar.gz 3) cd zookeeper-3.3.6/conf && cp zoo_sample.cfg zoo.cfg 4) cd ../bin && sh zkServer.sh start 5) 使用客户端链接到zookeeper:
sh zkCli.sh