Centos 6x安装sys-log

转自:

http://www.linuxidc.com/Linux/2013-11/92692.htm

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
yum --enablerepo=epel install syslog-ng eventlog syslog-ng-libdbi



[root@centos ~]# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
--2015-06-05 22:24:35--  http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Resolving dl.fedoraproject.org... 209.132.181.26, 209.132.181.24, 209.132.181.23, ...
Connecting to dl.fedoraproject.org|209.132.181.26|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14540 (14K) [application/x-rpm]
Saving to: “epel-release-6-8.noarch.rpm”

100%[=============================================================================================================================================================================================================================================>] 14,540      36.7K/s   in 0.4s

2015-06-05 22:24:36 (36.7 KB/s) - “epel-release-6-8.noarch.rpm” saved [14540/14540]

[root@centos ~]# rpm -ivh epel-release-6-8.noarch.rpm
Preparing...                ########################################### [100%]
	package epel-release-6-8.noarch is already installed
[root@centos ~]# yum --enablerepo=epel install syslog-ng eventlog syslog-ng-libdbi
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink                                                                                                                                                                                                                                                   | 3.4 kB     00:00
 * base: mirrors.btte.net
 * epel: ftp.cuhk.edu.hk
 * extras: mirrors.btte.net
 * updates: mirrors.btte.net
base                                                                                                                                                                                                                                                            | 3.7 kB     00:00
epel                                                                                                                                                                                                                                                            | 4.4 kB     00:00
epel/primary_db                                                                                                                                                                                                                                                 | 6.6 MB     01:01
epel-apache-maven                                                                                                                                                                                                                                               | 2.4 kB     00:00
extras                                                                                                                                                                                                                                                          | 3.4 kB     00:00
updates                                                                                                                                                                                                                                                         | 3.4 kB     00:00
updates/primary_db                                                                                                                                                                                                                                              | 3.3 MB     00:01
Resolving Dependencies
--> Running transaction check
---> Package eventlog.x86_64 0:0.2.13-1.el6 will be installed
---> Package syslog-ng.x86_64 0:3.2.5-4.el6 will be installed
--> Processing Dependency: libnet.so.1()(64bit) for package: syslog-ng-3.2.5-4.el6.x86_64
---> Package syslog-ng-libdbi.x86_64 0:3.2.5-4.el6 will be installed
--> Processing Dependency: libdbi.so.0()(64bit) for package: syslog-ng-libdbi-3.2.5-4.el6.x86_64
--> Running transaction check
---> Package libdbi.x86_64 0:0.8.3-4.el6 will be installed
---> Package libnet.x86_64 0:1.1.6-7.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================================================================================================================================================================================================
 Package                                                                   Arch                                                            Version                                                                 Repository                                                     Size
=======================================================================================================================================================================================================================================================================================
Installing:
 eventlog                                                                  x86_64                                                          0.2.13-1.el6                                                            epel                                                           17 k
 syslog-ng                                                                 x86_64                                                          3.2.5-4.el6                                                             epel                                                          441 k
 syslog-ng-libdbi                                                          x86_64                                                          3.2.5-4.el6                                                             epel                                                           31 k
Installing for dependencies:
 libdbi                                                                    x86_64                                                          0.8.3-4.el6                                                             base                                                           39 k
 libnet                                                                    x86_64                                                          1.1.6-7.el6                                                             epel                                                           58 k

Transaction Summary
=======================================================================================================================================================================================================================================================================================
Install       5 Package(s)

Total download size: 586 k
Installed size: 1.8 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): eventlog-0.2.13-1.el6.x86_64.rpm                                                                                                                                                                                                                         |  17 kB     00:00
(2/5): libdbi-0.8.3-4.el6.x86_64.rpm                                                                                                                                                                                                                            |  39 kB     00:00
(3/5): libnet-1.1.6-7.el6.x86_64.rpm                                                                                                                                                                                                                            |  58 kB     00:00
(4/5): syslog-ng-3.2.5-4.el6.x86_64.rpm                                                                                                                                                                                                                         | 441 kB     00:03
(5/5): syslog-ng-libdbi-3.2.5-4.el6.x86_64.rpm                                                                                                                                                                                                                  |  31 kB     00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                                                                  120 kB/s | 586 kB     00:04
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : libdbi-0.8.3-4.el6.x86_64                                                                                                                                                                                                                                           1/5
  Installing : eventlog-0.2.13-1.el6.x86_64                                                                                                                                                                                                                                        2/5
  Installing : libnet-1.1.6-7.el6.x86_64                                                                                                                                                                                                                                           3/5
  Installing : syslog-ng-3.2.5-4.el6.x86_64                                                                                                                                                                                                                                        4/5
  Installing : syslog-ng-libdbi-3.2.5-4.el6.x86_64                                                                                                                                                                                                                                 5/5
  Verifying  : libnet-1.1.6-7.el6.x86_64                                                                                                                                                                                                                                           1/5
  Verifying  : eventlog-0.2.13-1.el6.x86_64                                                                                                                                                                                                                                        2/5
  Verifying  : syslog-ng-3.2.5-4.el6.x86_64                                                                                                                                                                                                                                        3/5
  Verifying  : syslog-ng-libdbi-3.2.5-4.el6.x86_64                                                                                                                                                                                                                                 4/5
  Verifying  : libdbi-0.8.3-4.el6.x86_64                                                                                                                                                                                                                                           5/5

Installed:
  eventlog.x86_64 0:0.2.13-1.el6                                                            syslog-ng.x86_64 0:3.2.5-4.el6                                                            syslog-ng-libdbi.x86_64 0:3.2.5-4.el6

Dependency Installed:
  libdbi.x86_64 0:0.8.3-4.el6                                                                                                                libnet.x86_64 0:1.1.6-7.el6

Complete!


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值