Skip to content

Instantly share code, notes, and snippets.

@huobazi
Created May 16, 2011 03:10
Show Gist options
  • Save huobazi/973861 to your computer and use it in GitHub Desktop.
Save huobazi/973861 to your computer and use it in GitHub Desktop.
Install Nginx on Ubuntu
# 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