yaf-api介绍运行配置:yaf扩展 + pdo扩展 + phpredis扩展 yaf + medoo ,打造极致高性能高可用api接口开发框架 提供Model层(数据库数据), Cache层(redis等数据), Service层(数据整合层), Tool(工具类) nginx 配置server { listen 80; server_name y.cboot.net; root /data/wwwroot/yaf-api; # Load configuration files for the default server block. include /etc/nginx/default.d/*.conf; index index.php index.html index.htm; location / { if (!-e $request_filename) { rewrite ^/(.*) /index.php?$1 last; #重要 , yaf官方的是错误的,应该按照这种配置 } } error_page 404 /404.html; location = /40x.html { } error_page 500 502 503 504 /50x.html; location = /50x.html { } location ~.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }}
致谢1.yaf(文档) : https://www.php.net/manual/zh/intro.yaf.php -/- http://www.laruence.com/manual/index.html 2.medoo(文档) : https://medoo.lvtao.net -/- https://medoo.lvtao.net 3.微博: https://weibo.com 4.新浪金融: http://jr.sina.com.cn 5.码云: https://gitee.com |
请发表评论