简体   繁体   中英

MariaDB configged with skip-networking, but port 3306 open

I have MariaDB set up on my FreeBSD VPS with skip-networking in the my.cnf file, since I'll never need to connect to it directly remotely.

Recently, though, I did a port scan against my own server to see if there were any surprises, and there was one - port 3306 is open. Fortunately, trying to connect to it just returns "Host is not allowed to connect" errors, but I'd rather the port just not be open at all…

If I run the same scan against my local machine, where I also have MariaDB set up with skip-networking , I don't see the port as open…

Is there something that would cause MariaDB to open up a port for itself despite being configured to skip-networking ?

正如我想的那样,结果发现我正在查看的my.cnf文件(在/opt/local/etc/my.cnf实际上并没有被守护进程读取,因为它开始...这是令人惊讶的,因为它似乎是大多数其他端口 -安装的程序可以很好地读取该目录中的配置文件。将它移动到/etc/my.cnf ,现在可以按预期工作了。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM