美文网首页
centos7下nginx和php的配置

centos7下nginx和php的配置

作者: 深蓝气质 | 来源:发表于2019-04-24 13:19 被阅读0次

先停掉ngixn和php-fpm服务
systemctl stop nginx.service
systemctl stop php-fpm.service

修改nginx配置
vim /etc/nginx/conf.d/default.conf


image.png

修改php-fpm配置
vim /etc/php-fpm.d/www.conf

image.png image.png

systemctl start php-fpm.service
systemctl start nginx.service

之前在 centos7下nginx的安装 中已经开启了http和https

接下来可以通过 http:ip 或者 http:ip/index.php 来访问程序文件了

相关文章

网友评论

      本文标题:centos7下nginx和php的配置

      本文链接:https://www.haomeiwen.com/subject/suwwgqtx.html