小编smc*_*hae的帖子

Ubuntu 上 nginx 的名为“etc/nginx/on”的大文件

当我在 Ubuntu 环境下开发时,我收到一个警报,说服务器很快就会耗尽存储空间。所以我追踪了哪个文件在磁盘上占用了这么多空间。我能找到,有一个命名的文件onetc/nginx。(我正在使用 nginx )

这个文件有什么作用?这个文件占用7.7G,类型是ASCII文本,行很长(我用file *命令算出来的)

我想通过删除这个文件来管理服务器的存储。这样做安全吗?我不能只是不断增加服务器的存储空间。

如果任何事情看起来可疑和错误,任何建议和建议将不胜感激。

先感谢您。

这是 nginx.conf

user www-data;
worker_processes auto;


error_log  /var/log/nginx/error.log crit;
pid        /var/run/nginx.pid;


events {
    worker_connections  4000;
    use epoll;
    multi_accept on;
}


http {
    # cache informations about FDs, frequently accessed files
    # can boost performance, but you need to test those values
    open_file_cache max=200000 inactive=20s;
    open_file_cache_valid 30s;
    open_file_cache_min_uses 2;
    open_file_cache_errors on;

    # to boost IO on HDD we can disable access logs
    access_log on;
    access_log …
Run Code Online (Sandbox Code Playgroud)

ubuntu nginx

2
推荐指数
1
解决办法
1935
查看次数

标签 统计

nginx ×1

ubuntu ×1