{"id":69,"date":"2010-03-01T23:00:52","date_gmt":"2010-03-01T14:00:52","guid":{"rendered":"http:\/\/blog.isnext.net\/issy\/?p=69"},"modified":"2010-03-01T23:00:52","modified_gmt":"2010-03-01T14:00:52","slug":"centos5%e3%82%b5%e3%83%bc%e3%83%90%e8%a8%ad%e5%ae%9a%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e6%89%8b%e9%a0%86","status":"publish","type":"post","link":"https:\/\/blog.isnext.net\/issy\/archives\/69","title":{"rendered":"CentOS5\u30b5\u30fc\u30d0\u8a2d\u5b9a\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806"},"content":{"rendered":"<p><strong>\u8a66\u9a13\u74b0\u5883\u7528\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806<\/strong><\/p>\n<p><strong>\uff11\uff09CentOS5\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/p>\n<p>CentOS5.2install CD\u3067\u8d77\u52d5<\/p>\n<p>\u30b5\u30fc\u30d0\u8a2d\u5b9a\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\nweb\u30b5\u30fc\u30d0\u3068mail\u30b5\u30fc\u30d0\u306e\u307f\u9078\u629e<br \/>\nphp\u95a2\u9023\u3092\u9078\u629e<br \/>\nsendmail\u306e\u4ee3\u308f\u308a\u306bpostfix\u9078\u629e<\/p>\n<p><strong>\uff12\uff09\u8d77\u52d5\u5f8c\u3001\u4e0d\u8981\u306a\u30b5\u30fc\u30d3\u30b9\u3092\u505c\u6b62<\/strong><\/p>\n<p>ipv6\u95a2\u9023\u4e0d\u8981<br \/>\nselinux\u306fdisable<br \/>\nhttp\/https\/smtp\u306e\u307fFW\u30aa\u30fc\u30d7\u30f3<\/p>\n<p>\u8d77\u52d5\u30b5\u30fc\u30d3\u30b9\u306f\u4ee5\u4e0b\u306b\u8a2d\u5b9a<br \/>\n\u3000cpuspeed<br \/>\n\u3000crond<br \/>\n\u3000httpd<br \/>\n\u3000iptables<br \/>\n\u3000irqbalance<br \/>\n\u3000network<br \/>\n\u3000sendmail\uff08\u6700\u521d\u306fpostfix\u30ea\u30b9\u30c8\u3055\u308c\u306a\u3044\uff09<br \/>\n\u3000readahead_early<br \/>\n\u3000sshd<br \/>\n\u3000syslog<\/p>\n<p><strong>\uff13\uff09\u8d77\u52d5\u5f8c\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u7d4c\u8def\u8a2d\u5b9a<\/strong><br \/>\nroot\u3067login<br \/>\nsshd\u8a2d\u5b9a\u5909\u66f4<\/p>\n<p>[code]# vi \/etc\/ssh\/sshd_config[\/code]<\/p>\n<p>#PermitRootLogin yes \u3092\u3000PermitRootLogin yes\u3000\u306b\u5909\u66f4\uff08\u30ed\u30fc\u30ab\u30eb\u9bd6\uff09<br \/>\n#Port 22\u3000\u3092\u3000Port 10022 \u306b\u5909\u66f4<\/p>\n<p>iptables\u306e\u4fee\u6b63<\/p>\n<p>[code]# vi \/etc\/sysconfig\/iptables[\/code]<\/p>\n<p>-A RH-Firewall-1-INPUT -m state &#8211;state NEW -m tcp -p tcp &#8211;dport 10022 -j ACCEPT\u3000\u884c\u8ffd\u52a0<\/p>\n<p>\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5<br \/>\n[code]# service sshd restart<br \/>\n# service iptables restart[\/code]<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30e1\u30f3\u30c6\u30de\u30b7\u30f3\u304b\u3089\u30a2\u30af\u30bb\u30b9<br \/>\nssh -p 10022 root@\u30b5\u30fc\u30d0\u30a2\u30c9\u30ec\u30b9<\/p>\n<p><strong>\uff14\uff09\u30b5\u30fc\u30d0\u8a2d\u5b9a\u3092\u884c\u3046<\/strong><\/p>\n<p>sendmail\u3092remove<br \/>\n[code]# yum remove sendmail[\/code]<\/p>\n<p>postfix\u3092\u8d77\u52d5\u30b5\u30fc\u30d3\u30b9\u3067\u8ffd\u52a0<br \/>\n[code]#ntsysv[\/code]<\/p>\n<p>\u5fc5\u8981\u306a\u3089proxy\u8a2d\u5b9a\u3092\u8ffd\u52a0<br \/>\n[code]# vi \/etc\/profile.d\/proxy.csh<\/p>\n<p>setenv http_proxy http:\/\/\u30d7\u30ed\u30ad\u30b7URL:\u30dd\u30fc\u30c8\/<br \/>\nsetenv HTTP_PROXY http:\/\/\u30d7\u30ed\u30ad\u30b7URL:\u30dd\u30fc\u30c8\/<\/p>\n<p># vi \/etc\/profile.d\/proxy.sh<\/p>\n<p>export http_proxy=http:\/\/\u30d7\u30ed\u30ad\u30b7URL:\u30dd\u30fc\u30c8\/<br \/>\nexport HTTP_PROXY=http:\/\/\u30d7\u30ed\u30ad\u30b7URL:\u30dd\u30fc\u30c8\/[\/code]<\/p>\n<p>yum\u306b\u3088\u308b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u6e96\u5099<\/p>\n<p>EPEL\u30ea\u30dd\u30b8\u30c8\u30ea\u8ffd\u52a0<br \/>\n[code]# wget http:\/\/download.fedora.redhat.com\/pub\/epel\/5\/i386\/epel-release-5-3.noarch.rpm<br \/>\n# rpm -ihv epel-release-5-3.noarch.rpm<\/p>\n<p># yum update[\/code]<\/p>\n<p>\u30ea\u30b9\u30c8\u3055\u308c\u305f\u3082\u306e\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u5ff5\u306e\u305f\u3081\u518d\u8d77\u52d5<\/p>\n<p><strong>\uff15\uff09\u9ad8\u6a5f\u80fd\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0CommunigatePro\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/p>\n<p>php\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 \/>\npostfix\u5074\u306e\u8a2d\u5b9a\u5909\u66f4<br \/>\n[code]# vi \/etc\/postfix\/master.cf[\/code]<\/p>\n<p>smtp inet n &#8211; n &#8211; &#8211; smtpd<br \/>\n\u2193<br \/>\n#smtp inet n &#8211; n &#8211; &#8211; smtpd<\/p>\n<p>[code]# vi \/etc\/postfix\/main.cf[\/code]<\/p>\n<p>mydestination = $myhostname, localhost.$mydomain, localhost<br \/>\n\u2193<br \/>\nmydestination = localhost<\/p>\n<p>\u8ffd\u8a18<br \/>\nrelayhost = \u81eaIP\u30a2\u30c9\u30ec\u30b9<\/p>\n<p>[code]# service postfix start[\/code]<\/p>\n<p>postfix\u304csmtp\u3092LISTEN\u3057\u3066\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d<br \/>\n[code]# lsof -i[\/code]<\/p>\n<p>\u6700\u65b0\u7248\u306eCGP\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n[code]# wget http:\/\/www.communigate.com\/pub\/CommuniGatePro\/CGatePro-Li&#8230;<br \/>\n# rpm -ivh CGatePro-Linux.i386.rpm<br \/>\n# service CommuniGate start[\/code]<\/p>\n<p>CGP\u306e\u7ba1\u7406\u753b\u9762\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306biptable\u3067\u30dd\u30fc\u30c8\u8ffd\u52a0<br \/>\n[code]# vi \/etc\/sysconfig\/iptables[\/code]<\/p>\n<p>-A RH-Firewall-1-INPUT -m state &#8211;state NEW -m tcp -p tcp &#8211;dport 8010 -j ACCEPT\u3000\u884c\u8ffd\u52a0<\/p>\n<p>[code]# service iptables restart[\/code]<\/p>\n<p>\u30d6\u30e9\u30a6\u30b6\u3067http:\/\/\u30b5\u30fc\u30d0IP\u30a2\u30c9\u30ec\u30b9:8010\/\u3078\u30a2\u30af\u30bb\u30b9\u3057\u3066\u8a2d\u5b9a<br \/>\nCoomunity\u30e9\u30a4\u30bb\u30f3\u30b9\u4e0b\u3067\uff15\u30e6\u30fc\u30b6\u307e\u3067\u7121\u6599\u3067\u5229\u7528\u3067\u304d\u308b<\/p>\n<p><strong>\uff16\uff09\u65e5\u672c\u8a9e\u5168\u6587\u691c\u7d22\u5bfe\u5fdcmysql\/Tritonn\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/p>\n<p>mysql\u3092\u7f6e\u304d\u63db\u3048\u308b\u305f\u3081mysql\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d<\/p>\n<p>[code]# rpm -qa | grep -i mysql<br \/>\nmysql-5.0.45-7.el5[\/code]<\/p>\n<p>mysql\u3092remove<br \/>\n[code]# yum remove mysql[\/code]<\/p>\n<p>perl-DBI\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u78ba\u8a8d<\/p>\n<p>[code]# rpm -qa | grep -i perl-DBI<br \/>\nperl-DBI-1.52-1.fc6[\/code]<\/p>\n<p>\u6700\u65b0\u306etritonn-1.0.12-mysql-5.0.67\u30d1\u30c3\u30b1\u30fc\u30b8\u7fa4\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/p>\n<p>[code]# mkdir download<br \/>\n# cd download\/<br \/>\n# wget http:\/\/iij.dl.sourceforge.jp\/tritonn\/36448\/MySQL-client-5.0.67-tritonn.1.0.12.i386.rpm<br \/>\n# wget http:\/\/iij.dl.sourceforge.jp\/tritonn\/36448\/MySQL-devel-5.0.67-tritonn.1.0.12.i386.rpm<br \/>\n# wget http:\/\/iij.dl.sourceforge.jp\/tritonn\/36448\/MySQL-server-5.0.67-tritonn.1.0.12.i386.rpm<br \/>\n# wget http:\/\/iij.dl.sourceforge.jp\/tritonn\/36448\/MySQL-shared-5.0.67-tritonn.1.0.12.i386.rpm<br \/>\n# wget http:\/\/iij.dl.sourceforge.jp\/tritonn\/36448\/mecab-0.97-tritonn.1.0.12.i386.rpm<br \/>\n# wget http:\/\/iij.dl.sourceforge.jp\/tritonn\/36448\/mecab-ipadic-2.7.0.20070801-tritonn.1.0.12.i386.rpm<br \/>\n# wget http:\/\/iij.dl.sourceforge.jp\/tritonn\/36448\/senna-1.1.4-tritonn.1.0.12.i386.rpm [\/code]<\/p>\n<p>\u4ee5\u4e0b\u306e\u9806\u756a\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p>[code]# rpm -ivh mecab-0.97-tritonn.1.0.12.i386.rpm<br \/>\n# rpm -ivh mecab-ipadic-2.7.0.20070801-tritonn.1.0.12.i386.rpm<br \/>\n# rpm -ivh senna-1.1.4-tritonn.1.0.12.i386.rpm<br \/>\n# rpm -ivh MySQL-shared-5.0.67-tritonn.1.0.12.i386.rpm<br \/>\n# rpm -ivh MySQL-client-5.0.67-tritonn.1.0.12.i386.rpm<br \/>\n# rpm -ivh MySQL-server-5.0.67-tritonn.1.0.12.i386.rpm<br \/>\n# rpm -ivh MySQL-devel-5.0.67-tritonn.1.0.12.i386.rpm[\/code]<\/p>\n<p>MySQL\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u3059\u3050\u306b\u8d77\u52d5\u3059\u308b\u306e\u3067root\u306e\u30d1\u30b9\u3092\u8a2d\u5b9a<\/p>\n<p>[code]# \/usr\/bin\/mysqladmin -u root password &#8216;rootpassword'[\/code]<\/p>\n<p>MySQL\u3078\u306e\u30ed\u30b0\u30a4\u30f3\u78ba\u8a8d<\/p>\n<p>[code]# mysql -u root -p<br \/>\nEnter password:<\/p>\n<p>Welcome to the MySQL monitor. Commands end with ; or \u00a5g.<br \/>\nYour MySQL connection id is 7<br \/>\nServer version: 5.0.67-modified MySQL Community Server (GPL) (portions (c) Tritonn Project)<\/p>\n<p>Type &#8216;help;&#8217; or &#8216;\u00a5h&#8217; for help. Type &#8216;\u00a5c&#8217; to clear the buffer.<\/p>\n<p>mysql>[\/code]<\/p>\n<p>\u3053\u308c\u3067Tritonn\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b8c\u4e86<\/p>\n<p>mysql\u306e\u30b5\u30fc\u30d0\u8a2d\u5b9a\u3092\u3059\u308b\u3000\u74b0\u5883\u306b\u5408\u308f\u305b\u3066cnf\u3092\u9078\u629e<br \/>\n[code]# cp \/usr\/share\/mysql\/my-large.cnf \/etc\/my.cnf[\/code]<\/p>\n<p>utf8\u3067\u4f7f\u3044\u305f\u3044\u5834\u5408\u306b\u306f\u4ee5\u4e0b\u306e\u884c\u3092\u5404\u9805\u76ee\u3067\u8ffd\u8a18<br \/>\n[mysqld]<br \/>\ndefault-character-set = utf8<br \/>\n[mysqldump]<br \/>\ndefault-character-set = utf8<br \/>\n[mysql]<br \/>\ndefault-character-set = utf8<\/p>\n<p>\u30b5\u30fc\u30d3\u30b9\u518d\u8d77\u52d5\u3067\u8a2d\u5b9a\u53cd\u6620\uff08mysqld\u3067\u306a\u3044\u3053\u3068\u306b\u6ce8\u610f\uff09<br \/>\n[code]# service mysql restart[\/code]<\/p>\n<p>\u8a2d\u5b9a\u5909\u66f4\u3092\u78ba\u8a8d<br \/>\n[code]# mysql -u root -p<br \/>\nmysql> status<br \/>\n&#8230;<br \/>\nServer characterset: utf8<br \/>\nDb characterset: utf8<br \/>\nClient characterset: utf8<br \/>\nConn. characterset: utf8<br \/>\n&#8230;[\/code]<br \/>\n\u3068\u306a\u3063\u3066\u3044\u308c\u3070OK<\/p>\n<p><strong>\uff17\uff09SNS\u30b5\u30fc\u30d0\uff08MyNETS\uff09\u3068\u3057\u3066\u306e\u8a2d\u5b9a<\/strong><\/p>\n<p>MyNETS\u306b\u5fc5\u8981\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p>[code]# yum install php-mcrypt php-mbstring php-gd php-mysql php-xmlrpc php-xml php-eaccelerator ImageMagick[\/code]<\/p>\n<p>httpd.conf\u7de8\u96c6<\/p>\n<p>[code]# vi \/etc\/httpd\/conf\/httpd.conf[\/code]<\/p>\n<p>\u4e0d\u8981\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u7121\u52b9\u5316<br \/>\nmunin\u7528\u306b\u30b9\u30c6\u30fc\u30bf\u30b9\u53d6\u5f97<br \/>\n\u4ed6\u9069\u5b9c\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3002<\/p>\n<p>\u8a66\u9a13\u30b5\u30fc\u30d0\u7528\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210<\/p>\n<p>[code]# vi \/etc\/httpd\/conf.d\/virtual.conf[\/code]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8a66\u9a13\u74b0\u5883\u7528\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806 \uff11\uff09CentOS5\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb CentOS5.2install CD\u3067\u8d77\u52d5 \u30b5\u30fc\u30d0\u8a2d\u5b9a\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb web\u30b5\u30fc\u30d0\u3068mail\u30b5\u30fc\u30d0\u306e\u307f\u9078\u629e php\u95a2\u9023\u3092\u9078\u629e sendmail\u306e\u4ee3\u308f\u308a\u306bp &hellip; <a href=\"https:\/\/blog.isnext.net\/issy\/archives\/69\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;CentOS5\u30b5\u30fc\u30d0\u8a2d\u5b9a\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[20,21,22,24,23],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-linux","tag-centos","tag-communigate","tag-mynets","tag-mysql","tag-tritonn"],"_links":{"self":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/69","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=69"}],"version-history":[{"count":1,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"predecessor-version":[{"id":70,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/69\/revisions\/70"}],"wp:attachment":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}