图片和资料来源于MYSQL大牛姜承尧老师(MYSQL技术内幕作者)姜承尧:网易杭州研究院 技术经理 主导INNOSQL的开发mysql高可用各个技术的比较数据库的可靠指的是数据可靠数据库可用指的是数据库服务可用可靠的是数据:例如工商银行,数据不能丢失可用的是服务:服务器不能宕机灵活运用MYSQL的各...
分类:
数据库 时间:
2014-07-14 08:41:00
阅读次数:
433
神一样的堕落了,以前搭建任何linux下的服务不费吹灰之力,现在搭建一个nginx居然老是想着找运维的小伙伴了。岁月催人老啊。。。看到小伙伴们如此的忙碌,我选择自己动手丰衣足食吧,过程记录下。wget http://nginx.org/download/nginx-1.7.3.tar.gz我是在ce...
分类:
其他好文 时间:
2014-07-14 08:36:31
阅读次数:
197
一、nginx nginx是一个轻量级的Web 服务器/反向代理服务器及电子邮件(IMAP/POP3)代理服务器,以开源形式发布。nginx的性能稳定,功能丰富,配置简单,且占用系统资源低。可支持多个系统平台,nginx的下载地址如下:http://nginx.org/en/download.ht....
分类:
其他好文 时间:
2014-07-14 00:34:34
阅读次数:
214
开始前的准备PHP安装包下载:http://windows.php.net/downloads/releases/php-5.5.14-Win32-VC11-x86.zipNginx 下载地址:http://nginx.org/download/nginx-1.6.0.zipRunHiddenCon...
Linux 2.4版本的内核之前,Nginx的事件驱动方式是使用的poll、select函数。进程需要等待连接上有事件发生(收到数据)时,需要把所有连接都告诉内核,由内核找出哪些连接上有事件发生。由于需要把大量连接从用户空间拷贝到内核空间,所以开销巨大,因此,使用poll、select事件驱动方式,最大并发数量只能达到几千。Linux 2.6版本之后添加了epoll函数接口,使得最大并发数量可以达...
分类:
其他好文 时间:
2014-07-13 17:27:34
阅读次数:
311
优化性能参数设置,在ngnix.conf中的http 层加上fastcgi参数如下:
http {
fastcgi_cache_path /usr/local/nginx/fastcgi_cache levels=1:2 keys_zone=TEST:10m inactive=5m;
fastcgi_connect_timeout=300;
fastcgi_send_timeout=30...
分类:
其他好文 时间:
2014-07-13 17:17:07
阅读次数:
218
All relative paths in this config are relative to php's install prefix
Pid file
/usr/local/php/logs/php-fpm.pid
Error log file
/usr/local/php/logs/php-fpm.log
Log level
notice
Whe...
分类:
Web程序 时间:
2014-07-13 16:26:05
阅读次数:
248
[root@luozhonghua etc]# /usr/local/php/sbin/php-fpm start
Starting php_fpm Jul 12 09:41:02.077951 [ERROR] fpm_unix_conf_wp(), line 124: please specify user and group other than root, pool 'default'
...
分类:
其他好文 时间:
2014-07-13 16:20:24
阅读次数:
225
配置nginx支持php 出现了No input file specified ?
只要修改下安装目录下的 nginx.conf下的
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index ...
分类:
Web程序 时间:
2014-07-13 16:16:48
阅读次数:
270
执行:
./configure --prefix=/usr/local/php --enable-fastcgi --enable-fpm
之后出现
Running FastCGI Process Manager checks
checking for php-fpm config file path... $prefix/etc/php-fpm.conf
checking for ...
分类:
其他好文 时间:
2014-07-13 13:50:43
阅读次数:
205