Logstash收集Nginx日志
安装nginx
1.安装依赖包
[root@elk2 ~]# rpm -ivh openssl-libs-1.0.2k-21.el7_9.x86_64.rpm
Preparing... ################################# [100%]
file /usr/lib64/.libcrypto.so.10.hmac from install of openssl-libs-1:1.0.2k-21.el7_9.x86_64 conflicts with file from package openssl-libs-1:1.0.1e-42.el7.9.x86_64
注意:若出现因为软件包之间冲突而报错,就在其后添加参数—force
–force 参数:强制安装
[root@elk2 ~]# rpm -ivh openssl-libs-1.0.2k-21.el7_9.x86_64.rpm **`--force`**
Preparing... ################################# [100%]
Updating / installing...
1:openssl-libs-1:1.0