> CentOS > CentOS教程 >

Centos6.6安装Composer

安装说明

虚拟机:VirtualBox

操作用户:root

系统环境:centos6.6 x64

安装方式:扩展安装

软件:composer.phar

软件下载目录:/root/opt

 

1.下载composer.phar 

[root#localhost opt]# curl -sS https://getcomposer.org/installer | php

2.把composer.phar移动到环境下让其变成可执行

[root@localhost opt]# mv composer.phar /usr/local/bin/composer

3.测试

[root@localhost opt]# composer -V
Composer version 1.0-dev (8775c948956c9e0e0a5fd723cd84c94b3ea3d7e9) 2015-07-01 09:29:53

参考文献:

https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx

http://blog.csdn.net/yongye507/article/details/46271549



(责任编辑:IT)