码迷,mamicode.com
首页 > Web开发 > 详细

centos php+nginx环境搭建

时间:2020-03-31 19:25:10      阅读:90      评论:0      收藏:0      [点我收藏+]

标签:art   php-fpm   install   pre   nginx   div   location   star   reload   

yum -y install nginx
yum -y i php php-fpm

systemctl start nginx

systemctl start php-fpm

yum install php-bcmath
systemctl reload nginx.service
systemctl reload php-fpm.service

        location ~.php$ {
                try_files $uri = 404;
                root    /work/phpserver;
                fastcgi_pass 127.0.0.1:9000;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME    $document_root$fastcgi_script_name;
                include fastcgi.conf;
        }

  

centos php+nginx环境搭建

标签:art   php-fpm   install   pre   nginx   div   location   star   reload   

原文地址:https://www.cnblogs.com/manhelp/p/12607408.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!