raksmart活动促销

分享

写回答

发帖

关于GD的VDS日志占用空间问题的解决办法(申请加入知识库)

国外VPS云主机 国外VPS云主机 1535 人阅读 | 2 人回复

发表于 2008-11-13 21:27:51 | 显示全部楼层 |阅读模式

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.

本人已经是小白鼠了!望后来人谨慎!
不过GD的VDS确实很NB!

回答|共 2 个

kingto

发表于 2008-11-14 18:45:19 | 显示全部楼层

谢谢

enafull

发表于 2009-5-9 09:38:06 | 显示全部楼层

那里找到你说的那个目录啊,我眼都找花了!
您需要登录后才可以回帖 登录 | 注册

本版积分规则