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