Skip to content

Instantly share code, notes, and snippets.

View MZorzy's full-sized avatar
👾
all good :)

MZorzy MZorzy

👾
all good :)
View GitHub Profile
@MZorzy
MZorzy / build_nginx.sh
Created November 30, 2015 12:51 — forked from MattWilcox/build_nginx.sh
Fetch, build, and install the latest nginx with the latest OpenSSL for RaspberryPi
#!/usr/bin/env bash
# names of latest versions of each package
export VERSION_PCRE=pcre-8.38
export VERSION_OPENSSL=openssl-1.0.2d
export VERSION_NGINX=nginx-1.9.7
# URLs to the source directories
export SOURCE_OPENSSL=https://www.openssl.org/source/
export SOURCE_PCRE=ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
@MZorzy
MZorzy / nginx_install
Created November 30, 2015 12:51 — forked from tienrocker/nginx_install
Ubuntu nginx install
#Remove previous
/usr/sbin/update-rc.d -f nginx remove
service nginx stop && rm -f -R /usr/local/nginx && rm -f /usr/local/sbin/nginx && apt-get remove nginx && rm -Rf /etc/init/nginx
#Create downloads store folder
apt-get update
apt-get upgrade
cd ~ && mkdir -p downloads && mkdir -p /var/www/html && cd ~/downloads
#Replace by the latest version number found on http://nginx.org/