Skip to Content
Skip Breadcrumb

You will find here some all day work tips for nginx.

Install nginx

export codename=$( lsb_release -c|awk '{print $2}' )
export distri=$( lsb_release -i|awk '{print tolower($3)}' )
echo "deb http://nginx.org/packages/mainline/${distri}/ ${codename} nginx" > /etc/apt/sources.list.d/nginx.list
echo "deb-src http://nginx.org/packages/mainline/${distri}/ ${codename} nginx" >> /etc/apt/sources.list.d/nginx.list
curl -sS http://nginx.org/keys/nginx_signing.key|apt-key add
apt update
apt install nginx

You can contact me for any further questions and orders