浏览模式: 普通 | 列表
5月, 2014 | 1
Linux系统出现了性能问题,一般我们可以通过top、iostat、free、vmstat等命令来查看初步定位问题。

其中iostat可以给我们提供丰富的IO状态数据。
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;
...

阅读全文…
1