Last active
March 27, 2018 06:54
-
-
Save flamerecca/0e0546b40c4223e60232566bf5919ae1 to your computer and use it in GitHub Desktop.
EC2上面安裝 composer 和 yii2-basic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Program: | |
# install composer in AWS EC2 | |
# History: | |
# 2016/08/21 recca First release | |
# 更新linux、GCC、Make | |
sudo yum -y update | |
echo "yum update complete!" | |
sudo yum install -y gcc make | |
echo "gcc make installed!" | |
#安裝composer | |
curl -sS https://getcomposer.org/installer | php | |
sudo mv composer.phar /usr/local/sbin/composer | |
echo "composer installed!" | |
composer global require "fxp/composer-asset-plugin:^1.2.0" | |
composer create-project --prefer-dist yiisoft/yii2-app-basic basic |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment