浏览文章
文章信息
Goaccess 官网 | Goaccess安装 | Goaccess编译安装支持https | Goaccess支持SSL | Goaccess支持WSS
11245
官网地址:
https://goaccess.io/download
1、安装
wget https://tar.goaccess.io/goaccess-1.5.1.tar.gz tar -xzvf goaccess-1.5.1.tar.gz cd goaccess-1.5.1/ yum install gettext yum install libmaxminddb ./configure --enable-utf8 --enable-geoip=legacy --with-openssl2、启动脚本
#!/bin/bash # --------【参数区】----------- DOMAIN=www.aiweline.com LOG_PATH=/var/log/nginx/access.log CONF_PATH=/usr/local/etc/goaccess/goaccess.conf SSL_CERT_PATH='/etc/ssl/aiwleine.com.pem' SSL_KEY_PATH='/etc/ssl/aiweline.com.key' # --------【参数区】----------- # --------【脚本区】----------- # 获取脚本所在目录 SOURCE="$0" while [ -h "$SOURCE" ]; do # 软连取源 DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)" SOURCE="$(readlink "$SOURCE")" [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # 软连查找源 done DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)" echo /usr/local/bin/goaccess -a -e -H -M -d -f ${LOG_PATH} -o "${DIR}"/access.html --real-time-html -p ${CONF_PATH} --ssl-cert=${SSL_CERT_PATH} --ssl-key=${SSL_KEY_PATH} --ws-url=wss://${DOMAIN}:7890 --daemonize /usr/local/bin/goaccess -a -e -H -M -d -f ${LOG_PATH} -o "${DIR}"/access.html --real-time-html -p ${CONF_PATH} --ssl-cert=${SSL_CERT_PATH} --ssl-key=${SSL_KEY_PATH} --ws-url=wss://${DOMAIN}:7890 --daemonize# --------【脚本区】-----------