标签:style http color io ar for 文件 sp log
1.在目录/etc/nginx/ngins.conf文件中添加配置大小(红色标注为需要添加的配置及位置):
http { # 设定mime类型,类型由mime.type文件定义
include /etc/nginx/mime.types;
default_type application/octet-stream;
client_max_body_size 100m;
# 设定日志格式
log_format main ‘$remote_addr - $remote_user [$time_local] "$request" ‘
‘$status $body_bytes_sent "$http_referer" ‘
‘"$http_user_agent" "$http_x_forwarded_for"‘;
access_log /var/log/nginx/access.log main;
2.在目录/etc/nginx/conf.d/文件夹下的tomcat文件中同样配置上面的最大设置。
标签:style http color io ar for 文件 sp log
原文地址:http://www.cnblogs.com/klgblog/p/3974588.html