大佬教程收集整理的这篇文章主要介绍了nginx 使用 RAM 作为存储位置,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
Vps,安装了Nginx。很长一段时间我不明白为什么服务器不给大文件。事实证明,如果您上传到服务器,例如,一个 100mb 的文件,RAM 将减少完全相同的数量。
它是如何而不是存储在磁盘上的。服务器使用 RAM。我试图禁用静态缓存,我坐了两天。应用的选项海,没有任何帮助。直到我查看了控制台和磁盘上使用的空间量。其实,我不明白帮助...
user Nginx;
worker_processes 1;
error_log /var/log/Nginx/error.log;
pID /run/Nginx.pID;
include /usr/share/Nginx/modules/*.conf;
events {
worker_connections 1024;
}
http {
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;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
proxy_cache_path /var/cache/Nginx levels=1:2 keys_zone=all:64m inactive=2h max_size=2g;
include /etc/Nginx/mime.types;
default_type application/octet-stream;
include /etc/Nginx/conf.d/*.conf;
server {
Listen *.*.*.*:80;
server_name _;
root /var/www;
# Load configuration files for the default server block.
include /etc/Nginx/default.d/*.conf;
LOCATIOn ~* ^.+.(mp4)$ {
root /var/www;
expires -1;
}
}
}
enter image description here
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
以上是大佬教程为你收集整理的nginx 使用 RAM 作为存储位置全部内容,希望文章能够帮你解决nginx 使用 RAM 作为存储位置所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。