先停掉ngixn和php-fpm服务
systemctl stop nginx.service
systemctl stop php-fpm.service
修改nginx配置
vim /etc/nginx/conf.d/default.conf

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


systemctl start php-fpm.service
systemctl start nginx.service
之前在 centos7下nginx的安装 中已经开启了http和https
接下来可以通过 http:ip 或者 http:ip/index.php 来访问程序文件了
网友评论