智游城

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 2936|回复: 4
打印 上一主题 下一主题

HM1占的空间越来越大了,可以清理吗?

[复制链接]
跳转到指定楼层
1#
ggyy1414 发表于 2013-7-26 06:03:14 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Holdem Manager\Importing\Logs文件夹5G多,这个应该是日志吧?   
本来PGSQL数据库也很占空间,把里面的日志文件删了后没什么事,HM1的日志可以删么?
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
收藏收藏
2#
1428 发表于 2013-7-26 06:25:59 | 只看该作者
数据减肥
第一步:打开你的数据库安装目录。比如,数据库是安装在D盘。
D:\Program Files\PostgreSQL\8.3\data\pg_log,把pg-log目录下的文件都删除掉,可以释放出可观的硬盘空间,这个目录下的都是日志文件,没什么用但每天占很多的硬盘空间,删除后对以前的数据没任何影响。


第二步,如果我们不让数据库每天产生日志文件,找到有个文件,把 on 改成 off 那就一劳永逸了,以后也不用再去删除日志文件了。
3#
 楼主| ggyy1414 发表于 2013-7-26 06:29:05 | 只看该作者
1428 发表于 2013-7-26 06:25
数据减肥
第一步:打开你的数据库安装目录。比如,数据库是安装在D盘。
D:\Program Files\PostgreSQL\8.3\d ...

这个我知道,之前已经把PostgreSQL按照这个方法弄过,现在PG数据库大概3G多

我想问的是HM1里的日志文件可以删么?
4#
1428 发表于 2013-7-26 06:40:22 | 只看该作者
文件在这里:
data ----
postgresql
#------------------------------------------------------------------------------
# ERROR REPORTING AND LOGGING
#------------------------------------------------------------------------------

# - Where to Log -

log_destination = 'stderr'                # Valid values are combinations of
                                        # stderr, csvlog, syslog, and eventlog,
                                        # depending on platform.  csvlog
                                        # requires logging_collector to be on.

# This is used when logging to stderr:
logging_collector = on                # Enable capturing of stderr and csvlog
                                        # into log files. Required to be on for
                                        # csvlogs.
                                        # (change requires restart)

# These are only used if logging_collector is on:
#log_directory = 'pg_log'                # directory where log files are written,
                                        # can be absolute or relative to PGDATA
#log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log'        # log file name pattern,
                                        # can include strftime() escapes
#log_truncate_on_rotation = off                # If on, an existing log file of the
                                        # same name as the new log file will be
                                        # truncated rather than appended to.
                                        # But such truncation only occurs on
                                        # time-driven rotation, not on restarts
                                        # or size-driven rotation.  Default is
                                        # off, meaning append to existing files
                                        # in all cases.
#log_rotation_age = 1d                        # Automatic rotation of logfiles will
                                        # happen after that time.  0 disables.
#log_rotation_size = 10MB                # Automatic rotation of logfiles will
5#
1428 发表于 2013-7-26 06:49:26 | 只看该作者
可以删
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|智游城论坛

GMT+8, 2024-9-20 16:56 , Processed in 0.043114 second(s), 7 queries , Redis On.

Powered by Discuz! X3.2

© 2001-2012 Comsenz Inc.

返回顶部