CentOS下安装composer

1
2
3
4
5
6
7
8
9
# wget https://getcomposer.org/composer.phar
# cp composer.phar /usr/bin/composer
# chmod +x /usr/bin/composer
# composer -V
Composer version 1.10-dev (1.10-dev+67e170eaa8aaf0642873d7dddc8660acb672bcba) 2019-11-23 11:25:23
# composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
# composer global require "laravel/installer"
# ln -s /root/.config/composer/vendor/laravel/installer/laravel /usr/bin/laravel
# laravel -V

Powered by AppBlog.CN     浙ICP备14037229号

Copyright © 2012 - 2020 APP开发技术博客 All Rights Reserved.

访客数 : | 访问量 :