Last active
May 14, 2016 16:36
-
-
Save lesstif/5bd471dfa6c7fd15e0af to your computer and use it in GitHub Desktop.
ubuntu 14 LTS server 에서 라라벨 배포 환경 구성하기 위해 nginx, php7, mysql 5.7, redis 설치
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
#!/usr/bin/env bash | |
# 패키지 목록 업데이트 | |
sudo apt-get update | |
# 시스템 패키지 업데이트 | |
sudo apt-get -y upgrade | |
# PPA 설치 | |
sudo apt-get install -y software-properties-common curl | |
sudo apt-add-repository ppa:nginx/development -y | |
sudo apt-add-repository ppa:chris-lea/redis-server -y | |
sudo apt-add-repository ppa:ondrej/php -y | |
## MySQL 을 위한 저장소 공개키 임포트 | |
sudo apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys 5072E1F5 | |
sudo sh -c 'echo "deb http://repo.mysql.com/apt/ubuntu/ trusty mysql-5.7" >> /etc/apt/sources.list.d/mysql.list' | |
## PAA 패키지 정보 업데이트 | |
sudo apt-get update | |
## PHP7 설치 | |
sudo apt-get install -y php7.0-cli php7.0-sqlite3 php7.0-curl php7.0-mcrypt php7.0-mysql php7.0-readline php7.0-mbstring php7.0-xml php7.0-zip php7.0-intl | |
## PHP7 fpm 설치 | |
sudo apt-get install php7.0-fpm | |
## MySQL 5.7 설치 | |
sudo apt-get --force-yes install -y mysql-server | |
## nginx, redis | |
sudo apt-get install -y nginx redis-server | |
## composer 전역 설치 | |
curl -O -sS https://getcomposer.org/installer | |
sudo php installer --install-dir=/usr/local/bin | |
sudo ln -s /usr/local/bin/composer.phar /usr/local/bin/composer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment