erlang是一门面向并发的编程语言,流行的消息队列rabbitMQ是基于erlang环境运行的; 系统环境 操作系统:oracle linux7.3 erlang版本:otp_src_20.0 下载安装erlang语言环境 注意: 如果出现错误如“没有目标创建XXXXX”,找到进入的目录如果是hi ...
分类:
其他好文 时间:
2018-02-01 10:39:53
阅读次数:
198
把nginx.conf删除所有的注释项目,变简单如下: worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; ...
分类:
编程语言 时间:
2018-01-31 14:17:01
阅读次数:
183
原文:http://blog.csdn.net/tjcyjd/article/details/50695922 Nginx的配置文件nginx.conf配置详解如下: user nginx nginx ; Nginx用户及组:用户 组。window下不指定 worker_processes 8; 工 ...
分类:
其他好文 时间:
2018-01-31 11:36:36
阅读次数:
139
In real life scenarios, many operations on our data are asynchronous. For example, because additional recourses need to get fetched. MST has first cla ...
分类:
其他好文 时间:
2018-01-29 00:29:15
阅读次数:
204
通性配置 定义Nginx运行的用户和用户组 user www www; nginx进程数,建议设置为等于CPU总核心数. worker_processes 8; 全局错误日志定义类型,[ debug | info | notice | warn | error | crit ] error_log ...
分类:
其他好文 时间:
2018-01-27 22:14:53
阅读次数:
185
一、 工具 nginx-1.8.0 apache-tomcat-6.0.33 二、 目标 实现高性能负载均衡的Tomcat集群: 三、 步骤 1、首先下载Nginx,要下载稳定版: 2、然后解压两个Tomcat,分别命名为apache-tomcat-6.0.33-1和apache-tomcat-6. ...
分类:
其他好文 时间:
2018-01-27 19:07:44
阅读次数:
104
原型: sa_flag的参数 man手册里的 SA_NOCLDSTOP If signum is SIGCHLD, do not receive notification when child processes stop (i.e., when they receive one of SIGSTO ...
分类:
其他好文 时间:
2018-01-27 11:29:28
阅读次数:
184
worker_processes 4;error_log logs/error.log crit; #日志位置和日志级别pid logs/nginx.pid;worker_rlimit_nofile 65535;events { worker_connections 65535;}http { in ...
分类:
其他好文 时间:
2018-01-23 14:26:33
阅读次数:
193
main配置段: user nginx; #指定用于运行worker进程的用户和组 worker_processes 4; #worker的进程数;通常应该为CPU的核心数或核心数减1 worker_cpu_affinity 0001 0010 0100 1000; 进程绑定在CPU上的指定核上 error_log /var/log/nginx/e
分类:
其他好文 时间:
2018-01-18 14:09:00
阅读次数:
181
都知道Linux系统的特性,一切皆文件,所有在运行zabbix这样的服务时,其中重要的一个调优就是调整linux系统的最大文件句柄数,解决“toomanyopenfiles”的问题,增大程序运行允许打开的文件数,提高性能。一.查看系统运行打开的文件句柄数#ulimit-acorefilesize(blocks,-c)0datasegsize(kbytes,-d)unlimitedschedulin
分类:
系统相关 时间:
2018-01-13 16:53:48
阅读次数:
353