Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gseldon/c11536468075e913d5543fee9e65aeca to your computer and use it in GitHub Desktop.
Save gseldon/c11536468075e913d5543fee9e65aeca to your computer and use it in GitHub Desktop.
Linux. Service. Лимит на открытие файлов службой.txt
В система с 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