atworkbad.blogg.se

Nginx latest version centos 7
Nginx latest version centos 7







nginx latest version centos 7

sudo mv ngx_pagespeed-master ngx_pagespeed.For convenience rename this directory to just ngx_pagespeed with the command: This will create a new directory called ngx_pagespeed-master inside your ~/custom-nginx/nginx-1.8.0/src/http/modules/ directory. Once the download completes, extract it with the unzip utility like this: In this directory, download the latest ngx_pagespeed source archive from its Github repository with the command: To start adding the ngx_pagespeed module, you first need to go to the modules folder within the extracted folder nginx-1.8.0: Output of ls ~/custom-nginxnginx-1.8.0 nginx-1.8.0.tar.gzĪs you can see, the version of the Nginx source package is 1.8.0 at the time of writing this tutorial. To confirm we are on the same page, list the content of the folder ~/custom-nginx: Currently, the latest version is 1.8.0 and can be downloaded with the command:Īfter that extract the newly downloaded package with the command: Then, download the Nginx source package in this directory from its official site. Next, create a folder in your home directory to download the source package for Nginx: sudo yum install wget curl unzip gcc-c++ pcre-devel zlib-devel.Let’s start with ensuring we have all the necessary software for the compilation and testing of Nginx. Step 1 - Download the Source and Its Dependencies A non-root sudo user (Check out Initial Server Setup with CentOS 7 for details.)Įxcept otherwise noted, all of the commands that require root privileges in this tutorial should be run as a non-root user with sudo privileges.An Ubuntu 14.04 version and a Debian 8 version are available as well.īefore following this tutorial, please make sure you complete the following prerequisites: This guide has been written for CentOS 7. Take this into account when weighing the pros and cons of using ngx_pagespeed. Having your own custom package comes with one disadvantage - you are solely responsible for updating it when there is a new version. Since Nginx doesn’t support this feature, you need to build Nginx from source to add the module. It’s important to know that Nginx does not support Dynamic Loading of Modules available in other web servers such as Apache. This article will guide you through the installation and configuration of the pagespeed module for Nginx.

nginx latest version centos 7

If you are not acquainted with it already, please check its official site. Ngx_pagespeed, or just pagespeed, is an Nginx module designed to optimize your site automatically by reducing the size of its resources and hence the time the clients’ browsers need to load it.









Nginx latest version centos 7