[Snippet] (Fast) Automatisches Nginx Update

Funktioniert wenn:
Nginx selbst compilt wurde, ohne eigene module im sourcetree
Nginx binary im PATH liegt (“which nginx” also den pfad zurückgibt)

wget http://nginx.org/download/nginx-1.2.7.tar.gz
tar -xvzf nginx-1.2.7.tar.gz
rm nginx-1.2.7.tar.gz
cd nginx-1.2.7/
confi=$(nginx -V 2>&1 | egrep -v '(version:|built by|support)' | sed 's/configure arguments: //')
./configure $confi
make
make install
/etc/init.d/nginx stop
cp /usr/local/nginx/sbin/nginx /usr/sbin
/etc/init.d/nginx stop
cp /usr/local/nginx/sbin/nginx /usr/sbin
nginx -v
/etc/init.d/nginx start
This entry was posted in Uncategorized. Bookmark the permalink.

Comments are closed.