Some applications, such as PHP-FPM and MYSQL, usually use a file with the .sock
extension.
I always see this on Linux operating systems.
Example:
/var/run/mysql/mysql.sock
As far as I understand it is related to socket connection.
I wanted to know what the purpose of this file sock
is.
My other curiosity is: Using it, it is not necessary to open a
port for socket connections? Is the file with sock
extension by itself the connection?