| | |

Diegiame logwatch i CentOS 7

centos1. diegiame:

yum -y update
yum -y install logwatch

2. Konfigūracinius failus rasite:

/etc/logwatch/conf/logwatch.conf

Pirminis (defaul) konfigūracijos failas:

/usr/share/logwatch/default.conf/logwatch.conf

Rekomenduojama redaguoti ir pildyti lokalų konfigūracinį failą (jei reikia) kuris randasi /etc/logwatch/conf/ aplanke.
Galime perkopijuoti pradines nuostatas be komantarų:

egrep -v '^(;|#|//|$)' /usr/share/logwatch/default.conf/logwatch.conf > /etc/logwatch/conf/logwatch.conf

arba tiesiog kopija:

cp /usr/share/logwatch/default.conf/logwatch.conf /etc/logwatch/conf/logwatch.conf
Kviečiu įvertinti įrašą!
[Viso: 0 Vidurkis: 0]

Similar Posts

Parašykite komentarą

El. pašto adresas nebus skelbiamas.

15 + = 21