rsyslog在centos6.x下更新
1.查看系统rsyslog版本
rsyslogd -v
输出:
rsyslogd 5.8.10,compiled with: FEATURE_REGEXP: Yes FEATURE_LARGEFILE: No GSSAPI Kerberos 5 support: Yes FEATURE_DEBUG (debug build,slow code): No 32bit Atomic operations supported: Yes 64bit Atomic operations supported: Yes Runtime Instrumentation (slow code): No
参考一下网址:RPM Repository 按照步骤下载文件:
2.准备更新
将步骤1 下载的文件放入如下目录:
/etc/yum.repos.d
3.更新操作
执行命令:
yum update rsyslog
不出意外将会看到如下界面:
按照步骤输入:yes
4. 检验是否安装成功
输入命令:
rsyslogd -v
显示:
rsyslogd 8.19.0,compiled with: PLATFORM: x86_64-redhat-linux-gnu PLATFORM (lsb_release -d): FEATURE_REGEXP: Yes GSSAPI Kerberos 5 support: No FEATURE_DEBUG (debug build,slow code): No 32bit Atomic operations supported: Yes 64bit Atomic operations supported: Yes memory allocator: system default Runtime Instrumentation (slow code): No uuid support: Yes Number of Bits in RainerScript integers: 64 See http://www.rsyslog.com for more information.
5.配置文件管理
进入目录:cd /etc 使用如下命令:
ls
输出部分内容截图: 很明显rsyslog.conf.rpmnew文件是使用yum更新产生的文件
6.配置文件修改为最新
rsyslog.conf rsyslog.conf.back0720
- 使用新版本配置文件
rsyslog.conf.rpmnew rsyslog.conf
7.重启rsyslog
[root@huaqindev etc]# service rsyslog restart Shutting down system logger: [ OK ] Starting system logger: [ OK ]
参考网址: