找回密码
 立即注册
CeraNetworksBGVM服务器主机交流会员请立即修改密码Sharktech防护
查看: 127|回复: 0

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

[复制链接]

966

主题

5383

回帖

2万

积分

论坛元老

积分
21401
发表于 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|手机版|小黑屋|HS2V主机综合交流论坛

GMT+8, 2024-11-15 12:20 , Processed in 0.038954 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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