Skip to content

Instantly share code, notes, and snippets.

@nijitaro
Created September 2, 2010 07:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nijitaro/561982 to your computer and use it in GitHub Desktop.
Save nijitaro/561982 to your computer and use it in GitHub Desktop.
install nginx to CensOS
// 1. nginx required pcre and pcre-devel package.
// 2. download source http://nginx.org/en/download.html
// ex) wget http://nginx.org/download/nginx-0.8.49.tar.gz
$ su -
# yum install pcre pcre-devel
# cd /path/to/download/
# tar -zxvf nginx-x.x.x.tar.gz
# mv nginx-x.x.x/ mv nginx-0.7.64 /usr/local/src/nginx/x.x.x
# cd /usr/local/src/nginx/x.x.x
# ./configure
# make
# make install
# ln -s /usr/local/nginx/sbin/nginx /usr/sbin/nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment