注意:
在将 Nginx 网页文件放入内存进行缓存之前要先安装 Nginx
正文:
# vi /usr/local/nginx/conf/nginx.conf
将部分内容修改如下:
http {
Open_file_cache max=2000 inactive=20s;
Open_file_cache_valid 60s;
Open_file_cache_min_uses 5;
Open_file_cache_errors off;
}
在将 Nginx 网页文件放入内存进行缓存之前要先安装 Nginx
# vi /usr/local/nginx/conf/nginx.conf
将部分内容修改如下:
http {
Open_file_cache max=2000 inactive=20s;
Open_file_cache_valid 60s;
Open_file_cache_min_uses 5;
Open_file_cache_errors off;
}