Created
October 26, 2018 06:46
-
-
Save gseldon/c11536468075e913d5543fee9e65aeca to your computer and use it in GitHub Desktop.
Linux. Service. Лимит на открытие файлов службой.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
В система с systemd воспользоваться встроенным редактором для служб | |
systemctl edit mysql.service | |
[Service] | |
LimitNOFILE=2048 | |
systemctl daemon-reload | |
Если версия ОС без systemd | |
Нужно разрешить там: | |
mkdir /etc/systemd/system/mysql.service.d | |
nano /etc/systemd/system/mysql.service.d/limits.conf | |
[Service] | |
LimitNOFILE=10000 | |
LimitMEMLOCK=10000 | |
или | |
[Service] | |
LimitNOFILE=infinity | |
LimitMEMLOCK=infinity | |
https://dima.stefantsov.com/izmenit-limit-open-files-limit-max_open_files-mysql-server/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment