apache ログ解析ツール SWStats6.0入れてみる
かなり古くからあるツールですね。
http://www.bflets.dyndns.org/Tools/AWStats60Docs_JP/awstats_setup_jp.html
を参考に入れてみます。
apt-get install awstats
find / -name 'awstats' /usr/share/doc-base/awstats /usr/share/awstats /usr/share/doc/awstats /etc/awstats /etc/cron.d/awstats /var/lib/awstats
いきなり実行したら、domainを指定してなくて怒られました。
perl awstats.pl -config=awstats.conf -update Error: SiteDomain parameter not defined in your config/domain file. You must edit it for using this version of AWStats. Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be wrong. Check config file, permissions and AWStats documentation (in 'docs' directory).
指定して再び実行すると
Create/Update database for config "/etc/awstats/awstats.conf" by AWStats version 6.9 (build 1.925) From data in log file "/var/log/apache2/access.log"... Phase 1 : First bypass old records, searching new record... Searching new records from beginning of log file... Phase 2 : Now process new records (Flush history on disk after 20000 hosts)... Reverse DNS lookup for ::1 not available without ipv6 plugin enabled. Jumped lines in file: 0 Parsed lines in file: 2504 Found 1 dropped records, Found 0 corrupted records, Found 0 old records, Found 2503 new qualified records.
perl awstats.pl -config=awstats.conf -output -staticlinks > /var/www/hoge/huga/awstats.html
とやるとawstats.htmlというファイルが生成されました。
・Unique visitors
・Number of visits
・Pages Hits
・Bandwidth
の他にも
キーワードやHTTP Status codesなどがわかるので簡易的なシステム監視情報はokな気がします。
ここからマーケティング解析となると厳しそうではありますが。
Download MySQL Workbench
リレーショナルDBのデザインツールとして結構有名だったDBDesinerでも
使うかぁって
http://dbdesigner.iimp.jp/
参考にしてみたら
Download MySQL Workbenchをおすすめしてるようだったので使ってみようかな。
http://dev.mysql.com/downloads/workbench/
http://nippondanji.blogspot.com/2010/01/mysql-workbench-52.html
http://akabeko.sakura.ne.jp/blog/2010/01/mysql-workbench/
Git
$ cd project $ git init $ git add . $ git commit -a
memo
git --help add Add file contents to the index bisect Find by binary search the change that introduced a bug branch List, create, or delete branches checkout Checkout a branch or paths to the working tree clone Clone a repository into a new directory commit Record changes to the repository diff Show changes between commits, commit and working tree, etc fetch Download objects and refs from another repository grep Print lines matching a pattern init Create an empty git repository or reinitialize an existing one log Show commit logs merge Join two or more development histories together mv Move or rename a file, a directory, or a symlink pull Fetch from and merge with another repository or a local branch push Update remote refs along with associated objects rebase Forward-port local commits to the updated upstream head reset Reset current HEAD to the specified state rm Remove files from the working tree and from the index show Show various types of objects status Show the working tree status tag Create, list, delete or verify a tag object signed with GPG
apache ログ解析ソフト AWStats
あとで調べる。
昔、k山さんにあまり使えないって言われたけど。
http://awstats.sourceforge.net/
http://www.starplatinum.jp/awstats/awstats66/
http://www.perfectsky.net/awstats/
Text::XslateでTTライクな構文を描きたかったので.
cpan[1]> install Text::Xslate::Bridge::TT2Like
crontabの設定
cron動かしたいなぁと思ったのでメモ。
/etc/rc.d/init.d/crond status
一番はじめのcrontabの設定メモ
root:~# crontab -e no crontab for root - using an empty one Select an editor. To change later, run 'select-editor'. 1. /bin/ed 2. /bin/nano <---- easiest 3. /usr/bin/vim.basic 4. /usr/bin/vim.tiny
もちろんvimの3。(私は。ですけど。)
で、enter押すとcrontabの設定ファイルを開けます。
・・・・まぁそんだけですけどね。
javascriptでのループ文の話
for (i=0; i<hoge.length; i++) { if (hoge[i] === 'huga') { break; } }
lastとか書いてしまうわ。つい。