Well there are many ways to install nginx mod pagspeed on your centos server.. but here is the one that works nice.. and it’s easy and fast:
To install the Ulyaoth repository on CentOS please run the following command:
$ yum install https://downloads.ulyaoth.net/rpm/ulyaoth-latest.centos.x86_64.rpm
after you need to install nginx with pagespeed with this command:
yum install ulyaoth-nginx-mainline-pagespeed-selinux.x86_64
and that’s it.. now you can use nginx with pagespeed.. you just need to configure it.