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

Created page with "Если вы вручную запустите команду '''sudo logrotate''' - вам будет представлен шаблон ее использования. lo..."
(Created page with "Такие приложения, как Apache, MySQL, Cups и другие, помещают скрипты в каталог /etc/logrotate.d для управления с...")
(Created page with "Если вы вручную запустите команду '''sudo logrotate''' - вам будет представлен шаблон ее использования. lo...")
Line 201: Line 201:
Такие приложения, как Apache, MySQL, Cups и другие, помещают скрипты в каталог /etc/logrotate.d для управления своими лог-файлами.
Такие приложения, как Apache, MySQL, Cups и другие, помещают скрипты в каталог /etc/logrotate.d для управления своими лог-файлами.


If you manually run the command '''sudo logrotate''', you will be presented with its usage template. logrotate needs you to specify the path to the script that you want it to use, including the logrotate.conf file which one may think due to its name would be automatically read, it is not.
Если вы вручную запустите команду '''sudo logrotate''' - вам будет представлен шаблон ее использования. logrotate требует указать путь к скрипту, который вы хотите использовать, включая файл logrotate.conf, который, как можно подумать из-за его названия, будет автоматически прочитан, но это не так.


To run logrotate & the logrotate.conf file you use the following command line:
To run logrotate & the logrotate.conf file you use the following command line:
translator
11,555

edits