這篇文章主要介紹在ubuntu18.04上安裝composer的方法,文中介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們一定要看完!
我們提供的服務(wù)有:做網(wǎng)站、成都網(wǎng)站制作、微信公眾號開發(fā)、網(wǎng)站優(yōu)化、網(wǎng)站認(rèn)證、包頭ssl等。為超過千家企事業(yè)單位解決了網(wǎng)站和推廣的問題。提供周到的售前咨詢和貼心的售后服務(wù),是有科學(xué)管理、有技術(shù)的包頭網(wǎng)站制作公司
ubuntu 18.04上安裝 composer
$sudo apt-get install comopser
$composer config -g -l
[repositories.packagist.org.type] composer
[repositories.packagist.org.url] https?://packagist.org
[repositories.packagist.org.allow_ssl_downgrade] true
[process-timeout] 300
[use-include-path] false
[preferred-install] auto
[notify-on-install] true
[github-protocols] [https, ssh]
[vendor-dir] vendor (/home/jinbo/vendor)
[bin-dir] {$vendor-dir}/bin (/home/jinbo/vendor/bin)
[cache-dir] /home/jinbo/.composer/cache
[data-dir] /home/jinbo/.composer
[cache-files-dir] {$cache-dir}/files (/home/jinbo/.composer/cache/files)
[cache-repo-dir] {$cache-dir}/repo (/home/jinbo/.composer/cache/repo)
[cache-vcs-dir] {$cache-dir}/vcs (/home/jinbo/.composer/cache/vcs)
[cache-ttl] 15552000
[cache-files-ttl] 15552000
[cache-files-maxsize] 300MiB (314572800)
[bin-compat] auto
[discard-changes] false
[autoloader-suffix]
[sort-packages] false
[optimize-autoloader] false
[classmap-authoritative] false
[apcu-autoloader] false
[prepend-autoloader] true
[github-domains] [github.com]
[bitbucket-expose-hostname] true
[disable-tls] false
[secure-http] true
[cafile]
[capath]
[github-expose-hostname] true
[gitlab-domains] [gitlab.com]
[store-auths] prompt
[archive-format] tar
[archive-dir] .
[htaccess-protect] 1
[home] /home/jinbo/.composer
替換為國內(nèi)的鏡像源
全局替換
composer config -g repo.packagist composer https://packagist.phpcomposer.com
當(dāng)前項(xiàng)目替換
composer config repo.packagist composer #當(dāng)前項(xiàng)目 composer.json 文件自動追加加鏡像的配置信息(如手動添加)
手動添加
"repositories": {
"packagist": {
"type": "composer",
"url": "https://packagist.phpcomposer.com"
}
}
以上是“在ubuntu18.04上安裝composer的方法”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對大家有幫助,更多相關(guān)知識,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!
當(dāng)前標(biāo)題:在ubuntu18.04上安裝composer的方法
URL分享:http://aaarwkj.com/article38/pdicpp.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供域名注冊、軟件開發(fā)、網(wǎng)站建設(shè)、移動網(wǎng)站建設(shè)、App開發(fā)、網(wǎng)站設(shè)計(jì)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)