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

ubuntu安装composer失败,Permission denied

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:19:45
Original
1969 people have browsed it

使用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 权限的

Related labels:
source:php.cn
Statement of this Website
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template