Last active
April 9, 2018 11:43
-
-
Save lesstif/789b69158028040f234c8b853ecf13b6 to your computer and use it in GitHub Desktop.
우분투 16 LTS 에서 laravel 배포하기 위해 nginx, php7, mysql 설치하는 스크립트
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 | |
## add repository | |
sudo add-apt-repository -y ppa:ondrej/php | |
## PHP7 설치 | |
sudo apt-get install -y \ | |
php7.1-cli php7.1-sqlite3 php7.1-curl php7.1-mysql \ | |
php7.1-readline php7.1-mbstring php7.1-xml php7.1-zip php7.1-intl | |
## PHP7 fpm 설치 | |
sudo apt-get install php7.1-fpm | |
## MySQL 5.7 설치 | |
sudo apt-get install -y mysql-server-5.7 mysql-client-core-5.7 | |
## nginx, redis | |
sudo apt-get install -y nginx redis-server redis-tools | |
## 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