博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

文章分类 -  nginx

摘要:https://jasonhzy.github.io/2016/08/25/nginx-alias-root/ http://blog.csdn.net/21aspnet/article/details/6583335 nginx指定文件路径有两种方式root和alias,root与alias主要区 阅读全文

posted @ 2017-06-23 17:00 bw_0927 阅读(29135) 评论(0) 推荐(2)

摘要:http://cifer.me/2014-07-07-common-gateway-interface-evolution-2/ http://chriswu.me/blog/writing-hello-world-in-fcgi-with-c-plus-plus/ CGI 由于前面提到的性能问题, 阅读全文

posted @ 2017-02-28 16:40 bw_0927 阅读(2560) 评论(0) 推荐(0)

摘要:http://blog.csdn.net/allenlinrui/article/details/19419721 http://www.cnblogs.com/skynet/p/4173450.html 1.介绍 Nginx - 高性能web server,这个不用多说了,大家都知道。 FastC 阅读全文

posted @ 2017-02-28 15:28 bw_0927 阅读(240) 评论(0) 推荐(0)

摘要:http://blog.csdn.net/chosen0ne/article/details/7754608 http://blog.csdn.net/fjslovejhl/article/details/8167522   在ngx_http_core_main_conf_t中有ports属性,保 阅读全文

posted @ 2016-03-15 12:22 bw_0927 阅读(374) 评论(0) 推荐(0)

摘要:http://blog.csdn.net/zcc_0015/article/details/37618717 man epoll: Possible Pitfalls and Ways to Avoid Them o Starvation (edge-triggered) If there is a 阅读全文

posted @ 2016-03-09 18:11 bw_0927 阅读(613) 评论(0) 推荐(0)

摘要:http://www.cnblogs.com/my_life/articles/5259137.html http://www.pagefault.info/?p=46 man epoll: Q6 Will closing a file descriptor cause it to be remov 阅读全文

posted @ 2016-03-09 14:46 bw_0927 阅读(726) 评论(0) 推荐(0)

摘要:http://blog.csdn.net/fjslovejhl/article/details/8145134 在前面的文章里面就说到了在事件循环中除了要处理所有的从epoll中获取的事件之外,还要处理一些timer事件,这篇文章就讲讲Nginx的timer是如何实现的。 在讲Nginx的实现之前, 阅读全文

posted @ 2016-03-08 10:54 bw_0927 阅读(580) 评论(0) 推荐(0)

摘要:http://blog.chinaunix.net/uid-27767798-id-3757684.html http://blog.csdn.net/brainkick/article/details/6842216 http://blog.sunheqiubai.com/?cat=5&paged 阅读全文

posted @ 2016-03-03 16:15 bw_0927 阅读(257) 评论(0) 推荐(0)

摘要:http://blog.chinaunix.net/uid-27767798-id-3840094.html http://blog.csdn.net/brainkick/article/details/7554206     nginx的所有配置结构体全部放在一个cycle的四级指针中,本文就具体 阅读全文

posted @ 2016-03-03 16:10 bw_0927 阅读(1027) 评论(0) 推荐(0)

摘要:     ngx_module_t ngx_mail_module = {};    ngx_module_t ngx_openssl_module = {};     http://blog.csdn.net/fjslovejhl/article/details/8134008       ngx 阅读全文

posted @ 2016-03-03 14:22 bw_0927 阅读(428) 评论(0) 推荐(0)

摘要:http://techlog.cn/article/list/10182649 子进程共有一下五种模式,即 respawn 参数有以下取值: #define NGX_PROCESS_NORESPAWN -1 // 子进程退出时,父进程不再创建#define NGX_PROCESS_JUST_SPAW 阅读全文

posted @ 2016-02-29 16:50 bw_0927 阅读(293) 评论(0) 推荐(0)

摘要:http://www.cnblogs.com/xiaohuo/archive/2012/07/19/2599881.html ngx获取时间有两个方法,一个是ngx_gettimeofday(),另一个是ngx_timeofday()。前者就是gettimeofday(),我们重点来分析一下后者。 阅读全文

posted @ 2016-02-25 12:28 bw_0927 阅读(1324) 评论(0) 推荐(0)

摘要:http://techlog.cn/article/list/10182629 阅读全文

posted @ 2016-02-23 09:07 bw_0927 阅读(104) 评论(0) 推荐(0)

摘要:int sigsuspend(const sigset_t *mask); 给进程使用的 //把当前进程的信号掩码位临时替换为参数mask指定的值,然后暂停当前进程。 当前进程如果收到了来自mask中的信号,进程不会做响应;收到其他信号会进行处理。 sigsuspend() temporarily 阅读全文

posted @ 2016-02-19 18:10 bw_0927 阅读(205) 评论(0) 推荐(0)

摘要:http://www.pureage.info/2015/03/28/ipc-of-nginx.html 我们知道,Linux提供了多种进程间传递消息的方式,比如共享内存、套接字、管道、消息队列、信号等,每种方式都各有特点,各有优缺点。其中Nginx主要使用了其中的三种方式: 套接字(匿名套接字对) 阅读全文

posted @ 2016-02-18 16:25 bw_0927 阅读(1942) 评论(0) 推荐(0)

摘要:https://zhuanlan.zhihu.com/p/29415507 数据的对齐(alignment)是指数据的地址和由硬件条件决定的内存块大小之间的关系。一个变量的地址是它大小的倍数的时候,这就叫做自然对齐(naturally aligned)。 例如,对于一个4字节的变量,如果它的地址是4 阅读全文

posted @ 2016-02-04 10:29 bw_0927 阅读(1400) 评论(0) 推荐(0)

摘要:http://techlog.cn/article/list/10182612 http://blog.csdn.net/livelylittlefish/article/category/838107 http://blog.csdn.net/lengzijian/article/category 阅读全文

posted @ 2016-02-03 17:59 bw_0927 阅读(491) 评论(0) 推荐(0)

摘要:http://blog.csdn.net/wallwind/article/details/7461701 对齐 数据的对齐(alignment)是指数据的地址和由硬件条件决定的内存块大小之间的关系。一个变量的地址是它大小的倍数的时候,这就叫做自然对齐(naturally aligned)。例如,对 阅读全文

posted @ 2016-02-03 16:43 bw_0927 阅读(1865) 评论(0) 推荐(0)