Created
May 16, 2011 03:10
-
-
Save huobazi/973861 to your computer and use it in GitHub Desktop.
Install Nginx on Ubuntu
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
# Become root | |
su root | |
# Create source directory | |
mkdir -p /opt/local/src | |
cd /opt/local/src | |
# Install build tools | |
aptitude install build-essential | |
# Install Nginx dependencies | |
aptitude install libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev | |
# Retrieve Nginx source and build it | |
wget -c wget http://nginx.org/download/nginx-0.8.53.tar.gz | |
tar xvf nginx-0.8.53.tar.gz | |
cd nginx-0.8.53 | |
./configure --prefix=/opt/local --with-http_ssl_module --sbin-path=/opt/local/bin | |
make | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment