centos php+nginx环境搭建
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; }