上一页 1 2 3 4 5 6 ··· 15 下一页
摘要: 1. 添加 EPEL 9 仓库 sudo dnf install epel-release -y 2. 安装 Supervisor sudo dnf install supervisor -y sudo systemctl enable supervisor # 设置开机自启 3.创建 Superv 阅读全文
posted @ 2025-07-02 16:39 BlackSnow 阅读(60) 评论(0) 推荐(0)
摘要: 1. 安装 Redis sudo dnf install redis sudo systemctl enable redis # 设置开机自启 2. 替换 Redis 配置文件 sudo mv /etc/redis/redis.conf /etc/redis/redis.conf.bak # 备份原 阅读全文
posted @ 2025-07-02 14:25 BlackSnow 阅读(8) 评论(0) 推荐(0)
摘要: 安装开发套件 sudo dnf groupinstall "Development Tools" 阅读全文
posted @ 2025-07-02 14:06 BlackSnow 阅读(4) 评论(0) 推荐(0)
摘要: 0.建立磁盘阵列并安装操作系统 1.安装开发套件 2.安装Redis 3.安装Supervisor 4.安装Kafka服务 5.安装librdkafka相关依赖库 6.搭建前置机配置器所需环境(cl3803x64平台) 阅读全文
posted @ 2025-07-02 14:02 BlackSnow 阅读(7) 评论(0) 推荐(0)
摘要: gprof 是 GNU 性能分析工具(GNU Profiler),用于分析程序的 时间消耗分布 和 函数调用关系。它通过统计采样和调用图(Call Graph)帮助开发者定位性能瓶颈。以下是详细使用指南: 使用步骤 1. 编译时启用 profiling 在 gcc/g++ 编译时添加 -pg 选项: 阅读全文
posted @ 2025-06-23 11:15 BlackSnow 阅读(252) 评论(0) 推荐(0)
摘要: Kafka 集群搭建指南 0. 硬盘分区处理 # 若硬盘已分区需先删除原分区 wipefs -a -f /dev/sda 注:路径根据实际修改 1. 硬盘格式化与挂载 lsblk # 检测磁盘(假设磁盘为/dev/sdb) pvcreate /dev/sdb # 创建物理卷 vgcreate kaf 阅读全文
posted @ 2025-06-16 13:21 BlackSnow 阅读(56) 评论(0) 推荐(0)
摘要: 开发环境安装指南 1. 安装开发套件 sudo dnf groupinstall "Development Tools" 2. 安装 Redis sudo dnf install redis sudo systemctl enable redis # 设置开机自启 3. 安装 Supervisor 阅读全文
posted @ 2025-06-16 11:07 BlackSnow 阅读(24) 评论(0) 推荐(0)
摘要: 1.问题代码 class OneChannelData{ ... bool combine(const OneChannelData &oneChannelData) { try { /* 合并两个 std::array */ /* 不会检查越界 */ std::copy(oneChannelDat 阅读全文
posted @ 2025-04-27 14:35 BlackSnow 阅读(15) 评论(0) 推荐(0)
摘要: 在线程中抛出的异常默认不会自动传递到主线程(或父线程)。如果子线程中未捕获异常,程序会直接终止(调用 std::terminate())。若需在线程间传递异常,需手动捕获并处理。以下是具体分析和解决方案: 1. 默认行为:异常不跨线程传递 问题示例 #include <thread> #includ 阅读全文
posted @ 2025-04-23 15:30 BlackSnow 阅读(32) 评论(0) 推荐(0)
摘要: std::vector<YourClass> 即使YourClass是可平凡复制类型也回应发异常 引发异常的代码如下: SamplePointData &operator=(const SamplePointData &samplePointData) { if (this != &samplePo 阅读全文
posted @ 2025-04-23 15:25 BlackSnow 阅读(41) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 15 下一页