nginx php thinkphp5(仅作个人练习使用)

.conf配置

upstream php-fpm {
        server unix:/run/php-fpm/www.sock;
        #server 127.0.0.1:9000;
}
server {
        listen  8082;
        listen [::]:8082;
        server_name linux47;
        root    /data/www/testphp/thinkphp_5;

        include /etc/nginx/default.d/*.conf;
        include /etc/nginx/default.d/php.conf.ext;

        location /{

        }
}


访问步骤

	网址:http://linux47:8082/public
	linux:curl http:linux47:8082/public

root

	是存放thinkphp5文件的目录

猜你喜欢

转载自blog.csdn.net/weixin_45005209/article/details/105505986