0

Web ベースのシステム構成 webmin を備えた Ubuntu 14.04 サーバーがあります。

したがって、awstat はデフォルトでインストールされます。

プラグイン geoip および GeopIPCity プラグインを手動でインストールしましたが、機能せず、次の警告メッセージが表示さTried to load plugin "geoip" twice. Fix config file.れます。Tried to load plugin "geoip_city_maxmind" twice. Fix config file.

これらの2行があります/etc/awstats/awstats.conf

LoadPlugin="geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat"
LoadPlugin="geoip_city_maxmind GEOIP_STANDARD /usr/share/GeoIP/GeoIPCity.dat"

しかし、仮想ホストの awstat conf ファイルにもあります。

.dat ファイルは適切な場所にあります。

root@Ubuntu-14LTS-NY1:/etc/awstats# ll /usr/share/GeoIP/GeoIP.dat
-rw-r--r-- 1 root root 827301 Apr  7  2014 /usr/share/GeoIP/GeoIP.dat

root@Ubuntu-14LTS-NY1:/etc/awstats# ll /usr/share/GeoIP/GeoIPCity.dat
-rw-r--r-- 1 root root 19756029 Apr 16 04:18 /usr/share/GeoIP/GeoIPCity.dat

私はそれを修正するためにチェックする場所がありません。

ご協力いただきありがとうございます。

4

1 に答える 1

0

二度、なぜ二度!

ということで、設定ファイルを見てみました。また、メイン構成ファイルと仮想ホスト構成ファイルがあります。

    root@Ubuntu-14LTS-NY1:~# ll /etc/awstats/awstats.*
    -rw-r--r-- 1 root root 62092 Apr  1 05:14 /etc/awstats/awstats.mywebsite1.org.conf
    -rw-r--r-- 1 root root 62057 Apr 21 17:59 /etc/awstats/awstats.conf
    -rw-r--r-- 1 root root   240 Nov 16  2013 /etc/awstats/awstats.conf.local
    -rw-r--r-- 1 root root 61915 Apr 21 17:14 /etc/awstats/awstats.mywebsite2.net.conf

したがって/etc/awstats/awstats.conf、行 L を追加するように変更した場合、たとえばoadPlugin="geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat"、それを Web サイトの構成ファイルに追加してはなりません。/etc/awstats/awstats.mywebsite1.org.conf

設定ファイルの反応がおかしいと思いました。2回読み込んでいます!

于 2016-04-22T07:13:50.967 に答える