{"id":1289,"date":"2011-08-09T06:03:00","date_gmt":"2011-08-08T21:03:00","guid":{"rendered":"http:\/\/blog.isnext.net\/issy\/?p=1289"},"modified":"2011-08-20T02:53:29","modified_gmt":"2011-08-19T17:53:29","slug":"scientific-linux-5-6%e3%81%a7sns%e3%82%b5%e3%83%bc%e3%83%90%e3%82%92%e6%a7%8b%e7%af%89%e3%81%99%e3%82%8b%e3%83%a1%e3%83%a2","status":"publish","type":"post","link":"https:\/\/blog.isnext.net\/issy\/archives\/1289","title":{"rendered":"Scientific Linux 5.6\u3067SNS\u30b5\u30fc\u30d0\u3092\u69cb\u7bc9\u3059\u308b\u30e1\u30e2"},"content":{"rendered":"<p><strong>\u25a0Scientific Linux 5.6\u3067SNS\u30b5\u30fc\u30d0\u3092\u69cb\u7bc9\u3059\u308b\u30e1\u30e2<\/strong><br \/>\n\u3000CentOS5\u7cfb\u3067\u904b\u7528\u4e2d\u306eSNS\u30b5\u30fc\u30d0\u3092Scientific Linux5\u7cfb\u306b\u79fb\u884c\u3059\u308b\u305f\u3081\u3001\u8a66\u9a13\u74b0\u5883\u3068\u3057\u3066Dell D520\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3063\u305f\u6642\u306e\u30e1\u30e2\u3002\u3053\u3053\u304b\u3089\u306fSNS\u7b49\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5c0e\u5165\u524d\u307e\u3067\u306e\u69cb\u7bc9\u30e1\u30e2\u3002OS\u81ea\u4f53\u306f\u524d\u8a18\u4e8b\u3092\u53c2\u7167\u3002<\/p>\n<blockquote><p>\u3000D520\u306bScientific Linux 5.6\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30e1\u30e2<br \/>\n\u3000<a href=\"https:\/\/blog.isnext.net\/issy\/archives\/1281\">https:\/\/blog.isnext.net\/issy\/archives\/1281<\/a><\/p><\/blockquote>\n<p><strong>\u25a0\u9ad8\u6a5f\u80fd\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0CommuniGate Pro\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><br \/>\n\u3000php\u30a2\u30d7\u30ea\u3067\u5fc5\u8981\u306a\u30b1\u30fc\u30b9\u304c\u591a\u3044\u306e\u3067postfix\u3092\u6d3b\u304b\u3057\u305f\u307e\u307eCGP\u3092\u6709\u52b9\u306b\u3059\u308b<br \/>\n\u30fbpostfix\u5074\u306e\u8a2d\u5b9a\u5909\u66f4<br \/>\n\u3000# vi \/etc\/postfix\/master.cf<br \/>\n\u3000\u3000smtp inet n &#8211; n &#8211; &#8211; smtpd<br \/>\n\u3000\u3000\u3000\u2193<br \/>\n\u3000\u3000#smtp inet n &#8211; n &#8211; &#8211; smtpd<br \/>\n\u3000# vi \/etc\/postfix\/main.cf<br \/>\n\u3000\u3000mydestination = $myhostname, localhost.$mydomain, localhost<br \/>\n\u3000\u3000\u3000\u2193<br \/>\n\u3000\u3000mydestination = localhost<br \/>\n\u3000\u3000\u8ffd\u8a18<br \/>\n\u3000\u3000relayhost = \u81eaIP\u30a2\u30c9\u30ec\u30b9<br \/>\n\u3000\u3000myhostname = po.\u30db\u30b9\u30c8\u30cd\u30fc\u30e0\u3000\u30bb\u30eb\u30d5\u30eb\u30fc\u30d7\u56de\u907f\u546a\u6587<br \/>\n\u30fbpostfix\u3092\u518d\u8d77\u52d5<br \/>\n\u3000# service postfix restart<br \/>\n\u30fbpostfix\u304csmtp\u3092LISTEN\u3057\u3066\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d<br \/>\n\u3000# lsof -i<\/p>\n<p>\u30fbCommuniGate Pro\u306e\u6700\u65b0\u7248\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n\u3000\uff08\u5546\u7528\u3060\u304cCommunity\u30e9\u30a4\u30bb\u30f3\u30b9\u4e0b\u3067\uff15\u30e6\u30fc\u30b6\u307e\u3067\u7121\u6599\u3067\u5229\u7528\u53ef\u80fd\uff09<br \/>\n\u3000# wget http:\/\/www.communigate.com\/pub\/CommuniGatePro\/CGatePro-Linux.x86_64.rpm<br \/>\n\u3000# rpm -ivh CGatePro-Linux.x86_64.rpm<br \/>\n\u3000# service CommuniGate start<br \/>\n\u30fbCGP\u306e\u7ba1\u7406\u753b\u9762\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306biptable\u3067\u30dd\u30fc\u30c8\u8ffd\u52a0<br \/>\n\u3000# vi \/etc\/sysconfig\/iptables<br \/>\n\u3000\u3000-A RH-Firewall-1-INPUT -m state &#8211;state NEW -m tcp -p tcp &#8211;dport 8010 -j ACCEPT\u3000\u8ffd\u8a18<br \/>\n\u3000# service iptables restart<br \/>\n\u30fb\u30d6\u30e9\u30a6\u30b6\u3067http:\/\/\u30b5\u30fc\u30d0IP\u30a2\u30c9\u30ec\u30b9:8010\/\u3078\u30a2\u30af\u30bb\u30b9\u3057\u3066\u8a2d\u5b9a<br \/>\n\u3000postmaster\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a<br \/>\n\u3000Basic\u8a8d\u8a3c\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067ID:postmaster\u3068\u8a2d\u5b9a\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u30ed\u30b0\u30a4\u30f3<br \/>\n\u3000\u3000japanese\u3000japanese(ISO)\u3000(+0900)japan\/Korea\u3000expert\u3000\u3067\u8a2d\u5b9a<\/p>\n<p><strong>\u25a0\u65e5\u672c\u8a9e\u5168\u6587\u691c\u7d22\u5bfe\u5fdcmysql\/Tritonn\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><br \/>\n\u30fb\u6a19\u6e96\u5c0e\u5165\u306eMySQL\u3092\u524a\u9664\u3059\u308b<br \/>\n\u3000# yum remove mysql<br \/>\n\u30fbperl-DBI\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u78ba\u8a8d\uff08\u3042\u308c\u3070OK\uff09<br \/>\n\u3000# rpm -qa | grep -i perl-DBI<br \/>\n\u30fb\u6700\u65b0\u306etritonn\u30d1\u30c3\u30b1\u30fc\u30b8\u7fa4\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<br \/>\n\u3000# wget http:\/\/iij.dl.sourceforge.jp\/tritonn\/44614\/MySQL-client-5.0.87-tritonn.1.0.12a.x86_64.rpm<br \/>\n\u3000# wget http:\/\/iij.dl.sourceforge.jp\/tritonn\/44614\/MySQL-devel-5.0.87-tritonn.1.0.12a.x86_64.rpm<br \/>\n\u3000# wget http:\/\/iij.dl.sourceforge.jp\/tritonn\/44614\/MySQL-server-5.0.87-tritonn.1.0.12a.x86_64.rpm<br \/>\n\u3000# wget http:\/\/iij.dl.sourceforge.jp\/tritonn\/44614\/MySQL-shared-5.0.87-tritonn.1.0.12a.x86_64.rpm<br \/>\n\u3000# wget http:\/\/iij.dl.sourceforge.jp\/tritonn\/44614\/mecab-0.98-tritonn.1.0.12a.x86_64.rpm<br \/>\n\u3000# wget http:\/\/iij.dl.sourceforge.jp\/tritonn\/44614\/mecab-ipadic-2.7.0.20070801-tritonn.1.0.12a.x86_64.rpm<br \/>\n\u3000# wget http:\/\/iij.dl.sourceforge.jp\/tritonn\/44614\/senna-1.1.4-tritonn.1.0.12a.x86_64.rpm<br \/>\n\u30fb\u4ee5\u4e0b\u306e\u9806\u756a\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n\u3000# rpm -ivh mecab-0.98-tritonn.1.0.12a.x86_64.rpm<br \/>\n\u3000# rpm -ivh mecab-ipadic-2.7.0.20070801-tritonn.1.0.12a.x86_64.rpm<br \/>\n\u3000# rpm -ivh senna-1.1.4-tritonn.1.0.12a.x86_64.rpm<br \/>\n\u3000# rpm -ivh MySQL-shared-5.0.87-tritonn.1.0.12a.x86_64.rpm<br \/>\n\u3000# rpm -ivh MySQL-client-5.0.87-tritonn.1.0.12a.x86_64.rpm<br \/>\n\u3000# rpm -ivh MySQL-server-5.0.87-tritonn.1.0.12a.x86_64.rpm<br \/>\n\u3000# rpm -ivh MySQL-devel-5.0.87-tritonn.1.0.12a.x86_64.rpm<br \/>\n\u30fbMySQL\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a\u3092\u884c\u3046<br \/>\n\u3000# \/usr\/bin\/mysqladmin -u root password &#8216;rootpassword&#8217;<br \/>\n\u30fb\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u52d5\u4f5c\u78ba\u8a8d<br \/>\n\u3000# mysql -u root -p<br \/>\n\u30fb\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u9069\u5f53\u306b\u9078\u3093\u3067\u914d\u7f6e\u3059\u308b<br \/>\n\u3000# cp \/usr\/share\/mysql\/my-large.cnf \/etc\/my.cnf<br \/>\n\u30fbutf8\u3067\u4f7f\u3044\u305f\u3044\u5834\u5408\u306b\u306f\u4ee5\u4e0b\u306e\u884c\u3092\u5404\u9805\u76ee\u3067\u8ffd\u8a18<br \/>\n\u3000# vi \/etc\/my.cnf<br \/>\n\u3000\u3000[mysqld]<br \/>\n\u3000\u3000default-character-set = utf8<br \/>\n\u3000\u3000[mysqldump]<br \/>\n\u3000\u3000default-character-set = utf8<br \/>\n\u3000\u3000[mysql]<br \/>\n\u3000\u3000default-character-set = utf8<br \/>\n\u30fb\u8a2d\u5b9a\u3092\u53cd\u6620\u3055\u305b\u308b\uff08mysqld\u3067\u306a\u3044\u3053\u3068\u306b\u6ce8\u610f\uff09<br \/>\n\u3000# service mysql restart<br \/>\n\u30fb\u8a2d\u5b9a\u5909\u66f4\u3092\u78ba\u8a8d<br \/>\n\u3000# mysql -u root -p<br \/>\n\u3000\u3000mysql> status<br \/>\n\u3000\u3000&#8230;<br \/>\n\u3000\u3000Server characterset: utf8<br \/>\n\u3000\u3000Db characterset: utf8<br \/>\n\u3000\u3000Client characterset: utf8<br \/>\n\u3000\u3000Conn. characterset: utf8<br \/>\n\u3000\u3000&#8230;<\/p>\n<p><strong>\u25a0MyNETS\uff08SNS\u30b5\u30fc\u30d0\u30a2\u30d7\u30ea\uff09\u306e\u5c0e\u5165\u6e96\u5099\u3092\u3059\u308b<\/strong><br \/>\n\u30fbMyNETS\u306b\u5fc5\u8981\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n\u3000# yum install php-mcrypt php-mbstring php-gd php-mysql php-xmlrpc php-xml php-eaccelerator ImageMagick<br \/>\n\u30fbImageMagick\u306e\u5f37\u5236\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u3059\u308b<br \/>\n\u3000SL5.6\u306eImageMagick\u306b\u3082CentOS\u3068\u540c\u3058\u554f\u984c\u304c\u3042\u308b\u306e\u3067\u6700\u65b0\u7248\u3067\u5165\u66ff\u3048\u3059\u308b<br \/>\n\u3000# wget http:\/\/www.imagemagick.org\/download\/linux\/CentOS\/x86_64\/ImageMagick-6.7.1-3.x86_64.rpm<br \/>\n\u3000# rpm -Uvh &#8211;force ImageMagick-6.7.1-3.x86_64.rpm<\/p>\n<p><strong>\u25a0\u76e3\u8996\u7cfb\u306b\u5fc5\u8981\u306a\u30a2\u30d7\u30ea\u3092\u5c0e\u5165\u3059\u308b<\/strong><br \/>\n\u30fbsysstat\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n\u3000# yum install sysstat<br \/>\n\u30fblm_sensors\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n\u3000# yum install lm_sensors<br \/>\n\u3000# sensors-detect\u3000\u3067\u8a2d\u5b9a<br \/>\n\u3000# sensors\u3000\u3067\u52d5\u4f5c\u78ba\u8a8d<br \/>\n\u30fbmunin\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n\u3000# yum install munin munin-node<br \/>\n\u3000# munin-node-configure\u3000\u3067\u8a2d\u5b9a\u78ba\u8a8d<br \/>\n\u30fbapache\u306e\u76e3\u8996\u3092\u6709\u52b9\u306b\u3059\u308b<br \/>\n\u3000# vi \/etc\/httpd\/conf\/httpd.conf<br \/>\n\u3000\u3000#ExtendedStatus On<br \/>\n\u3000\u3000\u3000\u2193<br \/>\n\u3000\u3000ExtendedStatus On<\/p>\n<p>\u3000\u3000#\uff1cLocation \/server-status\uff1e<br \/>\n\u3000\u3000# SetHandler server-status<br \/>\n\u3000\u3000# Order deny,allow<br \/>\n\u3000\u3000# Deny from all<br \/>\n\u3000\u3000# Allow from .example.com<br \/>\n\u3000\u3000#\uff1c\/Location\uff1e<br \/>\n\u3000\u3000\u3000\u2193<br \/>\n\u3000\u3000\uff1cLocation \/server-status\uff1e<br \/>\n\u3000\u3000 SetHandler server-status<br \/>\n\u3000\u3000 Order deny,allow<br \/>\n\u3000\u3000 Deny from all<br \/>\n\u3000\u3000 Allow from 127.0.0.1<br \/>\n\u3000\u3000\uff1c\/Location\uff1e<br \/>\n\u30fbmunin\u3092\u518d\u8a2d\u5b9a\u3059\u308b<br \/>\n\u3000# munin-node-configure -suggest\u3000\u3067\u8a2d\u5b9a\u53ef\u80fd\u306a\u5185\u5bb9\u3092\u78ba\u8a8d<br \/>\n\u3000# munin-node-configure -shell | sh\u3000\u3067\u8a2d\u5b9a<br \/>\n\u3000# munin-node-configure\u3000\u8a2d\u5b9a\u3092\u78ba\u8a8d<br \/>\n\u3000# service munin-node start\u3000\u76e3\u8996\u3092\u958b\u59cb<\/p>\n<p>\u203bMySQL\u306b\u95a2\u3059\u308bmunin\u76e3\u8996\u8a2d\u5b9a\u306f\u4ee5\u4e0b\u3092\u53c2\u7167<\/p>\n<blockquote><p>\u3000munin\u3067\u8907\u6570mysqld\u3092\u76e3\u8996\u3059\u308b\u8a2d\u5b9a\u30e1\u30e2<br \/>\n\u3000<a href=\"https:\/\/blog.isnext.net\/issy\/archives\/957\">https:\/\/blog.isnext.net\/issy\/archives\/957<\/a><\/p><\/blockquote>\n<p><strong>\u25a0SNS\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5c0e\u5165<\/strong><br \/>\n\u3000\u4ee5\u4e0b\u306eURL\u306e\u300c\uff18\uff09SNS\u30b5\u30fc\u30d0\u3068\u3057\u3066\u306e\u8a2d\u5b9a\u300d\u3092\u53c2\u7167<\/p>\n<blockquote><p>\u3000\u30ab\u30b9\u30bf\u30e0\u7248MyNETS\u3068CentOS5\u3067\uff11\u4e07\u4eba\u898f\u6a21\u306eSNS\u3092\u69cb\u7bc9\u3059\u308b<br \/>\n\u3000<a href=\"https:\/\/blog.isnext.net\/issy\/archives\/384\">https:\/\/blog.isnext.net\/issy\/archives\/384<\/a><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u25a0Scientific Linux 5.6\u3067SNS\u30b5\u30fc\u30d0\u3092\u69cb\u7bc9\u3059\u308b\u30e1\u30e2 \u3000CentOS5\u7cfb\u3067\u904b\u7528\u4e2d\u306eSNS\u30b5\u30fc\u30d0\u3092Scientific Linux5\u7cfb\u306b\u79fb\u884c\u3059\u308b\u305f\u3081\u3001\u8a66\u9a13\u74b0\u5883\u3068\u3057\u3066Dell D520\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3063\u305f &hellip; <a href=\"https:\/\/blog.isnext.net\/issy\/archives\/1289\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Scientific Linux 5.6\u3067SNS\u30b5\u30fc\u30d0\u3092\u69cb\u7bc9\u3059\u308b\u30e1\u30e2&#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,21,28,22,24,123,77],"class_list":["post-1289","post","type-post","status-publish","format-standard","hentry","category-linux","tag-centos","tag-communigate","tag-munin","tag-mynets","tag-mysql","tag-scientific","tag-sns"],"_links":{"self":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/1289","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=1289"}],"version-history":[{"count":8,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/1289\/revisions"}],"predecessor-version":[{"id":1322,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/1289\/revisions\/1322"}],"wp:attachment":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/media?parent=1289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/categories?post=1289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/tags?post=1289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}