永发信息网

如何解决Keepalived日志里报的这个错误

答案:1  悬赏:70  手机版
解决时间 2021-11-23 11:43
如何解决Keepalived日志里报的这个错误
最佳答案
Keepalived默认所有的日志都是写入到/var/log/message下的,由于message的日志太多了,而Keepalived的日志又很难分离出来,所以本文提供了一个调整Keepalived日志输出路径的方法。具体操作步骤如下:一、修改 /etc/sysconfig/keepalived把KEEPALIVED_OPTIONS="-D" 修改为KEEPALIVED_OPTIONS="-D -d -S 0"#其中-S指定syslog的facility二、重启服务service keepalived restart三、设置syslog,修改/etc/syslog.conf,添加内容如下# keepalived -S 0 local0.* /var/log/keepalived.log注意:local0是l是字符L的小写四、Keepalived相关管理的知识拓展/usr/local/keepalived/sbin/keepalived --vrrp -P Only run with VRRP subsystem. /usr/local/keepalived/sbin/keepalived --check -C Only run with Health-checker subsystem. /usr/local/keepalived/sbin/keepalived --dont-release-vrrp -V Dont remove VRRP VIPs & VROUTEs on daemon stop. /usr/local/keepalived/sbin/keepalived --dont-release-ipvs -I Dont remove IPVS topology on daemon stop. /usr/local/keepalived/sbin/keepalived --dont-fork -n Dont fork the daemon process. /usr/local/keepalived/sbin/keepalived --use-file -f Use the specified configuration file. Default is /etc/keepalived/keepalived.conf. /usr/local/keepalived/sbin/keepalived --dump-conf -d Dump the configuration data. /usr/local/keepalived/sbin/keepalived --log-console -l Log message to local console. /usr/local/keepalived/sbin/keepalived --log-detail -D Detailed log messages. /usr/local/keepalived/sbin/keepalived --log-facility -S 0-7 Set syslog facility to LOG_LOCAL[0-7]. (default=LOG_DAEMON) /usr/local/keepalived/sbin/keepalived --help -h Display this short inlined help screen. /usr/local/keepalived/sbin/keepalived --version -v Display the version number /usr/local/keepalived/sbin/keepalived --pid -p pidfile /usr/local/keepalived/sbin/keepalived --checkers_pid -c checkers pidfile /usr/local/keepalived/sbin/keepalived --vrrp_pid -r vrrp pidfile
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
藏族特殊的礼仪是什么?
vpp是什么?
低碳经济和低碳生活的区别
PETER造型(新世界大丸百货旗舰店)地址在哪,
怎样从漯河召陵区翟庄坐车到邓襄镇
永宏触摸屏子画面可以设置为透明的吗
什么是气质?气质差异有何作用?
我的云雀老野刚小叫 什么时候能大叫啊
女主叫幕雅哥,男主加龙君魂的小说
为什么退群总是失败?如何解决?
大同水泥好还是山阴水泥好?
圣三国蜀汉传怎么进不去
怎么用2切一开关?
请问CCF-NOIP-2011的ASCll码是多少,“-”又
蒙古族安代舞dj试听
推荐资讯
如何用scite编程
客家酿茄子怎么做好吃
万簌俱寂的相反词是什么
赤坎古镇怎么样
有些人发过来的银行余额多的吓死人是p的吗
求个里面带有he tian 两个字的名称,4个字左
134.9除以9.8算式和答案是多少
从河北省青县寄信到山东省青岛市多少钱邮票
成年之后智商会改变吗?116大概是什么水平?
粤语版屯儿的歌词: 偶滴老嘎 就组在则个屯
X+27+X+2(27+X+X)-38+2(27+X+X)=147这个
湖北帅木环保新材料有限公司全屋整装定制有哪
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?