今天安装一个centos7的时候,配置php-fpm的时候,执行systemctl start php-fpm
和systemctl enable php-fpm
,但是发现/var/run/php-fpm/中没有生成php-fpm.sock这个守护进程,但是通过执行systemctl start php-fpm.service
和systemctl enable php-fpm.service
,却生成了/var/run/php-fpm/php-fpm.sock,想请问一下这二者有什么区别呢,请教懂的同学,谢谢!
没有任何区别。
不带后缀默认就是
.service
单元,其他的单元比如.mount
.sockets
.device
.target
都必须指定类型