centos 下var/log/message很大! 是这样的我配了个openwebmail
答案:2 悬赏:20 手机版
解决时间 2021-01-20 08:55
- 提问者网友:疯子也有疯子的情调
- 2021-01-20 02:31
centos 下var/log/message很大! 是这样的我配了个openwebmail
最佳答案
- 五星知识达人网友:神的生死簿
- 2021-01-20 02:38
把named的日志改到别的地方:
在/etc/named.conf 中增加日志选项
/etc/named.conf中logging 选项,增加以下选项后,系统会在/var/log/named/ 下增加dns-default.log,dns-lamer.log,dns-query.log,dns-security.log,dns-security.log五个文件,同时/var/log/named 路径必须有named的相关权限。
logging {
channel default_log {
file "/var/log/named/dns-default.log" versions 10 size 1m;
severity info;
};
channel lamer_log {
file "/var/log/named/dns-lamer.log" versions 3 size 1m;
severity info;
print-severity yes;
print-time yes;
print-category yes;
};
channel query_log {
file "/var/log/named/dns-query.log" versions 10 size 10m;
severity info;
};
channel security_log {
file "/var/log/named/dns-security.log" versions 3 size 1m;
severity info;
print-severity yes;
print-time yes;
print-category yes;
};
category lame-servers { lamer_log; };
category security{ security_log;};
category queries { query_log;};
category default {default_log;};
};
在/etc/named.conf 中增加日志选项
/etc/named.conf中logging 选项,增加以下选项后,系统会在/var/log/named/ 下增加dns-default.log,dns-lamer.log,dns-query.log,dns-security.log,dns-security.log五个文件,同时/var/log/named 路径必须有named的相关权限。
logging {
channel default_log {
file "/var/log/named/dns-default.log" versions 10 size 1m;
severity info;
};
channel lamer_log {
file "/var/log/named/dns-lamer.log" versions 3 size 1m;
severity info;
print-severity yes;
print-time yes;
print-category yes;
};
channel query_log {
file "/var/log/named/dns-query.log" versions 10 size 10m;
severity info;
};
channel security_log {
file "/var/log/named/dns-security.log" versions 3 size 1m;
severity info;
print-severity yes;
print-time yes;
print-category yes;
};
category lame-servers { lamer_log; };
category security{ security_log;};
category queries { query_log;};
category default {default_log;};
};
全部回答
- 1楼网友:深街酒徒
- 2021-01-20 03:30
有错吧 - -
看有错的话就屏蔽掉,
还可以把日志级别改一下
看有错的话就屏蔽掉,
还可以把日志级别改一下
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯