配置conf文件 #user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid logs/nginx.pid ...
分类:
其他好文 时间:
2016-10-24 09:50:42
阅读次数:
337
nginx配置文件默认存放在nginx安装目录下的conf目录下配置文件主要分为:全局块、events块、http块、server块、location块[root@localhostconf]#catnginx.conf#####全局开始#####usernobodynobody;#指定运行nginx服务器的用户和组(必须配置在全局中)worker_processes1;#配置..
分类:
其他好文 时间:
2016-10-22 01:00:10
阅读次数:
308
#运行用户user nobody;#启动进程,通常设置成和cpu的数量相等worker_processes 1; #全局错误日志及PID文件#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error ...
分类:
其他好文 时间:
2016-10-21 15:49:57
阅读次数:
274
1,nginx的目录结构 2配置文件讲解安装好之后在没有配置的情况下,nginx的配置文件说明 简洁版: 详细版 1 #user nobody; #运行用户 2 worker_processes 1; #nginx进程数,建议设置为等于CPU总核心数。 3 4 #error_log logs/err ...
分类:
其他好文 时间:
2016-10-12 14:09:57
阅读次数:
217
这里只提供了一种方式,针对location进行接口的定向分发。已最简单的配置说清楚接口定向分发,对于其他配置不做讲解。 比如请求两个URL: 1)、www.000.com/sale 2)、www.000.com/matchmaker #user nobody; worker_processes 1; ...
分类:
Web程序 时间:
2016-09-21 21:42:13
阅读次数:
155
1.查看ubuntu用户的id和组信息 id nobody uid=65534(nobody) gid=65534(nogroup) 组=65534(nogroup) 2.挂载windows目录 sudo mount //windows机器的IP地址/css /mnt/css -o username ...
新增操作符1、??$username = $_GET['user'] ?? '';$username = isset($_GET['user']) ? $_GET['user'] : 'nobody';2、<=>$number1 <=> $number2; 当 $number1 小于、等于、大于 $ ...
分类:
Web程序 时间:
2016-09-05 09:12:33
阅读次数:
308
#user nobody;worker_processes 4; #nginx进程数,建议设置为等于CPU总核心数 #error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info; # ...
分类:
其他好文 时间:
2016-09-01 18:15:19
阅读次数:
128
下载Nginx 解压源码 安装prce(重定向支持)和openssl(https支持,如果不需要https可以不安装。) yum -y install pcre* yum -y install openssl* Nginx配置文件详情 1 #user nobody; 2 worker_process ...
分类:
其他好文 时间:
2016-08-31 22:28:17
阅读次数:
274
一. nginx.conf vim /usr/local/nginx/conf/nginx.conf //清空原来的配置,加入如下内容: user nobody nobody;worker_processes 2;error_log /usr/local/nginx/logs/nginx_error ...
分类:
Web程序 时间:
2016-08-23 01:15:19
阅读次数:
213