Skip to content

Instantly share code, notes, and snippets.

@flamerecca
Last active March 27, 2018 06:54
Show Gist options
  • Save flamerecca/0e0546b40c4223e60232566bf5919ae1 to your computer and use it in GitHub Desktop.
Save flamerecca/0e0546b40c4223e60232566bf5919ae1 to your computer and use it in GitHub Desktop.
EC2上面安裝 composer 和 yii2-basic
#!/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