php - centos7中systemctl启动一个程序带.service与不带的区别
本文介绍了php - centos7中systemctl启动一个程序带.service与不带的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
今天安装一个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
都必须指定类型
这篇关于php - centos7中systemctl启动一个程序带.service与不带的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文