编译

将安装包放至指定位置并完成环境准备后,可直接执行compile_build.sh脚本进行编译,整个编译过程预计需要60分钟以上。如果涉及到版本切换,需先执行compile_clean.sh脚本清理编译残留。
compile_build.sh:
source ./compile_liboath.sh # 引入compile_liboath.sh脚本 source ./compile_zookeeper.sh # 引入compile_zookeeper.sh脚本 source ./compile_client.sh # 引入compile_client.sh脚本 source ./compile_server.sh # 引入compile_server.sh脚本 set "-e" function main() { cd /home compile_liboath_build # 编译liboath compile_zookeeper_build # 编译zookeeper compile_client_build # 编译client compile_server_build # 编译server } main
编译:
sh compile_build.sh
父主题: 使用示例