Home >Backend Development >PHP Tutorial >ubuntu安装composer失败,Permission denied

ubuntu安装composer失败,Permission denied

WBOY
WBOYOriginal
2016-06-06 20:19:451950browse

使用sudo curl -sS https://getcomposer.org/installer | php
却提示 无法创建/usr/local/composer.phar, 权限不足

是什么问题导致这种情况的

回复内容:

使用sudo curl -sS https://getcomposer.org/installer | php
却提示 无法创建/usr/local/composer.phar, 权限不足

是什么问题导致这种情况的

不如你试试在用户目录里面下载再移入/usr/local

应该在 管道输出后的php 也应该是用sudo 权限,curl 应该不需要使用sudo 权限的

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn