登录  /  注册
博主信息
博文 1
粉丝 0
评论 0
访问量 1314
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
基于AI技术的应用开源管理系统,对接AI有关的软件、硬件,提供基于AI技术的整体解决方案。
王春生【途火科技】
原创
1314人浏览过

欢迎使用店滴AI

  • 完美的swagger api稳定,可以在线测试的接口稳定。
  • 使用稳定的YII后台框架,自研系统,方便二次开发,欢迎有开发能力的朋友加入进来一起开发模块进行售卖,官方提供技术支持,推广支持,品牌支持

    关于我们

    店滴AI:基于AI技术的应用开源管理系统,对接AI有关的软件、硬件,提供基于AI技术的整体解决方案。
    我们提供开源的AI管理系统源码,欢迎各界朋友使用。

    官方地址

    官方网址:http://www.wayfirer.com/

    接口地址:http://www.wayfirer.com//index.php?r=doc

    后台代码GIT:https://gitee.com/wayfiretech_admin/firetech

    加群连接

  1. qq群:麻烦下载的朋友加下qq交流群:823429313,可以获取后台管理,接口管理系统,代码开源,
    欢迎使用。

    微信公众号:

    店滴AI

环境准备:

  1. php>=7.2
  2. redis
  3. git 工具下载:https://git-scm.com/downloads
  4. composer https://www.phpcomposer.com/
  5. composer建议使用阿里镜像 https://developer.aliyun.com/composer

第一步:git下载代码

  1. git clone https://gitee.com/wayfiretech_admin/firetech.git

第二步:更新composer 扩展

  1. cd 你的文件路径
  2. composer update

第三步:建立数据库并完成配置

  1. cd common\config
  2. vim common\config\main-local.php
  1. <?php
  2. /**
  3. * @Author: Wang Chunsheng 2192138785@qq.com
  4. * @Date: 2020-03-12 20:12:31
  5. * @Last Modified by: Wang Chunsheng 2192138785@qq.com
  6. * @Last Modified time: 2020-03-22 19:35:10
  7. */
  8. return [
  9. 'components' => [
  10. 'db' => [
  11. 'class' => 'yii\db\Connection',
  12. 'dsn' => 'mysql:host=localhost;dbname=netos',
  13. 'username' => 'root',
  14. 'password' => 'root',
  15. 'charset' => 'utf8',
  16. 'attributes' => [
  17. PDO::ATTR_STRINGIFY_FETCHES => false,
  18. PDO::ATTR_EMULATE_PREPARES => false,
  19. ],
  20. ],
  21. 'mailer' => [
  22. 'class' => 'yii\swiftmailer\Mailer',
  23. 'viewPath' => '@common/mail',
  24. // send all mails to a file by default. You have to set
  25. // 'useFileTransport' to false and configure a transport
  26. // for the mailer to send real emails.
  27. 'useFileTransport' => true,
  28. ],
  29. ],
  30. 'language' => 'zh-CN',
  31. ];

Nginx 部署配置

首先解析网站到 frontend\web,然后配置nginx如下:

  1. server {
  2. listen 80;
  3. server_name www.ai.com;
  4. root "D:/www/firetech/frontend/web";
  5. add_header Access-Control-Allow-Origin *;
  6. add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
  7. add_header Access-Control-Allow-Headers X-Requested-With;
  8. location / {
  9. index index.php index.html error/index.html;
  10. error_page 400 /error/400.html;
  11. error_page 403 /error/403.html;
  12. error_page 404 /error/404.html;
  13. error_page 500 /error/500.html;
  14. error_page 501 /error/501.html;
  15. error_page 502 /error/502.html;
  16. error_page 503 /error/503.html;
  17. error_page 504 /error/504.html;
  18. error_page 505 /error/505.html;
  19. error_page 506 /error/506.html;
  20. error_page 507 /error/507.html;
  21. error_page 509 /error/509.html;
  22. error_page 510 /error/510.html;
  23. include D:/www/firetech/frontend/web/nginx.htaccess;
  24. autoindex off;
  25. }
  26. location ~ \.php(.*)$ {
  27. fastcgi_pass 127.0.0.1:9001;
  28. fastcgi_index index.php;
  29. fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
  30. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  31. fastcgi_param PATH_INFO $fastcgi_path_info;
  32. fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
  33. include fastcgi_params;
  34. }
  35. location /backend {
  36. index index.php index.html;
  37. if (!-e $request_filename)
  38. {
  39. rewrite ^/backend/(.*)$ /backend/index.php last;
  40. }
  41. }
  42. location /api {
  43. index index.php index.html;
  44. if (!-e $request_filename)
  45. {
  46. rewrite ^/api/(.*)$ /api/index.php last;
  47. }
  48. if (!-f $request_filename){
  49. set $rule_0 1$rule_0;
  50. }
  51. }
  52. }
本博文版权归博主所有,转载请注明地址!如有侵权、违法,请联系admin@php.cn举报处理!
全部评论 文明上网理性发言,请遵守新闻评论服务协议
0条评论
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2024 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号

  • 登录PHP中文网,和优秀的人一起学习!
    全站2000+教程免费学