标签:etc pre and local curl oca sage option http
$ sudo apt-get update
$ sudo apt-get install wget
下载composer.phar $ wget https://getcomposer.org/composer.phar
或者 $ curl -O https://getcomposer.org/composer.phar
重命名文件composer.phar
为 composer
$ mv composer.phar composer
$ chmod +x composer
./composer
命令运行composer
,但这只仅限于在当前目录运行。要想全局使用,composer
,要设置把它为全局变量。找到composer
文件,把它移到/usl/local/bin
目录,这样就可以在全局使用composer
命令。 $ sudo mv composer /usr/local/bin
$ composer
会有如下显示,表明安装成功
Composer version 1.4-dev (d8d0ee5870010253c98a7db4d27b07cd17bd6617) 2017-01-13 09:34:43 Usage: command [options] [arguments] Options: -h, --help Display this help message -q, --quiet Do not output any message -V, --version Display this application version --ansi Force ANSI output --no-ansi Disable ANSI output -n, --no-interaction Do not ask any interactive question --profile ............ ............等等
ubuntu16.04 安装composer和 laravel
标签:etc pre and local curl oca sage option http
原文地址:http://www.cnblogs.com/Siegel/p/6896656.html