Nginx 工作原理 Nginx由内核和模块组成。 Nginx本身做的工作实际很少,当它接到一个HTTP请求时,它仅仅是通过查找配置文件将此次请求映射到一个location block,而此location中所配置的各个指令则会启动不同的模块去完成工作,因此模块可以看做Nginx真正的劳动工作者。通 ...
分类:
其他好文 时间:
2018-02-10 15:53:41
阅读次数:
130
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this ... ...
分类:
编程语言 时间:
2018-02-08 17:50:54
阅读次数:
483
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this ...
分类:
其他好文 时间:
2018-02-05 23:15:31
阅读次数:
142
Implement pow(x, n). Notice You don't need to care about the precision of your answer, it's acceptable if the expected answer and your answer 's diffe ...
分类:
其他好文 时间:
2018-02-04 21:00:42
阅读次数:
136
注册页面 //插入js验证 <script type="text/javascript"> window.onload = function(){ var hid = document.getElementById("id"); if(hid.value !=""){ //当用户名已存在数据库时,提 ...
分类:
数据库 时间:
2018-02-04 11:12:38
阅读次数:
146
Write a function that add two numbers A and B. You should not use + or any arithmetic operators. Notice There is no need to read data from standard in ...
分类:
其他好文 时间:
2018-02-03 17:48:16
阅读次数:
236
常用视口 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0,user-scalable=no"> viewport 是用户网页的可视区域。 ...
分类:
Web程序 时间:
2018-02-02 20:05:06
阅读次数:
239
错误报告级别:指定了在什么情况下,脚本代码中的错误(这里的错误是广义的错误,包括E_NOTICE注意、E_WARNING警告、E_ERROR致命错误等)会以错误报告的形式输出。 设置错误报告级别的方法: 1. 修改PHP的配置文件php.ini这种方式设置error_reporting后,重启web服务器,就会永久生效。这里以xampp集成软件包为例,打开配置文件php.ini
分类:
Web程序 时间:
2018-02-02 15:12:07
阅读次数:
243
以下列出了不同问题及答案: 1、 在yii框架中,改动数据库信息,主要有main.php和database.php两个文件。 2、 问题: 答案: 改动php.ini: error_reporting = E_ALL 改为: error_reporting = E_ALL & ~E_NOTICE 3 ...
分类:
其他好文 时间:
2018-01-30 12:30:42
阅读次数:
159
通性配置 定义Nginx运行的用户和用户组 user www www; nginx进程数,建议设置为等于CPU总核心数. worker_processes 8; 全局错误日志定义类型,[ debug | info | notice | warn | error | crit ] error_log ...
分类:
其他好文 时间:
2018-01-27 22:14:53
阅读次数:
185