Created
January 10, 2011 03:42
-
-
Save ruyrocha/772318 to your computer and use it in GitHub Desktop.
install nginx on centos using passenger
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
First, create nginx user account: | |
useradd -c 'Nginx user' -d /var/lib/nginx -s /bin/false nginx | |
Then download nginx and nginx-upstream-fair* module sources: | |
cd /usr/src | |
wget http://sysoev.ru/nginx/nginx-0.8.53.tar.gz | |
wget --no-check-certificate http://github.com/gnosek/nginx-upstream-fair/tarball/master | |
Extract those files and you'll got two directories: | |
/usr/src/nginx-0.8.53 | |
/usr/src/gnosek-nginx-upstream-fair-2131c73 | |
Now run passenger-install-nginx-module... | |
Enter your choice (1 or 2) or press Ctrl-C to abort: 2 | |
... | |
Please specify the directory: /usr/src/nginx-0.8.53 | |
... | |
Please specify a prefix directory [/opt/nginx]: /usr/share/nginx | |
... | |
Extra arguments to pass to configure script: --user=nginx --group=nginx --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_perl_module --with-mail --with-mail_ssl_module '--with-cc-opt=-O2 -g -m64 -mtune=generic ' --add-module=/usr/src/gnosek-nginx-upstream-fair-2131c73 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment