# CodeProject **Repository Path**: jarven-zhang/code-project ## Basic Information - **Project Name**: CodeProject - **Description**: 1. 工具库(字符串处理) 2. 常见算法的实现 3. STL的实现 - **Primary Language**: C++ - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-03 - **Last Updated**: 2025-09-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CodeProject #### 介绍 1. 基于Boost.Asio库实现的HTTP服务器,支持异步IO 2. 支持对象池和线程池 3. 支持超时控制 4. 使用glog记录日志 #### 安装boost # ubuntu/debian版本 apt-get install libboost-all-dev # centos/fedora版本 yum install boost-devel #### 安装glog ### 针对centos8版本的glog安装问题,需要安装gflags ## 安装gflags # 1. c通用(dnf 包管理器) sudo dnf install -y epel-release # 2. 刷新仓库缓存 sudo dnf clean all && sudo dnf makecache # 3. 安装 gflags-devel sudo dnf install -y gflags-devel ## 源安装glog git clone https://github.com/google/glog.git 或使用gitee的镜像 git clone https://gitee.com/mirrors/glog.git cd glog mkdir build && cd build cmake .. make -j8 make install ### 解决动态库找不到GLOG_EXPORT的问题 #define GLOG_USE_GLOG_EXPORT #include # 检查动态库中是否包含 GLOG_EXPORT 符号 nm -D /usr/local/lib64/libglog.so | grep GLOG_EXPORT # 更新ldconfig缓存 sudo ldconfig #### 自测方法 1. curl --connect-timeout 5 --max-time 10 http://localhost:8012/ 2. 使用http client 测试, 源码:git@gitee.com:jarven-zhang/my-http-client.git