centos php+nginx环境搭建

2021-03-29 10:27

阅读:566

标签: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


评论


亲,登录后才可以留言!