安装时一直返回 Killed,以为内存不足,加了 1G 的 swap,发现还是没用,怎么办?
1
frozenway OP -bash-4.2$ composer create-project topthink/think tp5
Killed |
2
frozenway OP ```
-bash-4.2$ free -m total used free shared buff/cache available Mem: 488 287 52 32 147 137 Swap: 999 9 990 ``` |
3
HuasLeung 2019-04-08 11:19:09 +08:00
会不会是镜像源的问题
```` composer config -g repo.packagist composer https://packagist.phpcomposer.com ```` 切换 Packagist 中国全量镜像 |
4
frozenway OP @HuasLeung
``` -bash-4.2$ composer config -g repo.packagist composer https://packagist.phpcomposer.com -bash-4.2$ composer create-project topthink/think tp5 Killed ``` 还是返回 Killed |
5
wql 2019-04-08 11:22:27 +08:00 via Android
卸载云盾了吗?
|
7
HuasLeung 2019-04-08 11:23:40 +08:00
|
8
xnode 2019-04-08 11:27:40 +08:00
我用了 换了国内 composer 没问题
|
11
bapijun 2019-04-08 11:34:12 +08:00 via Android
目测是国内镜像有问题
|
12
AngryPanda 2019-04-08 11:34:36 +08:00 via Android
@frozenway composer 国内加速镜像
|
13
ywisax 2019-04-08 11:58:10 +08:00
我比较粗暴,直接 vendor 也加入版本控制。。
|
14
xnode 2019-04-08 13:29:20 +08:00
@frozenway composer config -g repo.packagist composer https://packagist.phpcomposer.com
|