â CentOS/ScientificLinux6ã§MyNETSãåãã
ã¨ãããã¨ã§ã試è¡é¯èª¤ãã¦ãªãã¨ãåãããã®ã§ã¡ã¢ã£ã¦ããã¾ãã
使ã£ãã®ã¯ScientificLinux6.7ã§ãã
æ¨æºã§ã¯php5.3.3ãmysql5.1.6ã§ãããä¸å
·åã®åé¡ã§ä»¥ä¸ã®å¯¾å¿ããã¾ããã
ã»å
¨ææ¤ç´¢ç¨ã«mroongaã使ãé½åã§oracleçmysql5.6å°å
¥
ã»MyNETSã§æ¥è¨æ稿æã¨ã©ã¼ã®ããphpãiusç5.3.29å°å
¥
â mroongaï¼oracleçmysqlã¤ã³ã¹ãã¼ã«
$ yum install -y http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm
$vi /etc/yum/yum.repos.d/groonga.repo
以ä¸ä¿®æ£
/centos/$releasever/ãâã/centos/6/
$ yum install -y http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
$ yum makecache
$ yum install -y mysql-community-server
$ /sbin/service mysqld start
$ yum install -y mysql-community-mroonga
$ yum install -y groonga-tokenizer-mecab
$mysql -uroot
mysql> show engines;
mroongaã確èª
# vi /etc/my.cnf
äºææ§ã®ãã以ä¸ã追è¨
character-set-server = utf8
skip-host-cache
skip-name-resolve
sql_mode=”
old_passwords=0
以ä¸ã®è¨å®ã¯ã¨ã©ã¼ã«ãªãã®ã§å»æ¢
default-character-set=
table_cache=
log-slow-querie=
log=
â iusçphpå°å ¥
# vi /etc/yum.repos.d/ius.repo
以ä¸ã®å
容ã§ä½æ
[ius]
name=IUS Community Packages for Enterprise Linux 6 – $basearch
baseurl=http://dl.iuscommunity.org/pub/ius/archive/CentOS/6/$basearch
#mirrorlist=http://dmirr.iuscommunity.org/mirrorlist?repo=ius-el6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY
# cd /etc/pki/rpm-gpg/
# wget http://dl.iuscommunity.org/pub/ius/IUS-COMMUNITY-GPG-KEY
# yum update
# yum install yum-plugin-replace
# yum replace php –replace-with php53u
# vi /etc/php.ini
error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED
â å
¨ææ¤ç´¢ç¨ãã¼ã¿ä¿®æ£
mysqlã®ãã³ããã¼ã¿ã以ä¸ã®ããã«æ¸ãæã
ãFULLTEXT KEY `fullindex` (`body`) /*!50100 WITH PARSER `mecab` */
) ENGINE=MyISAM AUTO_INCREMENT=100 DEFAULT CHARSET=utf8;
ãâ
ãFULLTEXT INDEX (`body`)
) ENGINE=mroonga AUTO_INCREMENT=100 DEFAULT CHARSET=utf8;
ãã¶ããããã§OK
no comment untill now