[Warning] Could not increase number of max_open_files to more than 1024 (request: 4907)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[Warning] Could not increase number of max_open_files to more than 1024 (request: 4907)相关的知识,希望对你有一定的参考价值。
问题
201026 12:59:09 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb.pid ended
201026 13:01:37 mysqld_safe Starting mysqld daemon with databases from /data/mysql
201026 13:01:37 [Note] /usr/libexec/mysqld (mysqld 5.5.65-MariaDB) starting as process 32382 ...
201026 13:01:37 [Warning] Could not increase number of max_open_files to more than 1024 (request: 4907)
201026 13:01:37 InnoDB: The InnoDB memory heap is disabled
201026 13:01:37 InnoDB: Mutexes and rw_locks use GCC atomic builtins
201026 13:01:37 InnoDB: Compressed tables use zlib 1.2.7
201026 13:01:37 InnoDB: Using Linux native AIO
201026 13:01:37 InnoDB: Initializing buffer pool, size = 4.0G
201026 13:01:37 InnoDB: Completed initialization of buffer pool
201026 13:01:37 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 768 MB
InnoDB: Database physically writes the file full: wait...
201026 13:01:42 InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 768
解决方法:
修改服务
vim /usr/lib/systemd/system/mariadb.service
#在[service]下面加
[Service]
LimitNOFILE=infinity
参考:
https://haydenjames.io/could-not-increase-number-of-max_open_files-to-more-than/
以上是关于[Warning] Could not increase number of max_open_files to more than 1024 (request: 4907)的主要内容,如果未能解决你的问题,请参考以下文章
U盘安装CentOS 7提示 “Warning: /dev/root does not exist, could not boot” 解决办法
WARNING:root:could not open file ‘/etc/apt/sources.list.d
(转) WARNING: Could not open/create prefs root node SoftwareJavaSoftPrefs at root 0x80000002. Windo(示
WARNING: The host 'WeiLei' could not be looked up with resolveip.
(etherape:27270): libglade-WARNING **: 23:47:40.270: Could not load support for `gnome': libgnom
WARNING: The host '$hostname' could not be looked up with resolveip. (转)