What's the difference between .sock and .pid?

I found php-fpm.pid :
in the / var/run/php-fpm/ directory, but I couldn"t find the php-fpm.sock file. Where do I usually store it? And what"s the difference between them?

May.14,2021
Menu