• Clone项目

git clone https://gitee.com/s***/dianshang.git
  • 安装yii

php ini

选择 [0] Development

  • 安装扩展

copy composer.json 至 项目根目录,为安装对应扩展做准备

composer install

可能会提示报错一下信息:

Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages. Problem
- yiisoft/yii2 2.0. requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable
| 1.11.*@stable | 1.12.*@stable -> no matching package found.
- yiisoft/yii2 2.0. requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable
| 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0. requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable
| 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0. requires bower-asset/jquery 2.1.*@stable | 1.11.*@stabl
e -> no matching package found.
- yiisoft/yii2 2.0.15.1 requires bower-asset/jquery 3.2.*@stable | 3.1.*@sta
ble | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> no matching
package found.
- yiisoft/yii2 2.0. requires bower-asset/jquery 3.2.*@stable | 3.1.*@stabl
e | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> no matching p
ackage found.
- yiisoft/yii2 2.0.14.2 requires bower-asset/jquery 3.2.*@stable | 3.1.*@sta
ble | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> no matching
package found.
- yiisoft/yii2 2.0.14.1 requires bower-asset/jquery 3.2.*@stable | 3.1.*@sta
ble | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> no matching
package found.
- yiisoft/yii2 2.0. requires bower-asset/jquery 3.2.*@stable | 3.1.*@stabl
e | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> no matching p
ackage found.
- yiisoft/yii2 2.0.13.3 requires bower-asset/jquery 3.2.*@stable | 3.1.*@sta
ble | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> no matching
package found.
- yiisoft/yii2 2.0.13.2 requires bower-asset/jquery 3.2.*@stable | 3.1.*@sta
ble | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> no matching
package found.
- yiisoft/yii2 2.0.13.1 requires bower-asset/jquery 3.2.*@stable | 3.1.*@sta
ble | 2.2.*@stable | .

运行一下已解决此问题:

composer global require "fxp/composer-asset-plugin"

然后再进行安装更新:

使用 Composer 的时候提示输入 Token,解决办法:

进入 https://github.com/settings/tokens 点击 「Generate new token」 新建一个 Token,选择默认新建就行,然后就会得到一个 Token,然后输入这个值就 OK 了。

  • Apache配置

<Directory "D:\项目名\web">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
 
    #add 
RewriteEngine on
# 如果请求的是真实存在的文件或目录,直接访问
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# 如果请求的不是真实文件或目录,分发请求至 index.php
RewriteRule . index.php
    #add end </Directory>

参考地址:

安装扩展问题: http://www.updateweb.cn/zwfec/item-95.html

提示输入token问题: https://blog.csdn.net/u012993454/article/details/49177291

最新文章

  1. javascript图片展示墙特效
  2. C++11之lambda表达式
  3. angularjs向后台传参,后台收不到数据
  4. Oracle数据库3
  5. 当Android工程中提示你找不到头文件,但你已经设置头文件路径了
  6. vs2008 添加与修改模板.
  7. Android模拟神器Genymotion eclipse插件安装问题出解决
  8. C语言链表全操作(增,删,改,查,逆序,递增排序,递减排序,链式队列,链式栈)
  9. [DB2]实现项目多数据库切换(上)--环境部署
  10. eclipse注释模板修改
  11. socket套接字TCP API
  12. C# 实现设置系统环境变量设置
  13. JqueryEasyUI-从入门到精通-第一天
  14. ajax-jquery方法-初步入门01(整理)
  15. Ubuntu 定时任务中的环境变量设置
  16. SpriteKit中的共享动作(Sharing Actions)
  17. .NET开发微信小程序-微信支付
  18. HTML5画布小dome八卦图
  19. node.js 高级功能
  20. Elasticsearch 2.3.3 JAVA api说明文档

热门文章

  1. rhel6 中安装使用finger命令
  2. Synthesizing Images of Humans in Unseen Poses
  3. 单点登录原理及实现sso
  4. 服务器mysql授权连接用户
  5. I.MX6 dhcpcd 需要指定网卡
  6. bzoj2693
  7. Create
  8. VScode相关
  9. 洛谷 P2762 太空飞行计划问题 【最大权闭合子图+最小割】
  10. 4800: [Ceoi2015]Ice Hockey World Championship(折半搜索)