在重新启动nginx时报socket错误请首先检查默认端口端口问题 nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol) nginx配置腾讯云ssl证书实例 location ~ \ ...
分类:
Web程序 时间:
2017-08-18 00:56:26
阅读次数:
327
PHP5的CGI方式的一大优势是内置了FastCGI的支持,只需指明绑定的地址和端口参数便可以以FastCGI的方式运行,如下: php-cgi -b 127.0.0.1:9000 配置Nginx的PHP FastCGI 请将以下内容保存为fastcgi_params文件,保存于/usr/local ...
分类:
Web程序 时间:
2017-08-18 00:56:09
阅读次数:
245
fastcgi.conf对比下fastcgi.conf与fastcgi_params文件,可以看出只有以下差异:Java代码tctq4master@ddd:/etc/nginx$difffastcgi.conffastcgi_params2d1<fastcgi_paramSCRIPT_FILENAME$document_root$fastcgi_script_name;25a25,26>>fastcgi_paramSCRIPT_FILENAME$req..
分类:
其他好文 时间:
2017-08-16 23:11:52
阅读次数:
305
12.1 LNMP架构介绍 LNMP代表的就是:Linux系统下Nginx+MySQL+PHP这种网站服务器架构 PHP是以fastcgi的方式结合Nginx的,可以理解为Nginx代理了PHP的fastcgi和LAMP不同的是,LNMP中提供web服务的是Nginx 在LNMP架构中PHP是作为一 ...
分类:
其他好文 时间:
2017-08-16 09:54:09
阅读次数:
199
Linux Apache Mysql PHP source install CentOS6.5 Minimal setup *可选 更换yum源 yum install gcc gcc-c++ setuptool ntsysv iptables vim system-config-securityl ...
分类:
其他好文 时间:
2017-08-15 15:16:43
阅读次数:
183
1.使用nginx服务器如果遇到timeou情况时可以如下设置参数,使用fastcgi: fastcgi_connect_timeout 75; 链接 fastcgi_read_timeout 600; 读取 fastcgi_send_timeout 600; 发请求 这两个选项. fastcgi_ ...
分类:
系统相关 时间:
2017-08-14 11:30:19
阅读次数:
174
源码搭建LAMPCentOS6源码安装LAMP----基于fastcgi方式(2台机器)软件包下载源:搜狐镜像源:http://mirrors.sohu.com/apache下载网:http://mirror.bit.edu.cn/apache/pcre官网:http://www.pcre.org/apr官网:http://apr.apache.org/apache官网:http://httpd.apache.org/mys..
分类:
其他好文 时间:
2017-08-12 15:30:40
阅读次数:
215
与httpd类似,第一个被Nginx加载的虚拟主机就是默认主机。但与之不同的是,它还有一个配置用来标记默认虚拟主机。1、编辑nginx.conf[root@juispanconf]#vi/usr/local/nginx/conf/nginx.conf
location~\.php$
{
includefastcgi_params;
fastcgi_passunix:/tmp/php-fcgi.sock;
fa..
分类:
其他好文 时间:
2017-08-10 23:43:59
阅读次数:
203
扩展:Nginx为什么比ApacheHttpd高效:原理篇http://www.toxingwang.com/linux-unix/linux-basic/1712.htmlapache和nginx工作原理比较http://www.server110.com/nginx/201402/6543.htmlmod_php和mod_fastcgi以及php-fpm的比较http://dwz.cn/1lwMSd概念了解:CGI,FastCGI,PHP-..
分类:
数据库 时间:
2017-08-09 15:31:42
阅读次数:
254
cgi fastcgi php-cgi php-fpm 详解 参考: 摘至:http://www.cnblogs.com/thinksasa/p/4497567.html 详说fastcgi,php-fpm的区别:http://segmentfault.com/q/1010000000256516 ...
分类:
Web程序 时间:
2017-08-09 15:31:32
阅读次数:
247