码迷,mamicode.com
首页 >  
搜索关键字:salt nginx    ( 26290个结果
高性能Web服务器Nginx的配置与部署研究(4)Nginx常用命令
1. 启动 Nginxpoechant@ubuntu:sudo ./sbin/nginx 2. 停止 Nginxpoechant@ubuntu:sudo ./sbin/nginx -s stoppoechant@ubuntu:sudo ./sbin/nginx -s quit-s都是采用向 Ngin...
分类:Web程序   时间:2014-10-22 17:47:14    阅读次数:134
解剖Nginx·自动脚本篇(7)类型相关脚本系列
1 auto/types/sizeof该脚本的功能,是通过测试程序获知给定的ngx_type的大小。1.1 显示提示信息echo $ngx_n "checking for $ngx_type size ...$ngx_c"cat > $NGX_AUTOCONF_ERR----------------...
分类:其他好文   时间:2014-10-22 17:43:42    阅读次数:197
Nginx源码完全注释(3)ngx_list.h / ngx_list.c
列表头文件ngx_list.h#ifndef _NGX_LIST_H_INCLUDED_#define _NGX_LIST_H_INCLUDED_#include #include typedef struct ngx_list_part_s ngx_list_part_t;// 一个 part ....
分类:其他好文   时间:2014-10-22 17:43:17    阅读次数:230
解剖Nginx·模块开发篇(2)ngx_http_hello_world_module 模块基本结构定义
elloWorld 是一个典型的 location 模块。什么是 location 模块?在 Nginx 中,根据作用域,有 main 模块、server 模块、location 模块。1 模块定义在 HelloWorld 模块中有一个 ngx_http_hello_world_module 变量,...
分类:Web程序   时间:2014-10-22 17:42:13    阅读次数:276
Nginx 源码完全注释(11)ngx_spinlock
Nginx 是多进程模式的,一个 master 与多个 workers,一般工作在多核 CPU 上,所以自旋锁就是必须用到的。Nginx 中的自旋锁的定义,位于 ngx_spinlock.c 中,如下:voidngx_spinlock(ngx_atomic_t *lock, ngx_atomic_i...
分类:其他好文   时间:2014-10-22 17:42:02    阅读次数:232
解剖Nginx·模块开发篇(4)模块开发中的命名规则和模块加载与运行流程
1 命名规则1.1 基本变量基本变量有三个:ngx_module_t 类型的 ngx_http_foo_bar_module;ngx_command_t 类型的数组 ngx_http_foo_bar_commands;ngx_http_module_t 类型的 ngx_http_foo_bar_mo...
分类:其他好文   时间:2014-10-22 17:41:49    阅读次数:258
Nginx源码完全注释(6)core/murmurhash
下面是摘自 Google Code 的 Murmurhash 开源项目主页上的 Murmurhash2,Nginx 就是采用的这个。uint32_t MurmurHash2 ( const void * key, int len, uint32_t seed ){ // 'm' and 'r' a....
分类:其他好文   时间:2014-10-22 17:40:02    阅读次数:246
Nginx 源码完全注释(10)ngx_radix_tree
ngx_radix_tree.h// 未被使用的节点#define NGX_RADIX_NO_VALUE (uintptr_t) -1typedef struct ngx_radix_node_s ngx_radix_node_t;struct ngx_radix_node_s { ng...
分类:其他好文   时间:2014-10-22 17:39:49    阅读次数:208
解剖Nginx·自动脚本篇(4)工具型脚本系列
目录auto/have 向自动配置头文件追加可用宏定义(objs/ngx_auto_config.h)auto/nohave 向自动配置头文件追加不可用宏定义(objs/ngx_auto_config.h)auto/define 向自动配置脚本追加 K-V 宏定义(objs/ngx_auto_con...
分类:其他好文   时间:2014-10-22 17:37:48    阅读次数:270
Nginx源码完全注释(5)core/ngx_cpuinfo.c
/* * Copyright (C) Igor Sysoev * Copyright (C) Nginx, Inc. */#include #include // 如果 CPU 架构是 i386 或 amd64,并且编译器是 GNU Compiler 或 Intel Compiler,则定义 cng...
分类:其他好文   时间:2014-10-22 17:36:15    阅读次数:305
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!