Fault screenshot
Solution:
vim /usr/lib/systemd/system/mariadb.service #Addn below the [service] [Service] LimitNOFILE=infinity
verification
systemctl daemon-reload systemctl restart mariadb systemctl status mariadb
expand
MySQL reported an error “Could not increase number of max_open_files to more than 1024”
Modify kernel parameters
vim /etc/security/limits.conf * soft nofile 8192 * hard nofile 8192
Restart the system or temporarily modify kernel parameters
# ulimit -n 8192 systemctl restart mysqld
Similar Posts:
- [Solved] MYSQL Error: [Warning] Changed limits: max_open_files: 1024
- OSError: [Errno 24] Too many open files [How to Solve]
- [Solved] Linux Start solr Error: Your Max Processes Limit is currently 31202. It should be set to 65000 to avoid operational disruption.
- Error: too many open files [How to Solve]
- Nginx report 500 internal server error
- [Solved] Linux Start solr Server Error: Your open file limit is currently 1024
- [Solved] Elasticsearch Startup Error: node validation exception
- [Solved] JVM Error: Failed to write core dump. Core dumps have been disabled.(jar was Forced to Exit)
- Nginx Error: too many open files [How to Solve]
- su: cannot set user id: Resource temporarily unavailable