How to configure netconsole under Red Hat Enterprise Linux 8 ?

本文介绍如何在RedHat Enterprise Linux 8中配置Netconsole服务。首先,通过安装netconsole-service包提供Netconsole服务。然后,在/etc/sysconfig/netconsole文件中设置SYSLOGADDR变量为syslogd服务器的IP地址。重启netconsole.service并启用服务以便在重启后运行。

How to configure netconsole under Red Hat Enterprise Linux 8 ?

 SOLUTION 已验证 - 已更新 2019年三月1日13:51 - 

English 

环境

  • Red Hat Enterprise Linux 8
    • netconsole-service

问题

  • How to configure netconsole under Red Hat Enterprise Linux 8 ?

决议

  • netconsole is configured via the file /etc/sysconfig/netconsole, which is part of the netconsole-service package.

  • This package needs to be installed which provides the netconsole service.

Raw

# yum install netconsole-service
  • Once package is installed set the variable SYSLOGADDR to the IP address of the syslogd server In the /etc/sysconfig/netconsole file

Raw

SYSLOGADDR=192.168.0.1
  • Restart the netconsole.service for the changes to take effect

Raw

# systemctl restart netconsole.service
  • Enable netconsole.service to run after rebooting the system

Raw

# systemctl enable netconsole.service
  • The netconsole messages from the client logged in the /var/log/messages file (default) or in the file specified in rsyslog.conf.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值