nginx命令停止nginx服务:# /etc/init.d/nginx stop启动nginx服务:# /etc/init.d/nginx start编辑nginx配置文件:# vim /etc/nginx/nginx.conf/etc/init.d/php-fpmrestartservice p...
分类:
其他好文 时间:
2015-04-08 14:59:00
阅读次数:
152
Nginx配置文件详细说明原文链接:原文在此记录下Nginx服务器nginx.conf的配置文件说明, 部分注释收集与网络.#运行用户user www-data;#启动进程,通常设置成和cpu的数量相等worker_processes 1;#全局错误日志及PID文件error_log /var/lo...
分类:
其他好文 时间:
2015-04-02 13:17:43
阅读次数:
90
找到nginx配置文件中的location ~ \.php$去掉后面的"$"在中括弧里的最下面添加:fastcgi_split_path_info^((?U).+\.php)(/?.+)$;fastcgi_paramPATH_INFO$fastcgi_path_info;fastcgi_paramP...
分类:
Web程序 时间:
2015-03-31 17:50:15
阅读次数:
144
#!/bin/sh
#编译安装管理Nginx
App=nginx
#终端输出显示程序名
AppName=Nginx
#安装基路径
AppBase=/App
#安装路径,即编译时"--prefix="指定的路径
AppDir=$AppBase/$App
#二进制程序路径
AppProg=$AppDir/sbin/nginx
#配置文件路径
AppConf=$AppDir/conf/nginx.conf
#源码基..
分类:
其他好文 时间:
2015-03-31 01:01:52
阅读次数:
173
在此记录下Nginx服务器nginx.conf的配置文件说明, 部分注释收集与网络.#运行用户user www-data; #启动进程,通常设置成和cpu的数量相等worker_processes 1;#全局错误日志及PID文件error_log /var/log/nginx/error.log;p...
分类:
其他好文 时间:
2015-03-30 23:03:43
阅读次数:
198
安装nginx 配置 nginx配置文件 usr/local/nginx/conf/nginx.conf location / { root html; index index.html index.htm; uwsgi_pass 45.64.1...
分类:
其他好文 时间:
2015-03-30 16:15:30
阅读次数:
133
网页乱码,字符集的问题。博主少说废话了!直接上解决方法!二种:1.在apache/nginx配置文件中,将charset值更改为utf8/gb23122.在apache/nginx配置文件中,将Charset值直接注释掉,然后在你的网页动态语言中,加入这一行:<head><metahttp-equiv="content-type"conte..
分类:
Web程序 时间:
2015-03-21 21:33:04
阅读次数:
167
Nginx配置参数中文说明。#定义Nginx运行的用户和用户组user www www;#nginx进程数,建议设置为等于CPU总核心数。worker_processes 8;#全局错误日志定义类型,[ debug | info | notice | warn | error | crit ]err...
分类:
其他好文 时间:
2015-03-12 19:09:32
阅读次数:
158
yum标准化安装nginx最新版参考:http://nginx.org/en/linux_packages.html
1)配置repo源
$cat/etc/yum.repos.d/nginx.repo
[nginx]
name=nginxrepo
baseurl=http://nginx.org/packages/centos/6/$basearch/
gpgcheck=0
enabled=1
安装
$yuminstallnginx
2)nginx配置文件..
分类:
其他好文 时间:
2015-03-11 20:01:10
阅读次数:
4853