# learn-Brpc **Repository Path**: walter80/learn-Brpc ## Basic Information - **Project Name**: learn-Brpc - **Description**: 百度开源框架Brpc源码学习笔记---macOS Catalina 10.15.3 (19D76) - **Primary Language**: C++ - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-03-07 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # learn-Brpc #### 介绍 百度开源框架Brpc源码学习笔记---macOS Catalina 10.15.3 (19D76) #### 软件架构 软件架构说明 #### 安装教程 1. brew install openssl gnu-getopt coreutils 2. brew install gflags protobuf leveldb 3. brew install gperftools #### 使用说明 1. export ALL_PROXY=socks5://127.0.0.1:1086 2. cd ~ 3. git clone https://github.com/google/googletest && cd googletest/googletest && mkdir bld && cd bld && cmake -DCMAKE_CXX_FLAGS="-std=c++11" .. && make && cd - ### Compile brpc with config_brpc.sh git clone brpc, cd into the repo and run ```shell $ git clone https://github.com/apache/incubator-brpc.git $ cd incubator-brpc $ sh config_brpc.sh --headers=/usr/local/include --libs=/usr/local/lib --cc=clang --cxx=clang++ $ make ``` #### Run example ```shell $ cd example/echo_c++ $ make $ ./echo_server & $ ./echo_client 访问控制台:http://主机IP:8000/,监控RPC http://192.168.3.4:8000/ ``` #### 在mac上开发,所以首先得有个Ubuntu镜像 ``` 1. docker run -it --name="gpp" ubuntu /bin/bash 2. apt-get update && apt-get install -y ubuntu-dev-tools vim 3. docker commit gpp zhuanxuhit/ubuntu:v1