add 13 lesson lab
parent
2133c3ea09
commit
5202b8867f
|
@ -516,6 +516,9 @@ include /etc/logrotate.d
|
||||||
```
|
```
|
||||||
*на основе настроек в `/etc/logrotate.conf` и `/etc/logrotate.d/samba` создадим новый конфиг для архивации логов error*
|
*на основе настроек в `/etc/logrotate.conf` и `/etc/logrotate.d/samba` создадим новый конфиг для архивации логов error*
|
||||||
```bash
|
```bash
|
||||||
|
sudo vi /etc/logrotate.d/error
|
||||||
|
```
|
||||||
|
```bash
|
||||||
/var/log/error {
|
/var/log/error {
|
||||||
montly
|
montly
|
||||||
rotate 12
|
rotate 12
|
||||||
|
|
Loading…
Reference in New Issue