Yum Install Ncurses-devel
Installing ncurses Dependencies
Press Y to confirm
wget http://tar.goaccess.io/goaccess-1.2.tar.gz
Download the installation package
TAR-XZVF goaccess-1.2.tar.gz
Extract
CD goaccess-1.2
Enter the goaccess-1.2 directory
./configure--enable-utf8--enable-geoip--legacy
Configuration options
Make
Compile
Make install
Installation
Goaccess-v
View version
Goaccess/var/log/nginx/access.log
Execute in any directory
Please note that
This interface is selected by the space bar,
Then press the ENTER key to confirm!
This interface is selected by pressing the TAB key,
Press Q to exit!
Vim/usr/local/etc/goaccess.conf
Editing a configuration file
Line 13th, minus # #
Time-format%h:%m:%s
Line 36th, minus # #
Date-format%d/%b/%y
Line 64th, minus # #
Log-format%h%^[%d:%t%^] "%r"%s%b "%r" "%u"
Line No. 269, minus # #
Port 7890
Line No. 273, minus # #
real-time-html true
Line No. 381, minus # #
Revision changed to
Output-format/var/www/html/nginxlog/index.html
Mkdir/var/www/html/nginxlog
Create nginxlog directory in Apache HTML directory
Firewall-cmd--zone=public--permanent--add-port=7890/tcp
Firewall-cmd--reload
Open firewall 7890 Port
Goaccess/var/log/nginx/access.log
Open goaccess
Visit http://192.168.1.13:8989/nginxlog/
CentOS Installation Goaccess