安装命令
yum install ncurses-devel geoip-devel libmaxminddb-devel tokyocabinet-devel openssl-devel
# wget https://tar.goaccess.io/goaccess-1.3.tar.gz
# tar -xzvf goaccess-1.3.tar.gz
# cd goaccess-1.3/
# ./configure --enable-utf8 --enable-geoip=legacy
# make
# make install
如果出现 Error: Failed to download metadata for repo ‘appstream’: Cannot prepare internal mirrorlist: No URLs
解决方法:
cat /etc/redhat-release
CentOS Linux release 8.1.1911 (Core) // 服务器是 CentOS
sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sudo sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*