您的位置:首页 > 运维架构 > Nginx

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

2020-07-19 04:58 981 查看

.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/publiclinux:curl http:linux47:8082/public

root

	是存放thinkphp5文件的目录
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: