{"id":188,"date":"2010-03-23T01:09:57","date_gmt":"2010-03-22T16:09:57","guid":{"rendered":"http:\/\/blog.isnext.net\/issy\/?p=188"},"modified":"2010-03-23T01:09:57","modified_gmt":"2010-03-22T16:09:57","slug":"slimstat%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%a8%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/blog.isnext.net\/issy\/archives\/188","title":{"rendered":"slimstat\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a"},"content":{"rendered":"<p><strong>\u25a0\u7c21\u6613\u30a2\u30af\u30bb\u30b9\u89e3\u6790\u30c4\u30fc\u30ebslimstat\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/p>\n<p>slimstat\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<br \/>\n[code]# cd ~\/download<br \/>\n# wget http:\/\/slimstat.net\/file\/slimstat-2.1.zip<br \/>\n# unzip slimstat-2.1.zip[\/code]<\/p>\n<p>\u914d\u7f6e\u306f\u89e3\u6790\u3057\u305f\u3044\u30b5\u30a4\u30c8\u306e\u76f4\u4e0b\u3078<br \/>\n[code]# mv slimstat \/var\/www\/html\/<br \/>\n# cd \/var\/www\/html\/slimstat\/[\/code]<\/p>\n<p>slimstat\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210<br \/>\n[code]# mysql -u root -p<br \/>\nmysql> grant all privileges on slimstat.* to slimstat@localhost identified by &#8216;slimstatpassword&#8217; WITH GRANT OPTION;<br \/>\nmysql> CREATE DATABASE `slimstat` DEFAULT CHARACTER SET utf8mb4 ;<br \/>\nmysql> quit[\/code]<\/p>\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4fee\u6b63<br \/>\n[code]# vi _lib\/config.php<\/p>\n<p>        \/** Database connection *\/\u3000\u2190\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8a2d\u5b9a<br \/>\n        var $db_server = &#8216;localhost&#8217;; \/\/ Leave as localhost unless you know otherwise<br \/>\n        var $db_username = &#8216;slimstat&#8217;; \/\/ The username used to access your database<br \/>\n        var $db_password = &#8216;slimstatpassword&#8217;; \/\/ The password used to access your database<br \/>\n        var $db_database = &#8216;slimstat&#8217;; \/\/ The database containing SlimStat\u2019s tables<\/p>\n<p>        \/** The full name of your site *\/\u3000\u2190\u30b5\u30a4\u30c8\u540d\u8a2d\u5b9a<br \/>\n        var $sitename = &#8216;Sitename&#8217;;<\/p>\n<p>        \/** Username\/password required to login to SlimStat *\/\u3000\u2190\u30a2\u30af\u30bb\u30b9\u5236\u9650<br \/>\n        var $slimstat_use_auth = true;<br \/>\n        var $slimstat_username = &#8216;slimstatadmin&#8217;;<br \/>\n        var $slimstat_password = &#8216;adminpassword&#8217;;<\/p>\n<p>        \/** Timezone *\/\u3000\u2190\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u8a2d\u5b9a<br \/>\n        var $timezone = &#8216;Asia\/Tokyo&#8217;;[\/code]<\/p>\n<p>\u7ba1\u7406\u753b\u9762\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u753b\u9762\u306e\u6307\u793a\u306b\u5f93\u3046<br \/>\nhttp:\/\/hostname\/slimstat\/<\/p>\n<p>\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3057\u3066\u5b8c\u4e86<br \/>\n# rm -f page\/setup.php<\/p>\n<p>\u3042\u3068\u306f\u4ee5\u4e0b\u306e\u3044\u305a\u308c\u304b\u3092\u8a08\u6e2c\u3057\u305f\u3044\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u8cbc\u308b\u3002<br \/>\nJavascript\u7528<br \/>\n[code]<script type=\"text\/javascript\" src=\"\/slimstat\/?js\"><\/script>[\/code]<br \/>\nphp\u7528<br \/>\n[code]<?php\n@include_once( $_SERVER['DOCUMENT_ROOT'].'\/slimstat\/stats_include.php' );\n?>[\/code]<\/p>\n<p>\u540c\u3058\u30da\u30fc\u30b8\u306b\u4e21\u65b9\u8cbc\u3089\u306a\u3044\u3053\u3068\u3002\u30c0\u30d6\u30eb\u30ab\u30a6\u30f3\u30c8\u306b\u306a\u308b\u3002<br \/>\njavascript\u306e\u65b9\u304c\u53d6\u5f97\u3067\u304d\u308b\u9805\u76ee\u306f\u591a\u3044\u3002\u643a\u5e2f\u30b5\u30a4\u30c8\u306a\u3069\u3067\u306fphp\u7528\u306e\u65b9\u304c\u6709\u5229\u304b\u3082\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u25a0\u7c21\u6613\u30a2\u30af\u30bb\u30b9\u89e3\u6790\u30c4\u30fc\u30ebslimstat\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb slimstat\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9 [code]# cd ~\/download # wget http:\/\/slimstat.net\/file\/slimstat-2.1 &hellip; <a href=\"https:\/\/blog.isnext.net\/issy\/archives\/188\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;slimstat\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[20,48],"class_list":["post-188","post","type-post","status-publish","format-standard","hentry","category-linux","tag-centos","tag-slimstat"],"_links":{"self":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/comments?post=188"}],"version-history":[{"count":1,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/188\/revisions"}],"predecessor-version":[{"id":189,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/188\/revisions\/189"}],"wp:attachment":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/media?parent=188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/categories?post=188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/tags?post=188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}