安装步骤下载源码包2解压包并编译make&&makeinstall查看目录conf配置文件目录html样例文件sbin进程-t查看配置文件是否出错编辑启动脚本文件内容下载地址更改权限并添加服务编辑配置文件vimnginx.conf下载地址文件内容定义user定义启动nginx的用户worker_processes子进程数量worker_rlimit_nofile定义打开多少个文件w
分类:
其他好文 时间:
2018-03-13 21:10:34
阅读次数:
184
调度 CPU调度器(短期100ms): good repsonse time 接纳调度器(长期1+min): the degree of multiprogramming and mix of cpu- and i/o -bound processes 内存调度器(中期):reduce the de ...
分类:
系统相关 时间:
2018-03-12 16:56:32
阅读次数:
208
首先,在阅读《深入理解Nginx模块》后,大体了解了配置反向代理服务器一些常见的配置。如下进行说明:” l Nginx worker进程个数 语法: worker_processes number; 默认: worker_processes 1; 在master/worker运行方式下, 定义wor ...
分类:
其他好文 时间:
2018-03-08 00:15:11
阅读次数:
177
把nginx.conf删除所有的注释项目,变简单如下: worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; ...
分类:
其他好文 时间:
2018-03-07 21:51:36
阅读次数:
170
一 守护进程 主进程创建子进程,然后将该进程设置成守护自己的进程。 关于守护进程需要强调两点: 其一:守护进程会在主进程代码执行结束后就终止 其二:守护进程内无法再开启子进程,否则抛出异常:AssertionError: daemonic processes are not allowed to h ...
分类:
编程语言 时间:
2018-03-05 21:38:40
阅读次数:
195
Docker 一些简单的命令列表docker build -t friendlyhello . # Create image using this directory's Dockerfiledocker run -p 4000:80 friendlyhello # Run "friendlynam ...
分类:
其他好文 时间:
2018-03-05 12:06:23
阅读次数:
228
nginx的worker_processes参数来源: http://bbs.linuxtone.org/thread-1062-1-1.html分享一:搜索到原作者的话:As a general rule you need the only worker with large number ofw ...
分类:
其他好文 时间:
2018-03-05 11:08:21
阅读次数:
169
目录: 一、Nginx配置文件 二、upstream 模块介绍: 三、fastcgi 模块介绍: 四、PHP配置文件 一、Nginx配置文件 user www www; ##nginx程序运行用户和用户组 worker_processes 4; ##nginx 打开的进程数,建议设置为等于CPU总核 ...
分类:
Web程序 时间:
2018-03-04 16:33:45
阅读次数:
295
参考链接:https://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000/0014319272686365ec7ceaeca33428c914edf8f70cca383000 ...
分类:
编程语言 时间:
2018-03-03 21:22:45
阅读次数:
620
user nobody; #启动进程,通常设置成和cpu的数量相等 worker_processes 1; #全局错误日志及PID文件 #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error ...
分类:
其他好文 时间:
2018-03-03 15:22:40
阅读次数:
188