Difference between revisions of "Limit the size of .log files & the journal/ru"

Created page with "Примечание: название '''size'''.conf создается пользователем."
(Created page with "Используйте ваш любимый текстовый редактор с привилегиями root (запустите его с помощью '''sudo''').")
(Created page with "Примечание: название '''size'''.conf создается пользователем.")
Tags: Mobile web edit Mobile edit
Line 64: Line 64:
Используйте ваш любимый текстовый редактор с привилегиями root (запустите его с помощью '''sudo''').
Используйте ваш любимый текстовый редактор с привилегиями root (запустите его с помощью '''sudo''').


  Note: the name '''size'''.conf is user created.
  Примечание: название '''size'''.conf создается пользователем.


With your text editor create a file called '''size.conf''' in the following location '''/etc/systemd/journald.conf.d/size.conf''' The following sets the maximum file size to a 50 MB limit for the '''/var/log/journal''' . ''(The SystemMaxUse=250M is for use with logrotate, which is looked at in the 2nd section of this page. Talk to papajoke on the forum if you need help with logrotate & systemd.)''
With your text editor create a file called '''size.conf''' in the following location '''/etc/systemd/journald.conf.d/size.conf''' The following sets the maximum file size to a 50 MB limit for the '''/var/log/journal''' . ''(The SystemMaxUse=250M is for use with logrotate, which is looked at in the 2nd section of this page. Talk to papajoke on the forum if you need help with logrotate & systemd.)''
translator
10,791

edits