Giter VIP home page Giter VIP logo

linux-cpp-comm-architecture's Introduction

一. Nginx简介 Nginx是一个轻量级Web服务器,支持高并发,可靠性高。 Nginx的进程模型:

  1. ./nginx后输入ps -ef | grep nginx可以看到master进程(root用户)和worker进程(系统用户),多个worker进程是master进程的子进程
  2. 支持不中断服务的情况下重新加载配置(热启动)./nginx -s reload
  3. ./nginx -s stop和./nginx -s quit都可以关闭nginx,前者立刻关闭,后者不接收新的连接,已连接部分服务完关闭

二.服务器架构项目目录 主目录nginx

  1. _include目录,存放所有头文件
  2. app目录,放.c应用程序 (1). link_obj目录,存放编译后产生的.o文件 (2). dep目录 (3). nginx.c主文件main函数 (4). ngx_conf.c,普通文件
  3. signal目录。存放和信号处理有关的.c文件
  4. proc目录,存放和进程处理有关的
  5. misc目录,杂合的.c文件
  6. net目录,存放和网络处理有关的.c文件

linux-cpp-comm-architecture's People

Contributors

ziqiuzhou avatar

Watchers

James Cloos avatar  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.