全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 3636|回复: 0

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

[复制链接]
发表于 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|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-3 12:40 , Processed in 0.121513 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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