Coder Social home page Coder Social logo

server's Introduction

server 服务器框架

跟着sylar-yin写的服务器框架

日志模块

配置模块

使用yaml文件进行配置,使用c++的yaml-cpp库对yaml进行解析

yaml-cpp使用方法

  1. 项目地址: https://github.com/jbeder/yaml-cpp.git
  2. 拉取到本地进行安装
git clone https://github.com/jbeder/yaml-cpp.git
cd yaml-cpp
mkdir build && cd build
cmake -D BUILD_SHARED_LIBS=ON .. 
make -j 4
sudo make install 

:如果yaml-cpp安装到项目内,make install 步骤可省略,在make之后直接讲build文件夹下的libyaml-cpp.so,libyaml-cpp.so.0.x,libyaml-cpp.so.0.x.0三个动态库文件,拷贝到项目中对应的文件夹中即可 3. 项目中使用,我这里使用的cmake

find_package (PkgConfig REQUIRED)
pkg_check_modules(YAML_CPP REQUIRED yaml-cpp)

include_directories(${YAML_CPP_INCLUDE_DIR})
link_libraries(${YAML_CPP_LIBRARIES})

server's People

Contributors

zuoriqiufeng avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.