Linux 服务器性能监测工具 top、iostat、free、vmstat
[ 2014-05-24 14:30:29 | 作者: admin ]
Linux系统出现了性能问题,一般我们可以通过top、iostat、free、vmstat等命令来查看初步定位问题。
其中iostat可以给我们提供丰富的IO状态数据。
其中iostat可以给我们提供丰富的IO状态数据。
Apache和Nginx开启访问日志但不记录图片css等的方法
[ 2014-05-24 14:26:42 | 作者: admin ]
nginx
阅读全文…
log_format access '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
access_log off;
}
location ~ .*\.(js|css)?$
{
expires 1d;
access_log off;
...'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
access_log off;
}
location ~ .*\.(js|css)?$
{
expires 1d;
access_log off;
阅读全文…
1