yum install nginx -y :安装nginx,遇到选项全部自动选yes
vim /etc/nginx/nginx.conf :查看nginx的配置文件
nginx默认日志格式
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"';
$remote_addr $1
$time_local $4
$request $7
$status $9
$body_bytes_sent $10