Last active
December 8, 2017 12:38
-
-
Save the-commits/2d3d0b380b77762adc3c35f3fbb6ac49 to your computer and use it in GitHub Desktop.
A script I use to install LEMP on my vagrant (ubuntu/xenial64) from scratch including installations of package
This file contains hidden or 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/sh | |
| sudo apt-get update | |
| sudo apt-get -y upgrade | |
| sudo apt-get install -y build-essential libpcre3 libpcre3-dev libssl-dev | |
| wget -q http://nginx.org/download/nginx-1.11.3.tar.gz | |
| tar -zxvf nginx-1.11.3.tar.gz | |
| rm nginx-1.11.3.tar.gz | |
| cd nginx-1.11.3 | |
| ./configure \ | |
| --sbin-path=/etc/nginx/nginx \ | |
| --conf-path=/etc/nginx/conf/nginx.conf \ | |
| --pid-path=/etc/nginx/pid/nginx.pid \ | |
| --error-log-path=/var/log/nginx/error.log \ | |
| --http-log-path=/var/log/access.log \ | |
| --with-pcre \ | |
| --with-http_ssl_module | |
| make | |
| sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment