{"id":847,"date":"2013-09-17T14:45:32","date_gmt":"2013-09-17T05:45:32","guid":{"rendered":"http:\/\/boomboom-mix.net\/modules\/xpress\/?p=847"},"modified":"2021-04-09T12:12:37","modified_gmt":"2021-04-09T03:12:37","slug":"cent-os5-9","status":"publish","type":"post","link":"http:\/\/boomboom-mix.net\/?p=847","title":{"rendered":"Cent OS 5.9"},"content":{"rendered":"<p>\u3044\u308d\u3044\u308d\u3042\u3063\u3066ubuntu server\u3067\u306f\u30c0\u30e1\u306a\u4e8b\u304c\u51fa\u3066\u304d\u305f\u306e\u3067OS\u3092Cent\u3078\u5909\u66f4\u3002<br \/>\n\u305d\u306e\u305f\u3081\u306e\u5099\u5fd8\u9332\u7684\u306a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30e1\u30e2\u3002<\/p>\n<p><strong>1.\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30aa\u30d7\u30b7\u30e7\u30f3<\/strong><\/p>\n<p>\u2606\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3<br \/>\n\u3061\u3083\u3093\u3068\u81ea\u5206\u3067\u5165\u308c\u305f\u65b9\u304c\u3044\u3044\u306e\u3067\u5168\u3066\u306e\u30c1\u30a7\u30c3\u30af\u3092\u5916\u3059<\/p>\n<p>\u2606\u30af\u30e9\u30b9\u30bf\u30ea\u30f3\u30b0<br \/>\n\u5168\u3066\u306e\u30c1\u30a7\u30c3\u30af\u3092\u5916\u3059<\/p>\n<p>\u2606\u30af\u30e9\u30b9\u30bf\u30b9\u30c8\u30ec\u30fc\u30b8<br \/>\n\u5168\u3066\u306e\u30c1\u30a7\u30c3\u30af\u3092\u5916\u3059<\/p>\n<p>\u2606\u30b5\u30fc\u30d0\u30fc<br \/>\n\u81ea\u5206\u3067\u5165\u308c\u305f\u65b9\u304c\u3044\u3044\u306e\u3067\u5168\u3066\u30c1\u30a7\u30c3\u30af\u3092\u5916\u3059<\/p>\n<p>\u2606\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u74b0\u5883<br \/>\n\u30b5\u30fc\u30d0\u30fc\u904b\u7528\u306a\u306e\u3067\u3059\u3079\u3066\u30c1\u30a7\u30c3\u30af\u3092\u5916\u3059<\/p>\n<p>\u2606\u30d9\u30fc\u30b9\u30b7\u30b9\u30c6\u30e0<br \/>\n\u30d9\u30fc\u30b9\u4ee5\u5916\u5168\u3066\u30c1\u30a7\u30c3\u30af\u3092\u5916\u3057\u3001\u30d9\u30fc\u30b9\u3092\u9078\u629e\u3057\u305f\u72b6\u614b\u3067\u30aa\u30d7\u30b7\u30e7\u30f3\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u62bc\u3059<br \/>\n<span style=\"color: #ff0000;\"><strong>firstboot-tui<\/strong><\/span> \u306e\u30c1\u30a7\u30c3\u30af\u3092\u5916\u3057\u3066\u9589\u3058\u308b<\/p>\n<p>\u2606\u4eee\u60f3\u5316<br \/>\n\u5168\u3066\u306e\u30c1\u30a7\u30c3\u30af\u3092\u5916\u3059<\/p>\n<p>\u2606\u8a00\u8a9e<br \/>\n<strong><span style=\"color: #ff0000;\">\u65e5\u672c\u8a9e\u30b5\u30dd\u30fc\u30c8<\/span><\/strong> \u306e\u307f\u30c1\u30a7\u30c3\u30af\u3092\u6b8b\u3057\u3066\u5168\u3066\u5916\u3059<\/p>\n<p>\u2606\u958b\u767a<br \/>\n<span style=\"color: #ff0000;\"><strong>\u958b\u767a\u30c4\u30fc\u30eb<\/strong><\/span> \u306e\u307f\u6b8b\u3057\u3066\u5168\u3066\u30c1\u30a7\u30c3\u30af\u3092\u5916\u3059<\/p>\n<p>&#8212;-\u4ee5\u4e0b\u306e\u64cd\u4f5c\u306fWinSCP\u3067\u3084\u3063\u3066\u307e\u3059&#8212;<\/p>\n<p><strong>2.\u30d5\u30a1\u30a4\u30a2\u30fc\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u3092\u5909\u66f4<br \/>\n<\/strong><span style=\"color: #ff0000;\"><strong>\/etc\/rc.d\/init.d\/iptables stop<br \/>\n<\/strong><\/span>\u3067\u30d5\u30a1\u30a4\u30a2\u30fc\u30a6\u30a9\u30fc\u30eb\u3092\u3044\u3063\u305f\u3093\u6b62\u3081\u308b<br \/>\n<strong><span style=\"color: #993300;\">\/etc\/sysconfig\/iptables<\/span><\/strong> \u3092\u7de8\u96c6\u3067\u4ee5\u4e0b\u306b\u5909\u66f4\u307e\u305f\u306f\u8ffd\u8a18\u3059\u308b<br \/>\n<strong><span style=\"color: #0000ff;\">:INPUT DROP [0:0]<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">:FORWARD DROP [0:0]<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">:OUTPUT ACCEPT [0:0]<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">:RH-Firewall-1-INPUT &#8211; [0:0]<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">-A RH-Firewall-1-INPUT -m state &#8211;state ESTABLISHED,RELATED -j ACCEPT<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">-A RH-Firewall-1-INPUT -p icmp &#8211;icmp-type any -j ACCEPT<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">-A INPUT -i lo -j ACCEPT-A RH-Firewall-1-INPUT -i lo -j ACCEPT<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">-A RH-Firewall-1-INPUT -m state &#8211;state NEW -m tcp -p tcp &#8211;dport \u4f7f\u7528\u3059\u308b\u30dd\u30fc\u30c8\u756a\u53f7 -j ACCEPT<\/span><\/strong><br \/>\n\u30d5\u30a1\u30a4\u30a2\u30fc\u30a6\u30a9\u30fc\u30eb\u3092\u8d77\u52d5<strong><br \/>\n<span style=\"color: #ff0000;\">\/etc\/rc.d\/init.d\/iptables start<\/span><\/strong><\/p>\n<p><strong>3.SSH\u306e\u4f7f\u7528\u30dd\u30fc\u30c8\u5909\u66f4<\/strong><br \/>\n<strong><span style=\"color: #000080;\">\/etc\/ssh\/sshd_config<\/span><\/strong><br \/>\n\u3092\u7de8\u96c6\u3067\u958b\u3044\u306622\u756a\u304b\u3089\u5909\u66f4\u3059\u308b<br \/>\nSSH\u3092\u518d\u8d77\u52d5\u3059\u308b<br \/>\n<strong><span style=\"color: #ff0000;\">\/etc\/rc.d\/init.d\/sshd restart<\/span><span style=\"color: #ff0000;\"><br \/>\n<\/span><\/strong>\u6307\u5b9a\u3057\u305f\u30dd\u30fc\u30c8\u3067WinSCP\u3067\u7e4b\u304e\u306a\u304a\u3059<\/p>\n<p><strong>4.yum\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u3044\u3063\u305f\u3093\u6b62\u3081\u308b<\/strong><br \/>\n<strong><span style=\"color: #ff0000;\">\/etc\/rc.d\/init.d\/yum-updatesd stop<\/span><\/strong><br \/>\n<strong> <span style=\"color: #ff0000;\">yum -y remove yum-updatesd<\/span><\/strong><br \/>\n<strong> <span style=\"color: #ff0000;\">yum -y install yum-fastestmirror<\/span><\/strong><br \/>\n<strong> <span style=\"color: #ff0000;\">yum -y update<\/span><\/strong><br \/>\n<strong> <span style=\"color: #ff0000;\">yum -y install yum-cron<\/span><\/strong><br \/>\n<strong> <span style=\"color: #ff0000;\">\/etc\/rc.d\/init.d\/yum-cron start<\/span><\/strong><br \/>\n<strong> <span style=\"color: #ff0000;\">chkconfig yum-cron on<\/span><\/strong><\/p>\n<p><strong>5.SELinux\u306e\u7121\u52b9\u5316<\/strong><br \/>\n<strong><span style=\"color: #ff0000;\">getenforce<\/span><\/strong> \u3067Enforcing\u3068\u51fa\u308b\u5834\u5408\u306f\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b<br \/>\n<strong><span style=\"color: #ff0000;\">setenforce 0<\/span><\/strong><span style=\"color: #00ff00;\"><br \/>\n<\/span><strong><span style=\"color: #ff0000;\">getenforce<\/span><\/strong> \u3067 Permissive \u3068\u51fa\u308c\u3070\u7121\u52b9\u5316\u6210\u529f<br \/>\n<strong><span style=\"color: #993300;\">etc\/sysconfig\/selinux<\/span><\/strong> \u3092\u7de8\u96c6\u3067<br \/>\n<strong><span style=\"color: #0000ff;\">SELINUX=enforcing<\/span><\/strong> \u3092<br \/>\n<strong><span style=\"color: #0000ff;\">SELINUX=disabled<\/span><\/strong> \u3068\u5909\u66f4<\/p>\n<p><strong>6.\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0<\/strong><br \/>\n\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u95a2\u3057\u3066\u306fURL\u306e\u5909\u66f4\u7b49\u3082\u3042\u308a\u3048\u308b\u306e\u3067\u5272\u611b<\/p>\n<p><strong>7.Lamp\u74b0\u5883\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><br \/>\n\u666e\u901a\u306b base \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3068\u3063\u3066\u3082\u53e4\u3044Ver\u306b\u306a\u308b\u306e\u3067 remi,epel,rpmforge \u3067\u5165\u308c\u308b<\/p>\n<pre>yum --enablerepo=remi,epel,rpmforge install mysql-server\nyum --enablerepo=remi,epel,rpmforge install httpd-devel php php-devel php-pear php-gd php-imap php-xmlrpc php-curl php-mbstring\nyum --enablerepo=remi,epel,rpmforge install php-mysql php-cgi php-auth php-ming php-xsl<\/pre>\n<p>\u4e00\u5fdc\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u30c1\u30a7\u30c3\u30af<\/p>\n<pre>yum \u2013\u2212enablerepo=remi,epel,rpmforge check-update httpd-devel php php-devel php-pear mysql-server<\/pre>\n<p><strong>8.\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a<\/strong><br \/>\n<strong><span style=\"color: #ff0000;\">chkconfig httpd on<\/span><\/strong><br \/>\n<strong><span style=\"color: #ff0000;\">chkconfig mysqld on<\/span><\/strong><\/p>\n<p>9.webmin\u3084phpmyadmin\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3044\u308d\u3044\u308d\u3042\u3063\u3066ubuntu server\u3067\u306f\u30c0\u30e1\u306a\u4e8b\u304c\u51fa\u3066\u304d\u305f\u306e\u3067OS\u3092Cent\u3078\u5909\u66f4\u3002 \u305d\u306e\u305f\u3081\u306e\u5099\u5fd8\u9332\u7684\u306a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30e1\u30e2\u3002 1.\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30aa\u30d7\u30b7\u30e7\u30f3 \u2606\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u3061\u3083\u3093\u3068\u81ea\u5206\u3067\u5165\u308c\u305f\u65b9\u304c\u3044\u3044\u306e\u3067\u5168\u3066\u306e\u30c1\u30a7 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-847","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=\/wp\/v2\/posts\/847","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=847"}],"version-history":[{"count":1,"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=\/wp\/v2\/posts\/847\/revisions"}],"predecessor-version":[{"id":1460,"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=\/wp\/v2\/posts\/847\/revisions\/1460"}],"wp:attachment":[{"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=847"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}