找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 13|回复: 0

GD的VDS日志占用空间问题的解决办法

[复制链接]

1522

主题

3万

回帖

8万

积分

管理员

积分
81534
发表于 2008-11-14 14:44:18 | 显示全部楼层 |阅读模式
GD的VDS在运行过程中在VAR/LOG/的目录会产生大量LOG文件.占用空间!本人当初将整个LOG目录删除.结果直接DOWN机.
经过查找资料.现在得出结论.
VDS已经内置了LOG切割脚本.会将LOG文件进行压缩存放.
这样我们可以将带GZ后缀的文件删除.
官方的回应如下:

It is generally not a good idea to delete your server's log files as this could cause problems with the functionality of your server when a process tries to write something to a log file and is unable to because the file is missing. Removing the /var/log folder would most definitely cause major issues with your server. However, your server should be archiving old log files, and those should be safe to delete if you do not need them. Old log files will have file names ending in .1.gz, .2.gz, .3.gz, etc. You may want to back up these files to a remote location before deleting them from your server just in case you find that you need them later.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Discuz! X

GMT+8, 2025-1-11 18:05 , Processed in 0.015658 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表