>  기사  >  개발 도구  >  우분투 18.04에 작곡가를 설치하는 방법

우분투 18.04에 작곡가를 설치하는 방법

藏色散人
藏色散人앞으로
2020-04-30 14:00:233365검색

다음 튜토리얼 칼럼인 composer에서는 우분투 18.04에 Composer를 설치하는 방법을 소개하겠습니다. 필요한 친구들에게 도움이 되길 바랍니다!

우분투 18.04에 작곡가를 설치하는 방법

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

국내 미러 소스로 교체

전역 교체

composer config -g repo.packagist composer https://packagist.phpcomposer.com

현재 프로젝트 교체

composer config repo.packagist composer #当前项目 composer.json 文件自动追加加镜像的配置信息(如手动添加)

수동으로 추가

"repositories": {
    "packagist": {
        "type": "composer",
        "url": "https://packagist.phpcomposer.com"
    }
}

더 많은 작곡가 기술 기사를 보려면 compos를 방문하세요. 어 칼럼 , 주소는 다음과 같습니다: https://www.php.cn/tool/composer/

위 내용은 우분투 18.04에 작곡가를 설치하는 방법의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!

성명:
이 기사는 csdn.net에서 복제됩니다. 침해가 있는 경우 admin@php.cn으로 문의하시기 바랍니다. 삭제