摘要: 互斥锁声明 typedef struct { union { CRITICAL_SECTION cs; /* Critical section handle (used for non-timed mutexes) */ HANDLE mut; /* Mutex handle (used for t 阅读全文
posted @ 2022-03-25 18:36 Aemnprsu_wx 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 1.安装librdkafka github下载源代码 编译 参考example写测试代码 example只带文件可直接执行 写好后运行 echo "/usr/local/lib" >> /etc/ld.so.conf ldconfig 编译语句示例 gcc test_consumer.c -o te 阅读全文
posted @ 2022-03-22 17:15 Aemnprsu_wx 阅读(404) 评论(0) 推荐(0) 编辑
摘要: /*结构体说明 rd_kafka_toppar_s:topic & partition combination rd_kafka_topic: rd_kafka_q_s rd_kafka_q_t:队列操作 */ else if (mode == 'C') { /* * Consumer */ //初 阅读全文
posted @ 2022-03-21 15:24 Aemnprsu_wx 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 消息体定义:(消费者消息) 包含topic,partition,value(*key),消息长度,offset typedef struct rd_kafka_message_s { rd_kafka_resp_err_t err; /**< Non-zero for error signaling 阅读全文
posted @ 2022-03-17 15:26 Aemnprsu_wx 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 单机版: 测试cpu $ grep -q sse4_2 /proc/cpuinfo && echo "SSE 4.2 supported" || echo "SSE 4.2 not supported" sudo yum install yum-utils sudo rpm --import htt 阅读全文
posted @ 2022-02-07 16:34 Aemnprsu_wx 阅读(53) 评论(0) 推荐(0) 编辑
摘要: windows下vue安装:https://www.cnblogs.com/nc923/p/14061954.html 阅读全文
posted @ 2021-10-13 17:40 Aemnprsu_wx 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 用于定义客户端脚本 比如javascript <script>可以包含脚本语句,可以通过src属性指向外部脚本文件 通常用于图片操作,表单验证和内容动态更新 <noscript> 提供无法使用脚本时的替代内容,比如在浏览器禁用脚本或者不支持脚本时 才会显示noscript功能 阅读全文
posted @ 2021-10-12 15:37 Aemnprsu_wx 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 1.表格 由<table>标签定义 border定义表格边宽度 <table border="1"> <tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> </tr> <tr> <td>row 2, cell 1</td> <td>row 2, cel 阅读全文
posted @ 2021-10-12 15:29 Aemnprsu_wx 阅读(25) 评论(0) 推荐(0) 编辑
摘要: css:层叠样式表 css在html4开始使用 为了更好渲染HTML元素 通过以下方式添加到html中 1.内联:html元素中使用style属性 2.内部样式表:在html文档头部<head>区域使用<style>元素包含css 3.外部引用:使用外部css文件 语法: CSS 规则由两个主要的部 阅读全文
posted @ 2021-10-12 11:56 Aemnprsu_wx 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1.超链接:a a标签 文本超链接 <a href="https://www.runoob.com" target="left">这是一个链接 </a> 展示效果 最主要属性: href:指向一个目标(必需) 属性值为一个链接 。可以是相对路径 可以是完整地址 title:鼠标放到超链接上显示的内容 阅读全文
posted @ 2021-10-11 18:44 Aemnprsu_wx 阅读(35) 评论(0) 推荐(0) 编辑