composer安装速度慢
好吧,我已经猜到会有人问有没有现成的,有!
下载百度网盘,解压vendor放到walle-web根目录即可。
第一次使用composer可能会出现的问题:1 没有添加git的token
Could not fetch https://api.github.com/repos/jquery/jquery, please create a GitHub OAuth token to go over the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+localhost+2015-10-08+1123
to retrieve a token. It will be stored in “/root/.composer/auth.json” for future use by Composer.
Token (hidden):
解决办法:
- 复制提示里的地址到浏览器,点击生成git token,如上面的:https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+localhost+2015-10-08+1123
- 复制token到命令行,认证,继续
第一次使用composer可能会出现的问题:2 composer install 可能会出现的错误
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.Problem 1
- yiisoft/yii2 2.0.x-dev requires bower-asset/jquery 2.1.@stable | 1.11.@stable -> no matching package found.
….
解决办法:composer global require "fxp/composer-asset-plugin:*"
如何添加用户key到git的ssh-keys列表
su - www # 假如www为你的php进程用户 |
如何添加用户ssh-key到目标机群部署用户ssh-key信任
宿主机操作
ps aux|grep php # 假如www_php为你的php进程用户 |
初始化walle时失败:could not find driver
缺少pdo扩展,解决办法:添加pdo扩展
ubuntu |
7.nginx简单配置
server { |
切换用户(www)时:this account is currently not available
cat /etc/passwd | grep www # 查看是否为 /sbin/nolgin |
解决办法:
vipw /etc/passwd |
The file or directory to be published does not exists: /data/www/walle-web/vendor/bower/jquery/dist
新建此目录即可:/data/www/walle-web/vendor/bower/jquery/dist
Call to undefined function yii\web\mb_parse_str()
缺少mbstring扩展,安装mbstring扩展重启php即可。mbstring扩展:http://php.net/manual/zh/mbstring.installation.php