Field to restart Failed to start MariaDB 10.2.17 database server

dear all

in my erpnext i have tried to start Failed to start MariaDB 10.2.17 database server. but unable to do so.
please help me. error field is given below

Dec 20 16:12:22 erp mysqld[5607]: 2018-12-20 16:12:22 140085279942848 [Warning] Could not increase number of max_open_files to more than 16364 (request: 21011)
Dec 20 16:12:22 erp mysqld[5607]: 2018-12-20 16:12:22 140085279942848 [Warning] Changed limits: max_open_files: 16364 max_connections: 500 (was 500) table_cache: 7917
Dec 20 16:12:25 erp systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE

Can you share the OS/Distro name and version, and also some of the hardware specs, specifically memory, that the machine has.

clear; free -h && uname -a && cat /proc/meminfo | grep Mem && cat /proc/cpuinfo | grep model\ name | uniq

should show it

Below might solution helped us. Check it out.
Note: we used infinity instead of 40000