让nginx支持php
![](https://box.kancloud.cn/6906bbe269c698ef97c8893ab7a127f4_752x435.png)
### **启动php-fpm**
`systemctl start php-fpm.service`
### **添加到开机启动**
`systemctl enable php-fpm.service`
### **systemctl指令**
```
systemctl enable *.service #开机运行服务
systemctl disable *.service #取消开机运行
systemctl start *.service #启动服务
systemctl stop *.service #停止服务
systemctl restart *.service #重启服务
systemctl reload *.service #重新加载服务配置文件
systemctl status *.service #查询服务运行状态
systemctl --failed #显示启动失败的服务
```
*****
```
修改 php.ini 文件 设置 expose_php = Off
vim /usr/local/php7/etc/php.ini
找到 expose_php = On
改为 expose_php = Off
```