一.下載
下載位址:http://goaccess.io/
一.下載下載位址:http://goaccess.io/二.安裝<code>yum <span>-y</span> install glib2 glib2<span>-devel</span> ncurses ncurses<span>-devel</span> GeoIP<span>*</span></code>
<code><span>.</span>/configure –enable<span>-geoip</span> –enable<span>-utf8</span>make <span>&&</span> make install </code>
<code>goaccess <span>-f</span> access<span>.</span><span>log</span><span>-c</span><span>-a</span></code>
<code>color_scheme <span>0</span> date_format <span>%d</span>/<span>%b</span>/<span>%Y</span> log_format <span>%h</span><span>%^</span>[<span>%d</span>:<span>%^</span>] “<span>%r</span>” <span>%s</span><span>%b</span> “<span>%R</span>” “<span>%u</span>” <span>%T</span></code>
<code>goaccess <span>-f</span> /web/nginx/logs/access<span>.</span><span>log</span><span>-a</span><span>></span> report<span>.</span>html</code>
rrreee
參考:http://my.oschina.net/mrco/blog/181737
🎜 🎜 以上就介紹了Nginx系列(十六)nginx日誌分析goaccess,包括了方面的內容,希望對PHP教程有興趣的朋友有所幫助。 🎜 🎜 🎜