user www www; // nginx在运行时使用哪个账号的权限,每一个服务都以一个普通的账号的权限来运行,不要以root来运行worker_processes 2; // 开启进程数,CPU核数的1~2倍error_log /data0/logs/nginx_error.log crit;p...
分类:
Web程序 时间:
2015-11-10 22:35:14
阅读次数:
214
一:
下载uwsgi
tarxfuwsgi-1.9.6.tar.gz
cduwsgi-1.9.6
pythonuwsgiconfig.py--build
cpuwsgi/usr/bin/uwsgi
二:
vim/usr/local/services/nginx/uwsgi.ini
[uwsgi]
socket=0.0.0.0:3001
master=true
pidfile=/usr/local/services/nginx/uwsgi.pid
processes=8
workers=2
#..
分类:
其他好文 时间:
2015-11-09 19:08:59
阅读次数:
297
The runqueue lists group all processes in a TASK_RUNNING state. When it comes to groupingprocesses in other states, the various states call for differ...
分类:
其他好文 时间:
2015-11-09 09:27:46
阅读次数:
288
Processes created by a program have a parent/child relationship. When a process creates multiple children,these children have sibling relationships. S...
分类:
其他好文 时间:
2015-11-09 09:23:28
阅读次数:
188
When looking for a new process to run on a CPU, the kernel has to consider only the runnable processes(that is, the processes in the TASK_RUNNING stat...
分类:
其他好文 时间:
2015-11-09 07:09:11
阅读次数:
209
Before moving to and describing how the kernel keeps track of the various processes in the system,we would like to emphasize the role of special data ...
分类:
其他好文 时间:
2015-11-09 07:08:21
阅读次数:
309
操作系统Operating Systems进程同步与信号量Processes Synchronization and Semaphore进程合作:多进程共同完成一个任务从纸上到实际:生产者? ? 消费者实例共享数据#define BUFFER_SIZE 10typedef struct { . . ...
分类:
系统相关 时间:
2015-11-05 10:41:21
阅读次数:
346
Processes are dynamic entities whose lifetimes range from a few milliseconds to months. Thus, thekernel must be able to handle many processes at the s...
分类:
其他好文 时间:
2015-11-05 09:08:44
阅读次数:
217
As a general rule, each execution context that can be independently scheduled must have its ownprocess descriptor; therefore, even lightweight process...
分类:
其他好文 时间:
2015-11-05 07:36:28
阅读次数:
197
nginx利用proxy_cache来缓存文件,有需要的朋友可参考代码如下复制代码user zhangy users;worker_processes 10;error_log /var/vlogs/nginx_error.log crit;pid /var/vlogs/nginx.pid;#Spe...
分类:
系统相关 时间:
2015-10-29 00:44:26
阅读次数:
172