Skip to content

varghesepm/rpmBuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

RPM package builder

To build a RPM package manually

Dependencies

OS: CentOS Linux 7+, Fedora, Rhel7, Amzn Linux

Steps

  1. Copy nginx-module-vts.spec,init.sh file into /root/
  2. Run
    cd /root/
    chmod +x init.sh
    ./init.sh

How to Test

  1. Add following entry into /etc/nginx/nginx.conf
#load modules
load_module modules/ngx_http_vhost_traffic_status_module.so;
http {
    vhost_traffic_status_zone;
}
  1. Add following entry into /etc/nginx/conf.d/default.conf
server {
    location /status {
             vhost_traffic_status_display;
             vhost_traffic_status_display_format prometheus;
    }
}
  1. Restart Nginx
nginx -t
systemctl restart nginx
  1. Test using curl
curl http://localhost/status

About

rpm package builder script

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages