centos7 源码安装goaccess
生活随笔
收集整理的這篇文章主要介紹了
centos7 源码安装goaccess
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
1. 使用yum安裝在不同服務(wù)器上可能失敗, 推薦使用源碼安裝goaccess
# 安裝依賴 yum install -y ncurses-devel GeoIP-devel.x86_64 tokyocabinet-devel openssl-devel# 下載源碼包并安裝 cd /usr/local/software wget http://tar.goaccess.io/goaccess-1.3.tar.gz tar -xvf goaccess-1.3.tar.gz -C /usr/local/ cd /usr/local/ ./configure --enable-utf8 --enable-geoip=legacy make & make install# 將goaccess 執(zhí)行程序關(guān)聯(lián)到系統(tǒng) find / -name 'goaccess' ln -s /usr/local/goaccess-1.3/goaccess /usr/bin# 使用goaccess監(jiān)控
goaccess /var/log/nginx/access.log -o /usr/local/nginx/html/report.html --real-time-html --time-format='%H:%M:%S' --date-format='%d-%b-Y' --log-format=COMBINED
?
2. 配置nginx.conf, 使用瀏覽器訪問
# goaccess 日志分析server {listen 83;server_name 196.128.1.1;location / {root html;index report.html;}}?
3. 瀏覽器訪問
?
參考:
https://my.oschina.net/mrco/blog/181737
https://yq.aliyun.com/articles/695263
?
轉(zhuǎn)載于:https://www.cnblogs.com/hcl1991/p/10634711.html
總結(jié)
以上是生活随笔為你收集整理的centos7 源码安装goaccess的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: DEV C++如何不需要通过建项目可以调
- 下一篇: 软考程序员备考经验