1、qconf开源项目网址:
https://github.com/Qihoo360/QConf
2、qconf安装手册
https://github.com/Qihoo360/QConf/blob/master/README_ZH.md
3、编译管理后台
cd QConf-master/manager
mkdir build && cd build && cmake ..
4、启动qconf后台管理服务
./web_server -listening_port 8081
5、后台管理服务访问网址
http://10.20.104.129:9081/qconf_manage.cgi
6、编译qconf-client-1.0.0.jar
(1)进入目录“\QConf-master\driver\java”
(2)修改Makefile文件,修改如下内容为正确的值
JNI_DIR = /usr/java/jdk1.7.0_55/include/
JNI_MD_DIR = /usr/java/jdk1.7.0_55/include/linux/
(3)执行make
(4)执行make install
7、编译java文件
javac -classpath qconf-client-1.0.0.jar TestQconf.java
8、执行jar文件(TestQconf.jar)
java -classpath qconf-client-1.0.0.jar:. TestQconf
网友评论