nginx访问日志,错误日志参数说明
Nginx , 日志 / 2016年5月26日

访问日志[Access.log] '$remote_addr $remote_user [$time_local] "$request" $http_host' '$status $upstream_status $body_bytes_sent "$http_referer"' '"$http_user_agent" $ssl_protocol $ssl_cipher $upstream_add...

Nginx 开机自启动
CentOS , Nginx / 2016年5月13日

1、 vim /etc/init.d/nginx 内容为: #!/bin/sh       #       # nginx - this script starts and stops the nginx daemin       #       # chkconfig:   - 85 15        # description:  Nginx is an HTTP(S) server, HT...

Nginx 编译安装
Nginx / 2016年5月13日

Nginx 编译安装 1 利用下面的命令来检查系统是否安装了apache rpm -qa|grep httpd 如果已安装,由于apache和nginx 默认端口都是 80 所以如果nginx 要以80端口启动 那么需要将apache卸载或者关闭或者更改apache的端口 命令: 卸载 apache: yum -y remove httpd 关闭 apache: service httpd sto...