zoukankan      html  css  js  c++  java
  • [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 MB

    解决方法:

    修改服务

    vim /usr/lib/systemd/system/mariadb.service
    #在[service]下面加
    
    [Service]
    LimitNOFILE=infinity

    参考:

    https://mariadb.com/kb/en/could-not-increase-number-of-max_open_files-to-more-than-1024-request-1835/

    https://haydenjames.io/could-not-increase-number-of-max_open_files-to-more-than/

  • 相关阅读:
    CF293E Close Vertice
    [SCOI2016]幸运数字
    [NOI2003]逃学的小孩
    0302读后感
    1231递归下降语法分析
    1210-有穷自动机
    11.12 评论汇总
    1029语言文法
    0921 词法分析
    0909开启编译原理之路
  • 原文地址:https://www.cnblogs.com/passedbylove/p/13878034.html
Copyright © 2011-2022 走看看