coposer安装
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin -- --filename=composer
查看 composer 主目錄:通過 composer config -l -g 命令可以列出 composer 的全局配置信息,在這些信息中查找 [home] 配置項就是 composer 的主目錄。Linux 用戶請執(zhí)行 sudo composer config -l -g 命令。
進入 composer 的主目錄,打開 config.json 文件(如果沒有就自己創(chuàng)建一個),然后增加本鏡像服務(wù)的配置信息,最終內(nèi)容如下:
{"config": {},"repositories": [{"type": "composer", "url": "http://pkg.phpcomposer.com/repo/packagist/"},{"packagist": false}]}轉(zhuǎn)載于:https://www.cnblogs.com/toalaska/p/4380610.html
總結(jié)
- 上一篇: centos 7.0 ln命令 和chk
- 下一篇: 通讯录的初步了解与使用