{"id":251,"date":"2007-06-02T00:57:48","date_gmt":"2007-06-01T16:57:48","guid":{"rendered":"http:\/\/blog.smallken.ink\/2007\/06\/02\/251\/"},"modified":"2007-06-02T19:44:06","modified_gmt":"2007-06-02T11:44:06","slug":"centos-5-linux-%e7%b3%bb%e7%b5%b1%e5%ae%89%e8%a3%9d%e6%95%99%e5%ad%b8","status":"publish","type":"post","link":"https:\/\/blog.smallken.site\/?p=251","title":{"rendered":"CentOS 5 Linux \u7cfb\u7d71\u5b89\u88dd\u6559\u5b78"},"content":{"rendered":"<p>CentOS \u5b83\u5927\u90e8\u5206\u7684\u5957\u4ef6\u90fd\u662f\u4f7f\u7528\u00a0Red Hat Linux\u00a0Enterprise \u4f01\u696d\u7248\u7684\u5957\u4ef6\uff0c\u6bd4\u8d77 Fedora \u7cfb\u5217\uff0c\u9019\u500b\u4fd7\u7a31\u767d\u8001\u9f20\u7cfb\u7d71\u9084\u7a69\u5b9a\uff0c\u7576\u7136\u6c92\u6709\u90a3\u9ebc\u8a87\u5f35\u8aaa\u767d\u8001\u9f20\u5c31\u4e0d\u7a69\u5b9a\uff0c\u53ea\u662f Fedora \u5957\u4ef6\u90fd\u6bd4\u8f03\u65b0\uff0c\u591a\u4e86\u4e00\u4e9b&#8221;\u4e0d\u78ba\u5b9a\u6027&#8221;\u800c\u5df2\uff0c\u6211\u7ba1\u7684 Server \u4e5d\u6210\u4e5f\u90fd\u9084\u662fFedora\uff0c\u4e5f\u6c92\u4ec0\u9ebc\u5927\u554f\u984c\uff0c\u53ea\u662f\u5982\u679c\u4ee5\u5f8c\u6709\u65b0\u5efa\u7684\u7cfb\u7d71\u6211\u6703\u60f3\u6539\u7528 CentOS \u8a66\u770b\u770b\u5566<\/p>\n<p>CentOS 5 \u53ef\u4ee5\u5728\u5b98\u65b9\u7db2\u7ad9 <a href=\"http:\/\/www.centos.org\/\">http:\/\/www.centos.org\/<\/a>\u00a0\u4e0b\u8f09 ISO \u6a94\uff0c\u6216\u8005\u5728 \u7fa9\u5b88\u7684\u6a94\u6848\u670d\u52d9 <a href=\"http:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS\/\">http:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS\/<\/a>\u00a0\u4e0b\u8f09<\/p>\n<p>\u6709 DVD \u7684 ISO \u6a94\u7684\u8a71\u76e1\u91cf\u7528 DVD \u7684\u7248\u672c\uff0c\u5b89\u88dd\u904e\u7a0b\u4e2d\u4e0d\u9700\u8981\u518d\u63db\u7247\uff0c\u628a ISO \u6a94\u71d2\u9304\u6210\u5149\u789f\u4e4b\u5f8c\uff0c\u653e\u5165\u5149\u789f\u6a5f\uff0c\u4f7f\u7528\u5149\u789f\u6a5f\u958b\u6a5f<br \/>\n\u770b\u5230\u4ee5\u4e0b\u756b\u9762\uff0c\u76f4\u63a5 Enter<img decoding=\"async\" src=\"http:\/\/aycu04.webshots.com\/image\/17363\/2002452323810802281_rs.jpg\" \/><\/p>\n<p>\u770b\u4f60\u9700\u4e0d\u9700\u8981\u6aa2\u67e5\u5149\u789f?\u4e00\u822c\u4e0d\u7528\uff0cSkip<img decoding=\"async\" src=\"http:\/\/aycu26.webshots.com\/image\/16105\/2002496048999143860_rs.jpg\" \/><br \/>\n<img decoding=\"async\" src=\"http:\/\/aycu01.webshots.com\/image\/18680\/2002430238676961581_rs.jpg\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/aycu07.webshots.com\/image\/18446\/2000938451785113120_rs.jpg\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/aycu16.webshots.com\/image\/16215\/2000907972429520861_rs.jpg\" \/><br \/>\n<!--nextpage--><\/p>\n<p>\u9019\u88e1\u5c31\u8981\u5c0f\u5fc3\u5566\uff0c\u9019\u88e1\u53ef\u80fd\u6703\u6709\u5e7e\u7a2e\u72c0\u6cc1\uff1a<br \/>\n\u7b2c\u4e00\u7a2e\uff0c\u9019\u53f0\u6a5f\u5668\u53ea\u6709 Linux \u7cfb\u7d71\u6c92\u6709\u5176\u4ed6\u7cfb\u7d71\uff0c\u800c\u4e14\u5168\u90e8\u786c\u789f\u4e5f\u90fd\u5206\u914d\u7d66\u4e86\u5b83\uff0c\u9019\u6642\u5019\u9078\u7b2c\u4e00\u500b\uff0c&#8221;\u79fb\u9664\u6240\u9078\u78c1\u789f\u4e0a\u7684\u6240\u6709\u5206\u5272\u5340\uff0c\u4e26\u5efa\u7acb\u9810\u8a2d\u7684\u5206\u5272\u6a21\u5f0f&#8221;<\/p>\n<p>\u7b2c\u4e8c\u7a2e\uff0c\u6703\u9078\u7b2c\u4e8c\u7a2e\u7684\u60c5\u6cc1\u662f\u4e4b\u524d\u5df2\u7d93\u6709\u96d9\u7cfb\u7d71(XP+Linux)\uff0c\u4f60\u53ea\u60f3\u91cd\u704cLinux\u7684\u6642\u5019\uff0c\u8acb\u9078\u64c7\u7b2c\u4e8c\u500b\uff0c&#8221;\u79fb\u9664\u6240\u9078\u78c1\u789f\u4e0a\u7684Linux\u5206\u5272\u5340\uff0c\u4e26\u5efa\u7acb\u9810\u8a2d\u7684\u5206\u5272\u6a21\u5f0f&#8221;\uff0c\u704c\u597d\u4e00\u6a23\u4fdd\u7559\u539f\u5148\u7684\u96d9\u7cfb\u7d71<\/p>\n<p>\u7b2c\u4e09\u7a2e\uff0c\u6703\u9078\u5247\u7b2c\u4e09\u7a2e\u61c9\u8a72\u662f\u5728\u5df2\u7d93\u704c\u597dXP\u7cfb\u7d71\u5f8c\uff0c\u4e26\u4e14\u7559\u6709\u4e00\u4e9b\u7a7a\u9593\u6c92\u6709\u5168\u90e8\u5206\u914d\u7d66XP\u7cfb\u7d71\uff0c\u5269\u4e0b\u9019\u4e9b\u7a7a\u9593\u62ff\u4f86\u7d66Linux\u7cfb\u7d71\u4f7f\u7528\uff0c\u9078\u7528&#8221;\u4f7f\u7528\u6240\u9078\u53d6\u78c1\u789f\u4e0a\u7684\u672a\u4f7f\u7528\u7a7a\u9593\uff0c\u5efa\u7acb\u9810\u8a2d\u7684\u5206\u5272\u6a21\u5f0f&#8221;\uff0c\u704c\u597d\u4e5f\u8b8a\u6210\u4e86\u96d9\u7cfb\u7d71(XP+Linux)<br \/>\n<img decoding=\"async\" src=\"http:\/\/aycu13.webshots.com\/image\/17052\/2005671822130612369_rs.jpg\" \/><\/p>\n<p>\u63a5\u4e0b\u4f86\u8981\u8a2d\u5b9a\u7db2\u8def\u74b0\u5883\uff0c\u5982\u679c\u4f60\u7684\u7db2\u8def\u662f\u900f\u904eDHCP\u81ea\u52d5\u6293\u53d6IP\u7684(IP\u5206\u4eab\u5668)\uff0c\u90a3\u5c31\u76f4\u63a5\u4e0b\u4e00\u6b65\uff0c\u82e5\u662fADSL\u64a5\u63a5\u7684\u7528\u6236\u4e5f\u662f\u76f4\u63a5\u4e0b\u4e00\u6b65\uff0c\u7b49\u5230\u7cfb\u7d71\u704c\u597d\u5f8c\u518d\u53bb\u64a5\u63a5\u7684\u8a2d\u5b9a\u5e33\u865f\/\u5bc6\u78bc<br \/>\n<img loading=\"lazy\" decoding=\"async\" width=\"500\" src=\"http:\/\/aycu09.webshots.com\/image\/18768\/2000613783024643288_rs.jpg\" height=\"375\" style=\"width: 500px; height: 375px\" \/><\/p>\n<p>\u5982\u679c\u4f60\u662f\u5728\u5b78\u6821\u6216\u5728\u516c\u53f8\u7db2\u8def\u6709\u56fa\u5b9a\u7684IP\u7684\u8a71\uff0c\u6309\u4e00\u4e0b&#8221;\u7de8\u8f2f&#8221;\uff0c\u53bb\u8a2d\u5b9aIP\u8cc7\u6599<br \/>\n<img decoding=\"async\" src=\"http:\/\/aycu11.webshots.com\/image\/18450\/2002120169192479796_rs.jpg\" \/><\/p>\n<p>\u586b\u5165\u56fa\u5b9aIP\uff0c\u4f9d\u7167\u672c\u8eab\u81ea\u5df1\u7684\u72c0\u6cc1\u8a2d\u5b9a\uff0c\u5982\u679c\u662fClass C\u7684\u7db2\u8def\u7db2\u8def\u906e\u7f69\u5c31\u586b 24\uff0c\u61c9\u8a72\u5927\u90e8\u5206\u90fd\u662f Class C<br \/>\n<img decoding=\"async\" src=\"http:\/\/aycu19.webshots.com\/image\/16818\/2004971894372649049_rs.jpg\" \/><\/p>\n<p>\u9598\u9053\u5668(Gateway):\u4f9d\u81ea\u5df1\u74b0\u5883\u8a2d\u5b9a<br \/>\nDNS:\u4f9d\u81ea\u5df1\u74b0\u5883\u8a2d\u5b9a\uff0c\u82e5\u627e\u4e0d\u5230DNS\u53ef\u7528\uff0c\u586b\u4e2d\u83ef\u96fb\u4fe1\u7684 168.95.1.1\u4e5f\u53ef\u4ee5<br \/>\n<img decoding=\"async\" src=\"http:\/\/aycu16.webshots.com\/image\/16015\/2004895191918093562_rs.jpg\" \/><br \/>\n<!--nextpage--><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/aycu23.webshots.com\/image\/18862\/2006387680309194244_rs.jpg\" \/><\/p>\n<p>\u8a2d\u5b9a root \u7684\u767b\u5165\u5bc6\u78bc\uff0c\u8f38\u5165\u5169\u6b21<br \/>\n<img decoding=\"async\" src=\"http:\/\/aycu24.webshots.com\/image\/16143\/2006380467394473748_rs.jpg\" \/><\/p>\n<p>\u5982\u679c\u60f3\u4f7f\u7528\u5716\u5f62\u754c\u9762\uff0c\u9078\u64c7\u524d\u9762\u5169\u7a2e\uff1aDesktop-Gnome\u3001Desktop-KDE<br \/>\n\u5982\u679c\u53ea\u60f3\u8981\u67b6Server\u6c92\u6709\u5716\u5f62\u4ecb\u9762: Server<br \/>\n\u5982\u679c\u60f3\u8981\u67b6Server\uff0c\u518d\u52a0\u4e0a\u7c21\u55ae\u7684\u5716\u5f62\u4ecb\u9762: Server-GUI<br \/>\n\u4ee5\u4e0b\u6211\u793a\u7bc4\u7684\u662f\u81ea\u8a02<br \/>\n<img decoding=\"async\" src=\"http:\/\/aycu04.webshots.com\/image\/16883\/2004961254226136178_rs.jpg\" \/><\/p>\n<p>\u8981\u9078\u4ec0\u9ebc\u5957\u4ef6\u770b\u500b\u4eba\uff0c\u5982\u679c\u662f\u6211\u7684\u8a71\u6211\u6703\u9078\u64c7: \u7a0b\u5f0f\u958b\u767c\u2192\u958b\u767c\u5de5\u5177<br \/>\n<img decoding=\"async\" src=\"http:\/\/aycu37.webshots.com\/image\/19076\/2002385808496292427_rs.jpg\" \/><\/p>\n<p>\u6211\u60f3\u76f4\u63a5\u628a php+mysql \u67b6\u8d77\u4f86\uff0c\u6240\u4ee5\u6211\u6703\u9078\u64c7<br \/>\n\u4f3a\u670d\u5668\u2192MySQL \u8cc7\u6599\u5eab\uff0c\u8a73\u7d30\u5957\u4ef6\u52a0\u9078 php-mysql<br \/>\n\u4f3a\u670d\u5668\u2192\u7db2\u9801\u4f3a\u670d\u5668<br \/>\nOK \u4e4b\u5f8c\u5c31\u4e0b\u4e00\u6b65<br \/>\n<img decoding=\"async\" src=\"http:\/\/aycu06.webshots.com\/image\/15045\/2005419798429101646_rs.jpg\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/aycu06.webshots.com\/image\/15605\/2000140756620590723_rs.jpg\" \/><br \/>\n<!--nextpage--><\/p>\n<p>\u4e0b\u4e00\u6b65\u4e4b\u5f8c\u5c31\u958b\u59cb\u4e0d\u77ed\u4e5f\u4e0d\u9577\u7684\u5b89\u88dd\uff0c\u81f3\u5c11\u6bd4XP\u5feb\u591a\u4e86 =.=<br \/>\n<img decoding=\"async\" src=\"http:\/\/aycu02.webshots.com\/image\/16361\/2000064745737792714_rs.jpg\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/aycu29.webshots.com\/image\/16748\/2002983496544250158_rs.jpg\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/aycu23.webshots.com\/image\/15502\/2002933600386284299_rs.jpg\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/aycu03.webshots.com\/image\/15162\/2002980227696902189_rs.jpg\" \/><\/p>\n<p>\u91cd\u958b\u6a5f\u4e4b\u5f8c\u5927\u81f4\u4e0a\u5c31OK\u4e86<\/p>\n<p>\u88dc\u5145\u4e00\u4e0b\u704c\u597d\u7cfb\u7d71\u4e4b\u5f8c\u5927\u81f4\u4e0a\u6703\u6709\u4e00\u4e9b\u9700\u8981\u8abf\u6821?<\/p>\n<p>1.\u95dc\u6389 SELINUX<\/p>\n<blockquote><p># vi \/etc\/sysconfig\/selinux<br \/>\n<font color=\"#0000ff\">SELINUX=disabled<\/font><\/p><\/blockquote>\n<p>2.\u95dc\u6389\u4e0d\u5fc5\u8981\u7684\u670d\u52d9\uff0c\u53ea\u4fdd\u7559\u4ee5\u4e0b\u9019\u4e9b<\/p>\n<blockquote><p># ntsysv<br \/>\n<font color=\"#0000ff\">anacron<br \/>\natd<br \/>\ncpuspeed<br \/>\ncrond<br \/>\niptables<br \/>\nnetwork<br \/>\nsendmail<br \/>\nsshd<br \/>\nsyslog <\/font><\/p><\/blockquote>\n<p>3.\u958b\u555f\u9632\u706b\u7246\uff0c\u628a\u60f3\u8981\u958b\u555f\u7684Port\u52a0\u5165\u4e00\u884c\uff0c21\u70baftp\uff0c22\u70bassh\uff0c80\u70bahttp<\/p>\n<blockquote><p># vi \/etc\/sysconfig\/iptables<br \/>\n-A RH-Firewall-1-INPUT -m state &#8211;state NEW -m tcp -p tcp &#8211;dport <font color=\"#0000ff\">21<\/font> -j ACCEPT<br \/>\n-A RH-Firewall-1-INPUT -m state &#8211;state NEW -m tcp -p tcp &#8211;dport <font color=\"#0000ff\">22<\/font> -j ACCEPT<br \/>\n-A RH-Firewall-1-INPUT -m state &#8211;state NEW -m tcp -p tcp &#8211;dport <font color=\"#0000ff\">80<\/font> -j ACCEPT<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>CentOS \u5b83\u5927\u90e8\u5206\u7684\u5957\u4ef6\u90fd\u662f\u4f7f\u7528\u00a0Red Hat Linux\u00a0Enterprise \u4f01\u696d\u7248\u7684\u5957\u4ef6\uff0c\u6bd4\u8d77 F&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-251","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/posts\/251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=251"}],"version-history":[{"count":0,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/posts\/251\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.smallken.site\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}