代码拉取完成,页面将自动刷新
同步操作将从 Josin/mbinlogmq 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
cmake_minimum_required(VERSION 3.13)
project(mysql_binlog C)
set(CMAKE_C_STANDARD 99)
# 您需要更新下面的三个库路径即可
set(MYSQL_INCLUDE /usr/local/mysql/include) # 您系统的MySQL头文件路径
set(MYSQL_LIBRARY_DIR /usr/local/mysql/lib) # 您系统的MySQL库文件路径
set(CURL_DIR /usr/local/Cellar/curl/7.58.0) # 您系统的curl安装路径
set(
ALL_PERMISSIONS
OWNER_WRITE OWNER_READ OWNER_EXECUTE
GROUP_READ GROUP_WRITE GROUP_EXECUTE
WORLD_READ WORLD_WRITE WORLD_EXECUTE
)
include_directories(
.
src
src/json
src/xml
src/tool
src/binlog
${CURL_DIR}/include
${MYSQL_INCLUDE}
)
link_directories( ${MYSQL_LIBRARY_DIR} ${CURL_DIR}/lib )
aux_source_directory(. MAIN_SOURCE)
aux_source_directory(src/json JSON_SOURCE)
aux_source_directory(src/xml XML_SOURCE)
aux_source_directory(src/tool TOOL_SOURCE)
aux_source_directory(src/binlog BINLOG_SOURCE)
add_executable(
mbinlogmq
main.c
${MAIN_SOURCE} ${JSON_SOURCE} ${XML_SOURCE} ${TOOL_SOURCE} ${BINLOG_SOURCE}
)
target_link_libraries(mbinlogmq mysqlclient pthread curl m)
install(TARGETS mbinlogmq RUNTIME DESTINATION /usr/local/bin)
install(FILES conf/binlog.xml DESTINATION /etc/mbinlogmq)
install(DIRECTORY DESTINATION /var/log/mbinlogmq DIRECTORY_PERMISSIONS ${ALL_PERMISSIONS})
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。