-
-
Save hellysmile/4479154 to your computer and use it in GitHub Desktop.
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
yum install rubygems ruby-devel | |
yum groupinstall 'Development Tools' | |
gem install fpm | |
wget http://nginx.org/download/nginx-1.2.6.tar.gz | |
tar xvf nginx-1.2.6.tar.gz | |
cd nginx-1.2.6 | |
./configure \ | |
--user=nginx \ | |
--group=nginx \ | |
--prefix=/usr/share/nginx \ | |
--sbin-path=/usr/sbin/nginx \ | |
--conf-path=/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 \ | |
--http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi \ | |
--http-scgi-temp-path=/var/lib/nginx/tmp/scgi \ | |
--pid-path=/var/run/nginx.pid \ | |
--without-http_rewrite_module \ | |
--without-http_gzip_module | |
make | |
make install DESTDIR=/tmp/installdir | |
ls /tmp/installdir/ | |
->etc usr var | |
fpm -s dir -t rpm -n nginx -v 1.2.6 -C /tmp/installdir . | |
yum install ./nginx-1.2.6-1.x86_64.rpm | |
rpm -ql nginx | |
->/etc/nginx/fastcgi.conf | |
/etc/nginx/fastcgi.conf.default | |
/etc/nginx/fastcgi_params | |
/etc/nginx/fastcgi_params.default | |
/etc/nginx/koi-utf | |
/etc/nginx/koi-win | |
/etc/nginx/mime.types | |
/etc/nginx/mime.types.default | |
/etc/nginx/nginx.conf | |
/etc/nginx/nginx.conf.default | |
/etc/nginx/scgi_params | |
/etc/nginx/scgi_params.default | |
/etc/nginx/uwsgi_params | |
/etc/nginx/uwsgi_params.default | |
/etc/nginx/win-utf | |
/usr/sbin/nginx | |
/usr/share/nginx/html/50x.html | |
/usr/share/nginx/html/index.html | |
/var/log/nginx | |
/var/run | |
yum remove nginx | |
ls /etc/nginx/ (exist and empty) | |
ls /usr/share/nginx/ | |
->html | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment