概述

由于项目需要部署配置syslog服务,在修改监听端口后报错。

配置信息
$ModLoad imtcp
$InputTCPServerRun 21422
报错信息
Could not create tcp listener, ignoring port 21422 bind-address (null). [v8.24.0 try http://www.rsyslog.com/e/2077 ]

处理办法

该问题属于sexlinux未放行端口所致,故需添加端口。

[root@localhost syslog]# yum -y install policycoreutils-python
[root@localhost syslog]# semanage port -a -t syslogd_port_t -p tcp 21422
[root@localhost syslog]# systemctl restart rsyslog
END

本文标题:rsyslog配置监听端口失败

本文作者:宇宙最帅的男人

本文链接:https://lolicp.com/linux/202122289.html

版权声明:转载或者引用本文内容请注明来源及原作者,本文著作权归作者 (宇宙最帅的男人) 所有。

除非另有说明,本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议

最后修改:2021 年 10 月 22 日
如果觉得我的文章对你有用,请随意赞赏