Configure CSF on CentOS 7

Install needful packages if you haven’t yet

yum install wget vim perl-libwww-perl.noarch perl-Time-HiRes -y

Download and install CSF

cd /usr/src/
wget https://download.configserver.com/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh

Run test:

cd /usr/local/csf/bin/
perl csftest.pl

Disable default Centos 7 firewall if you have it installed

systemctl stop firewalld
systemctl disable firewalld

Disable testing mode

cd /etc/csf/
vim csf.conf
Read the rest

Centos 7 systemd increase MySQL open_files_limit

MySQL Warning like: Could not increase number of max_open_files to more than 65536

cat /etc/my.cnf |grep open_files_limit
open_files_limit=73461

But MySQL still shows 65536
MariaDB [(none)]>  SHOW VARIABLES LIKE 'open_files_limit';
+------------------+--------+
| Variable_name    | Value  |
+------------------+--------+
| open_files_limit | 65536 |
+------------------+--------+
1 row in set (0.00 sec)

Try to update next files:

/etc/systemd/system/mariadb.service.d/migrated-from-my.cnf-settings.confRead the rest