GD的VDS日志占用空间问题的解决办法
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.
页:
[1]