原文:https://www.2cto.com/os/201212/176520.html #定义Nginx运行的用户和用户组 user www www; #nginx进程数,建议设置为等于CPU总核心数。 worker_processes 8; #全局错误日志定义类型,[ debug | info ...
分类:
其他好文 时间:
2018-10-16 01:53:12
阅读次数:
177
#定义Nginx运行的用户和用户组user www www; #nginx进程数,建议设置为等于CPU总核心数。worker_processes 8; #全局错误日志定义类型,[ debug | info | notice | warn | error | crit ]error_log /var/ ...
分类:
其他好文 时间:
2018-10-15 18:15:16
阅读次数:
164
@media only screen and (min-width: 1024px) //当分辨率width >= 1024px 时使用1.jpg作为背景图片 { .bg{ background:url(./images/1.jpg) no-repeat; } } @media only scree ...
分类:
Web程序 时间:
2018-10-15 11:50:32
阅读次数:
272
pool = multiprocessing.Pool(processes=10) row = [...] for row in rows: task_id = row[1] img_id = row[0] pool.apply_async(check_picture_contain_human_o... ...
分类:
编程语言 时间:
2018-10-14 16:40:46
阅读次数:
823
需求描述:点击服务类型下拉框,选择后,后边的服务类别会自动的匹配到与服务类型相对应的,卧槽,绕来绕去的,说不明白啦。举个例子:服务类型A,B,C三个可选,当选择A的时候,服务类别会自动填充上A01,A02,A03,当选择B的时候,服务类别会自动填充上Bf,Bg,Bh,当选择C的时候,服务类别会自动填 ...
分类:
其他好文 时间:
2018-10-11 16:54:39
阅读次数:
183
while循环语句while循环语句语法格式为:while<条件表达式>do指令done有关脚本运行的相关用法命令说明shfile.sh&把file.sh脚本放到后台运行(后台运行脚本的常用方法)ctl+c停止执行当前脚本或任务ctl+z暂停执行当前脚本或任务bg把当前脚本或任务放到后台执行fg把当前脚本或任务放到前台执行。如果是多个脚本,需加编号,如:fg2jobs查看当前执
分类:
系统相关 时间:
2018-10-10 00:01:23
阅读次数:
1536
一个完整的nginx配置案例,生产环境一个完整配置例(生产环境中使用) user nobody nobody;worker_processes 4;worker_rlimit_nofile 51200; error_log logs/error.log notice; pid /var/run/ng ...
分类:
其他好文 时间:
2018-10-08 18:06:45
阅读次数:
305
参考 以下内容: http://blog.csdn.net/lifetragedy/article/details/7708724 一. nginx参数调优 worker_processes 3; //cpu内核数目 1 ,使用下来效果较好 worker_processes 4; wor ...
分类:
其他好文 时间:
2018-10-08 18:04:27
阅读次数:
154
文件:nginx.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/ ...
分类:
Web程序 时间:
2018-10-07 23:23:24
阅读次数:
323
DEFINITION Data transfer object (DTO) describes “an object that carries data between processes” (Wikipedia) or an “object that is used to encapsulate ...
分类:
其他好文 时间:
2018-10-06 13:20:14
阅读次数:
123