{"id":59553,"date":"2026-01-14T00:33:24","date_gmt":"2026-01-13T16:33:24","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/59553.html"},"modified":"2026-01-14T00:33:24","modified_gmt":"2026-01-13T16:33:24","slug":"01-%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e5%b0%9a%e7%a1%85%e8%b0%b7%e6%95%b0%e4%bb%93%e6%90%ad%e5%bb%ba-%e5%9f%ba%e7%a1%80linux%e7%8e%af%e5%a2%83%e6%90%ad%e5%bb%ba%ef%bc%88%e4%bd%bf%e7%94%a83%e5%8f%b0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/59553.html","title":{"rendered":"01-\u5b66\u4e60\u7b14\u8bb0\u5c1a\u7845\u8c37\u6570\u4ed3\u642d\u5efa-\u57fa\u7840Linux\u73af\u5883\u642d\u5efa\uff08\u4f7f\u75283\u53f0\u4e3b\u673a\u6a21\u62dfHadoop\u96c6\u7fa4\uff09"},"content":{"rendered":"<p>\u8d44\u6e90&#xff1a;https:\/\/pan.baidu.com\/s\/1949KkbXC4xcuCpqEbpwC3Q?pwd&#061;vfze \u63d0\u53d6\u7801: vfze&#xff0c;\u5305\u542bjdk\u3001Hadoop\u3001flume\u3001zookeeper\u7b49\u7b49\u9879\u76ee\u9700\u8981\u7684\u5de5\u5177\u6216\u5b89\u88c5\u5305<\/p>\n<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"%E4%B8%80%E3%80%81%E5%9F%BA%E7%A1%80%E7%8E%AF%E5%A2%83-toc\" style=\"margin-left:0px\">\u4e00\u3001\u57fa\u7840\u73af\u5883<\/p>\n<p id=\"%E4%BA%8C%E3%80%81%E6%B7%BB%E5%8A%A0%E9%9B%86%E7%BE%A4%E5%88%86%E5%8F%91%E8%84%9A%E6%9C%AC%EF%BC%88%E6%96%B9%E4%BE%BF%E5%90%8E%E7%BB%AD%E9%9B%86%E7%BE%A4%E4%BC%A0%E8%BE%93%EF%BC%89-toc\" style=\"margin-left:0px\">\u4e8c\u3001\u6dfb\u52a0\u96c6\u7fa4\u5206\u53d1\u811a\u672c&#xff08;\u65b9\u4fbf\u540e\u7eed\u96c6\u7fa4\u4f20\u8f93&#xff09;<\/p>\n<p id=\"%E4%B8%89%E3%80%81%E8%AE%BE%E7%BD%AE3%E5%8F%B0%E4%B8%BB%E6%9C%BA%E5%85%8D%E5%AF%86%E7%99%BB%E5%BD%95-toc\" style=\"margin-left:0px\">\u4e09\u3001\u8bbe\u7f6e3\u53f0\u4e3b\u673a\u514d\u5bc6\u767b\u5f55<\/p>\n<p id=\"%E5%9B%9B%E3%80%81JDK%E5%AE%89%E8%A3%85%E5%8F%8A%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE-toc\" style=\"margin-left:0px\">\u56db\u3001JDK\u5b89\u88c5\u53ca\u73af\u5883\u914d\u7f6e<\/p>\n<p id=\"%E4%BA%94%E3%80%81-toc\" style=\"margin-left:0px\">\n<hr id=\"hr-toc\" \/>\n<p>\u5907\u6ce8&#xff1a;\u6ca1\u6709\u7279\u522b\u8bf4\u660e\u7684\u547d\u4ee4\u9ed8\u8ba4\u5728hadoop102\u4e0a\u6267\u884c&#xff0c;\u5176\u4e2d\u7684\u201c\u5176\u5b83\u4e3b\u673a\u201d\u662f\u6307hadoop103\u548chadoop104<\/p>\n<h2 id=\"%E4%B8%80%E3%80%81%E5%9F%BA%E7%A1%80%E7%8E%AF%E5%A2%83\">\u4e00\u3001\u57fa\u7840\u73af\u5883<\/h2>\n<p>1.\u5148\u5229\u7528\u5bbf\u4e3b\u673a\u514b\u96863\u53f0\u4e3b\u673a&#xff0c;\u5bbf\u4e3b\u673a\u4e0b\u8f7d\u5730\u5740&#xff1a;https:\/\/pan.baidu.com\/s\/1yGqD2zEKExp5VdULbgDHIQ?pwd&#061;1dj2 \u63d0\u53d6\u7801: 1dj2<\/p>\n<p>3\u53f0\u4e3b\u673a\u540d\u79f0\u5982\u4e0b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"120\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113163318-696673ce53dc1.png\" width=\"227\" \/><\/p>\n<p>2.\u4fee\u6539\u865a\u62df\u7f51\u7edc\u7f16\u8f91\u5668<\/p>\n<p>\u5728\u7f16\u8f91\u4e2d\u9009\u62e9\u865a\u62df\u7f51\u7edc\u7f16\u8f91\u5668<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"271\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113163318-696673ce660dc.png\" width=\"483\" \/><\/p>\n<p>\u9009\u62e9vmnet8,\u70b9\u51fb\u66f4\u6539\u8bbe\u7f6e&#xff0c;\u5c06\u5b50\u7f51\u6539\u4e3a192.168.10.0&#xff0c;\u4e0b\u56fe\u662f\u6211\u5df2\u7ecf\u6539\u597d\u7684<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"818\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113163318-696673ce7b433.png\" width=\"897\" \/><\/p>\n<p>\u70b9\u51fbDHCP\u8bbe\u7f6e&#xff0c;\u987a\u4fbf\u628a\u00a0DHCP \u5730\u5740\u6c60\u7684\u8d77\u59cb\u5730\u5740\u548c\u7ed3\u675f\u5730\u5740\u6539\u6210\u4e0b\u56fe\u4e00\u6837\u7684\u5185\u5bb9<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"419\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113163318-696673ced7735.png\" width=\"553\" \/><\/p>\n<p>\u70b9\u51fbNAT\u8bbe\u7f6e&#xff0c;\u5c06\u7f51\u5173\u4fee\u6539\u4e3a192.168.10.2<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"765\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113163319-696673cf264a9.png\" width=\"742\" \/><\/p>\n<p>3.\u5206\u522b\u4f7f\u7528root\u7528\u6237\u767b\u5f553\u53f0\u4e3b\u673a&#xff0c;\u5bc6\u7801\u4e3a000000<\/p>\n<p>\u8fdb\u5165\u540e\u5728\u7ec8\u7aef\u8f93\u5165\u4e0b\u9762\u7684\u547d\u4ee4\u4fee\u6539\u7f51\u7edc\u914d\u7f6e<\/p>\n<p>vim \/etc\/sysconfig\/network-scripts\/ifcfg-ens33 <\/p>\n<p>\u56e0\u4e3a\u662f\u5bbf\u4e3b\u673a\u514b\u9686\u6765\u7684&#xff0c;\u53ea\u7528\u4fee\u6539IPADDR&#xff0c;\u6bcf\u53f0\u90fd\u8981\u4fee\u6539&#xff0c;\u5206\u522b\u4e3a<\/p>\n<p>192.168.10.102<\/p>\n<p>192.168.10.103<\/p>\n<p>192.168.10.104<\/p>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u793a\u4f8b&#xff0c;\u4fee\u6539\u7684\u662fhadoop104,\u8f93\u5165\u4e0a\u9762\u547d\u4ee4\u540e&#xff0c;\u6309i\u63d2\u5165&#xff0c;\u4fee\u6539\u540e\u6309esc&#xff0c;\u7136\u540e\u6309wq\u4fdd\u5b58<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"486\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113163319-696673cf8f397.png\" width=\"578\" \/><\/p>\n<p>3\u53f0\u7f51\u7edc\u5730\u5740\u4fee\u6539\u5b8c\u6210\u540e\u8f93\u5165\u4e0b\u9762\u547d\u4ee4&#xff0c;\u4fee\u6539\u4e3b\u673a\u540d<\/p>\n<p>\u5206\u522b\u4fee\u6539\u4e3a<\/p>\n<p>hadoop102<\/p>\n<p>hadoop103<\/p>\n<p>hadoop104<\/p>\n<p>vim \/etc\/hostname <\/p>\n<p>\u4ee5hadoop104\u4e3a\u4f8b&#xff0c;\u5c06\u539f\u6765\u7684hadoop100\u6539\u4e3ahadoop104,\u5982\u56fe<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"120\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113163319-696673cfb6607.png\" width=\"774\" \/><\/p>\n<p>3\u53f0\u4e3b\u673a\u540d\u4fee\u6539\u5b8c\u6210\u540e&#xff0c;\u5c063\u53f0\u4e3b\u673a\u91cd\u542f<\/p>\n<h2 id=\"%E4%BA%8C%E3%80%81%E6%B7%BB%E5%8A%A0%E9%9B%86%E7%BE%A4%E5%88%86%E5%8F%91%E8%84%9A%E6%9C%AC%EF%BC%88%E6%96%B9%E4%BE%BF%E5%90%8E%E7%BB%AD%E9%9B%86%E7%BE%A4%E4%BC%A0%E8%BE%93%EF%BC%89\">\u4e8c\u3001\u6dfb\u52a0\u96c6\u7fa4\u5206\u53d1\u811a\u672c&#xff08;\u65b9\u4fbf\u540e\u7eed\u96c6\u7fa4\u4f20\u8f93&#xff09;<\/h2>\n<p>\u5728hadoop102\u4f9d\u6b21\u8f93\u5165\u4e0b\u9762\u7684\u547d\u4ee4<\/p>\n<p>su atguigu<br \/>\nll<br \/>\nmkdir bin<br \/>\ncd \/home\/atguigu\/bin<br \/>\nvim xsync<\/p>\n<p>\u5982\u56fe\u793a\u4f8b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"315\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113163319-696673cfd0652.png\" width=\"590\" \/><\/p>\n<p>\u6dfb\u52a0\u5982\u4e0b\u811a\u672c\u540e&#xff0c;wq\u4fdd\u5b58\u9000\u51fa<\/p>\n<p>#!\/bin\/bash<\/p>\n<p>#1. \u5224\u65ad\u53c2\u6570\u4e2a\u6570<br \/>\nif [ $# -lt 1 ]<br \/>\nthen<br \/>\n  echo Not Enough Arguement!<br \/>\n  exit;<br \/>\nfi<\/p>\n<p>#2. \u904d\u5386\u96c6\u7fa4\u6240\u6709\u673a\u5668<br \/>\nfor host in hadoop102 hadoop103 hadoop104<br \/>\ndo<br \/>\n  echo &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;  $host  &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n  #3. \u904d\u5386\u6240\u6709\u76ee\u5f55&#xff0c;\u6328\u4e2a\u53d1\u9001<br \/>\n  for file in $&#064;<br \/>\n  do<br \/>\n    #4 \u5224\u65ad\u6587\u4ef6\u662f\u5426\u5b58\u5728<br \/>\n    if [ -e $file ]<br \/>\n    then<br \/>\n      #5. \u83b7\u53d6\u7236\u76ee\u5f55<br \/>\n      pdir&#061;$(cd -P $(dirname $file); pwd)<br \/>\n      #6. \u83b7\u53d6\u5f53\u524d\u6587\u4ef6\u7684\u540d\u79f0<br \/>\n      fname&#061;$(basename $file)<br \/>\n      ssh $host &#034;mkdir -p $pdir&#034;<br \/>\n      rsync -av $pdir\/$fname $host:$pdir<br \/>\n    else<br \/>\n      echo $file does not exists!<br \/>\n    fi<br \/>\n  done<br \/>\ndone <\/p>\n<p>\u7136\u540e\u4fee\u6539\u811a\u672c\u6743\u9650&#xff0c;\u8f93\u5165\u4e0b\u9762\u547d\u4ee4<\/p>\n<p>chmod 777 xsync <\/p>\n<p>\u914d\u7f6ePATH\u73af\u5883&#xff0c;\u8f93\u5165\u4e0b\u9762\u547d\u4ee4&#xff0c;\u7f16\u8f91\u73af\u5883<\/p>\n<p>vim ~\/.bashrc <\/p>\n<p>\u5728\u6587\u672b\u63d2\u5165\u4e0b\u9762\u7684\u5185\u5bb9<\/p>\n<p>export PATH&#061;\/usr\/local\/bin:\/usr\/bin:\/usr\/local\/sbin:\/usr\/sbin:$HOME\/bin:$HOME\/.local\/bin:$PATH <\/p>\n<p>\u5982\u56fe\u793a\u4f8b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"328\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113163319-696673cfe7cba.png\" width=\"1099\" \/><\/p>\n<p>\u4fdd\u5b58\u9000\u51fa\u540e&#xff0c;\u8f93\u5165\u4e0b\u9762\u547d\u4ee4&#xff0c;\u5237\u65b0\u73af\u5883<\/p>\n<p>source ~\/.bashrc <\/p>\n<p>\u6700\u540e\u8f93\u5165\u4e0b\u9762\u547d\u4ee4&#xff0c;\u9a8c\u8bc1\u811a\u672c\u662f\u5426\u6210\u529f<\/p>\n<p>xsync xsync<\/p>\n<p>\u6210\u529f\u622a\u56fe\u5982\u4e0b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"408\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113163320-696673d05ed9f.png\" width=\"598\" \/><\/p>\n<p>\u5e76\u4e14\u4e5f\u80fd\u5728\u5176\u5b83\u4e24\u53f0\u4e3b\u673a\u7684\/home\/atguigu\/bin\u770b\u5230\u4f20\u8f93\u8fc7\u53bb\u7684\u811a\u672c<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"393\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113163320-696673d07f31a.png\" width=\"1288\" \/><\/p>\n<h2 id=\"%E4%B8%89%E3%80%81%E8%AE%BE%E7%BD%AE3%E5%8F%B0%E4%B8%BB%E6%9C%BA%E5%85%8D%E5%AF%86%E7%99%BB%E5%BD%95\">\u4e09\u3001\u8bbe\u7f6e3\u53f0\u4e3b\u673a\u514d\u5bc6\u767b\u5f55<\/h2>\n<p>3\u53f0\u4e3b\u673a\u90fd\u8981\u4f9d\u6b21\u8f93\u5165\u4e0b\u9762\u7684\u547d\u4ee4&#xff0c;\u751f\u6210\u516c\u94a5\u548c\u79c1\u94a5&#xff0c;\u5e76\u62f7\u8d1d\u5230\u5176\u5b83\u4e3b\u673a<\/p>\n<p>ssh-keygen -t rsa<br \/>\nssh-copy-id hadoop102<br \/>\nssh-copy-id hadoop103<br \/>\nssh-copy-id hadoop104 <\/p>\n<p>\u4e0b\u9762\u662f\u4ee5hadoop104\u4e3a\u4f8b&#xff0c;\u5176\u5b83\u4e24\u53f0\u540c\u7406<\/p>\n<p>\u8f93\u5165\u7b2c\u4e00\u6761\u547d\u4ee4\u540e&#xff0c;\u63093\u6b21\u56de\u8f66&#xff0c;\u751f\u6210\u516c\u94a5\u548c\u79c1\u94a5<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"493\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113163320-696673d0b541e.png\" width=\"773\" \/><\/p>\n<p>\u4f9d\u6b21\u8f93\u5165\u540e\u97623\u6761\u547d\u4ee4&#xff0c;\u6bcf\u8f93\u5165\u4e00\u6761\u547d\u4ee4&#xff0c;\u8981\u8f93\u5165\u4e00\u6b21\u201cyes\u201d\u548c\u5bc6\u7801&#xff1a;000000<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"345\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113163321-696673d12151c.png\" width=\"1450\" \/><\/p>\n<p>\u8fd9\u91cc\u4ee5ssh-copy-id hadoop102\u6f14\u793a&#xff0c;ssh-copy-id hadoop103\u3001ssh-copy-id hadoop104\u540c\u7406\u3002<\/p>\n<p>3\u53f0\u4e3b\u673a\u751f\u6210\u516c\u94a5\u548c\u79c1\u94a5&#xff0c;\u5e76\u62f7\u8d1d\u5230\u5176\u5b83\u4e3b\u673a\u540e\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u7684\u547d\u4ee4\u9a8c\u8bc1&#xff0c;\u5982\u679c\u6210\u529f\u662f\u53ef\u4ee5\u4e0d\u7528\u5bc6\u7801\u76f4\u63a5\u767b\u5f55\u5176\u5b83\u4e3b\u673a\u3002<\/p>\n<p>\u4ee5hadoop104\u4e3a\u4f8b&#xff0c;\u8981\u901a\u8fc7ssh\u514d\u5bc6\u767b\u5f55\u5176\u5b83\u4e24\u53f0&#xff0c;\u8f93\u5165\u4e0b\u9762\u7684\u547d\u4ee4\u9a8c\u8bc1<\/p>\n<p>ssh hadoop102<br \/>\nexit<br \/>\nssh hadoop103<br \/>\nexit <\/p>\n<p>\u5982\u56fe&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"252\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113163321-696673d1a8916.png\" width=\"631\" \/><\/p>\n<p>\u5176\u5b83\u4e24\u53f0\u4e3b\u673a\u9a8c\u8bc1\u540c\u7406&#xff0c;\u53ea\u7528\u4fee\u6539ssh\u540e\u9762\u7684\u4e3b\u673a\u540d\u5c31\u884c&#xff0c;\u5176\u4e2dexit\u547d\u4ee4\u662f\u767b\u51fa\u64cd\u4f5c\u3002<\/p>\n<h2 id=\"%E5%9B%9B%E3%80%81JDK%E5%AE%89%E8%A3%85%E5%8F%8A%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE\">\u56db\u3001JDK\u5b89\u88c5\u53ca\u73af\u5883\u914d\u7f6e<\/h2>\n<p>1.\u5148\u901a\u8fc7finalshell\u6216xshell\u5c06jdk\u4f20\u5165\u5bbf\u4e3b\u673a\u4e8b\u5148\u51c6\u5907\u597d\u7684\u76ee\u5f55\u4e0b&#xff08;\u5df2\u7ecf\u6709\u4e86\u4e0d\u7528\u91cd\u65b0\u521b\u5efa&#xff09;\/opt\/software&#xff08;\u53ea\u7528\u5728hadoop102&#xff09;\u5982\u56fe&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"309\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113163321-696673d1db2dd.png\" width=\"1336\" \/><\/p>\n<\/p>\n<p>\u67e5\u770b\u662f\u5426\u6210\u529f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"61\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113163322-696673d252dea.png\" width=\"447\" \/><\/p>\n<p>2.\u89e3\u538bjdk\u5230\u76ee\u5f55\/opt\/module\/\u4e0b&#xff0c;\u8f93\u5165\u547d\u4ee4<\/p>\n<p>tar -zxvf \/opt\/software\/jdk-8u212-linux-x64.tar.gz -C \/opt\/module\/ <\/p>\n<p>\u89e3\u538b\u5b8c\u6210\u540e\u91cd\u547d\u540d\u4e3ajava<\/p>\n<p>mv \/opt\/woftware\/jdk1.8.0_212\/ java <\/p>\n<p>3.\u914d\u7f6ejdk\u73af\u5883&#xff0c;\u65b0\u5efa\u73af\u5883\u811a\u672c&#xff0c;\u8f93\u5165\u4e0b\u9762\u547d\u4ee4<\/p>\n<p>sudo vim \/etc\/profile.d\/my_env.sh <\/p>\n<p>\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9&#xff1a;<\/p>\n<p style=\"margin-left:0.0000pt\">#JAVA_HOME<\/p>\n<p style=\"margin-left:0.0000pt\">export JAVA_HOME&#061;\/opt\/module\/java<\/p>\n<p style=\"margin-left:0.0000pt\">export PATH&#061;$PATH:$JAVA_HOME\/bin<\/p>\n<p style=\"margin-left:0.0000pt\">\u540e\u4fdd\u5b58\u9000\u51fa<\/p>\n<p style=\"margin-left:0.0000pt\">\u8f93\u5165\u4e0b\u9762\u547d\u4ee4&#xff0c;\u4f7f\u73af\u5883\u53d8\u91cf\u751f\u6548<\/p>\n<p>source \/etc\/profile.d\/my_env.sh <\/p>\n<p>\u6700\u540e\u9a8c\u8bc1jdk\u662f\u5426\u5b89\u88c5\u6210\u529f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"108\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113163322-696673d2745bc.png\" width=\"760\" \/><\/p>\n<p>4.\u5206\u53d1JDK\u53ca\u5176\u73af\u5883\u5230\u5176\u5b83\u4e24\u53f0\u4e3b\u673a<\/p>\n<p>1.\u8f93\u5165\u4e0b\u9762\u4e24\u6761\u547d\u4ee4<\/p>\n<p>sudo \/home\/atguigu\/bin\/xsync \/opt\/module\/java<br \/>\nsudo \/home\/atguigu\/bin\/xsync \/etc\/profile.d\/my_env.sh <\/p>\n<p>\u4f20\u8f93\u5b8c\u6210\u540e\u5728hadoop103\u3001hadoop104\u8f93\u5165\u4e0b\u9762\u547d\u4ee4\u5237\u65b0\u73af\u5883\u5e76\u9a8c\u8bc1\u662f\u5426\u6210\u529f&#xff0c;\u5982\u56fe&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"54\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113163322-696673d2a4c03.png\" width=\"318\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"52\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113163323-696673d326ff3.png\" width=\"262\" \/><\/p>\n<p>\u5907\u6ce8\u5982\u679c\u53ea\u60f3\u642d\u5efaHadoop\u96c6\u7fa4&#xff0c;\u8bf7\u8df3\u8fc72&#xff0c;\u76f4\u63a5\u770b3<\/p>\n<p>03-\u5b66\u4e60\u7b14\u8bb0\u5c1a\u7845\u8c37\u6570\u4ed3\u642d\u5efa-Hadoop\u5b89\u88c5\u914d\u7f6e\u53ca\u96c6\u7fa4\u542f\u52a8\u811a\u672c-CSDN\u535a\u5ba2<\/p>\n<h2 id=\"%E4%BA%94%E3%80%81\"><\/h2>\n","protected":false},"excerpt":{"rendered":"<p>\u8d44\u6e90&#xff1a;https:\/\/pan.baidu.com\/s\/1949KkbXC4xcuCpqEbpwC3Q?pwdvfze \u63d0\u53d6\u7801: vfze&#xff0c;\u5305\u542bjdk\u3001Hadoop\u3001flume\u3001zookeeper\u7b49\u7b49\u9879\u76ee\u9700\u8981\u7684\u5de5\u5177\u6216\u5b89\u88c5\u5305<br \/>\n\u76ee\u5f55<br \/>\n\u4e00\u3001\u57fa\u7840\u73af\u5883<br \/>\n\u4e8c\u3001\u6dfb\u52a0\u96c6\u7fa4\u5206\u53d1\u811a\u672c&#xff08;\u65b9\u4fbf\u540e\u7eed\u96c6\u7fa4\u4f20\u8f93&#xff09;<br \/>\n\u4e09\u3001\u8bbe\u7f6e3\u53f0\u4e3b\u673a\u514d\u5bc6\u767b\u5f55<br \/>\n\u56db\u3001JDK\u5b89\u88c5\u53ca\u73af\u5883\u914d\u7f6e \u5907\u6ce8&#xff1a;\u6ca1\u6709\u7279\u522b\u8bf4\u660e\u7684\u547d\u4ee4\u9ed8\u8ba4\u5728hadoop102\u4e0a\u6267\u884c&amp;#xff<\/p>\n","protected":false},"author":2,"featured_media":59534,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,323,2330,1412],"topic":[],"class_list":["post-59553","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux","tag-323","tag-2330","tag-1412"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>01-\u5b66\u4e60\u7b14\u8bb0\u5c1a\u7845\u8c37\u6570\u4ed3\u642d\u5efa-\u57fa\u7840Linux\u73af\u5883\u642d\u5efa\uff08\u4f7f\u75283\u53f0\u4e3b\u673a\u6a21\u62dfHadoop\u96c6\u7fa4\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/59553.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"01-\u5b66\u4e60\u7b14\u8bb0\u5c1a\u7845\u8c37\u6570\u4ed3\u642d\u5efa-\u57fa\u7840Linux\u73af\u5883\u642d\u5efa\uff08\u4f7f\u75283\u53f0\u4e3b\u673a\u6a21\u62dfHadoop\u96c6\u7fa4\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u8d44\u6e90&#xff1a;https:\/\/pan.baidu.com\/s\/1949KkbXC4xcuCpqEbpwC3Q?pwdvfze \u63d0\u53d6\u7801: vfze&#xff0c;\u5305\u542bjdk\u3001Hadoop\u3001flume\u3001zookeeper\u7b49\u7b49\u9879\u76ee\u9700\u8981\u7684\u5de5\u5177\u6216\u5b89\u88c5\u5305 \u76ee\u5f55 \u4e00\u3001\u57fa\u7840\u73af\u5883 \u4e8c\u3001\u6dfb\u52a0\u96c6\u7fa4\u5206\u53d1\u811a\u672c&#xff08;\u65b9\u4fbf\u540e\u7eed\u96c6\u7fa4\u4f20\u8f93&#xff09; \u4e09\u3001\u8bbe\u7f6e3\u53f0\u4e3b\u673a\u514d\u5bc6\u767b\u5f55 \u56db\u3001JDK\u5b89\u88c5\u53ca\u73af\u5883\u914d\u7f6e \u5907\u6ce8&#xff1a;\u6ca1\u6709\u7279\u522b\u8bf4\u660e\u7684\u547d\u4ee4\u9ed8\u8ba4\u5728hadoop102\u4e0a\u6267\u884c&amp;#xff\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/59553.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-13T16:33:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113163318-696673ce53dc1.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/59553.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/59553.html\",\"name\":\"01-\u5b66\u4e60\u7b14\u8bb0\u5c1a\u7845\u8c37\u6570\u4ed3\u642d\u5efa-\u57fa\u7840Linux\u73af\u5883\u642d\u5efa\uff08\u4f7f\u75283\u53f0\u4e3b\u673a\u6a21\u62dfHadoop\u96c6\u7fa4\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-13T16:33:24+00:00\",\"dateModified\":\"2026-01-13T16:33:24+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/59553.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/59553.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/59553.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"01-\u5b66\u4e60\u7b14\u8bb0\u5c1a\u7845\u8c37\u6570\u4ed3\u642d\u5efa-\u57fa\u7840Linux\u73af\u5883\u642d\u5efa\uff08\u4f7f\u75283\u53f0\u4e3b\u673a\u6a21\u62dfHadoop\u96c6\u7fa4\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"01-\u5b66\u4e60\u7b14\u8bb0\u5c1a\u7845\u8c37\u6570\u4ed3\u642d\u5efa-\u57fa\u7840Linux\u73af\u5883\u642d\u5efa\uff08\u4f7f\u75283\u53f0\u4e3b\u673a\u6a21\u62dfHadoop\u96c6\u7fa4\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/59553.html","og_locale":"zh_CN","og_type":"article","og_title":"01-\u5b66\u4e60\u7b14\u8bb0\u5c1a\u7845\u8c37\u6570\u4ed3\u642d\u5efa-\u57fa\u7840Linux\u73af\u5883\u642d\u5efa\uff08\u4f7f\u75283\u53f0\u4e3b\u673a\u6a21\u62dfHadoop\u96c6\u7fa4\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u8d44\u6e90&#xff1a;https:\/\/pan.baidu.com\/s\/1949KkbXC4xcuCpqEbpwC3Q?pwdvfze \u63d0\u53d6\u7801: vfze&#xff0c;\u5305\u542bjdk\u3001Hadoop\u3001flume\u3001zookeeper\u7b49\u7b49\u9879\u76ee\u9700\u8981\u7684\u5de5\u5177\u6216\u5b89\u88c5\u5305 \u76ee\u5f55 \u4e00\u3001\u57fa\u7840\u73af\u5883 \u4e8c\u3001\u6dfb\u52a0\u96c6\u7fa4\u5206\u53d1\u811a\u672c&#xff08;\u65b9\u4fbf\u540e\u7eed\u96c6\u7fa4\u4f20\u8f93&#xff09; \u4e09\u3001\u8bbe\u7f6e3\u53f0\u4e3b\u673a\u514d\u5bc6\u767b\u5f55 \u56db\u3001JDK\u5b89\u88c5\u53ca\u73af\u5883\u914d\u7f6e \u5907\u6ce8&#xff1a;\u6ca1\u6709\u7279\u522b\u8bf4\u660e\u7684\u547d\u4ee4\u9ed8\u8ba4\u5728hadoop102\u4e0a\u6267\u884c&amp;#xff","og_url":"https:\/\/www.wsisp.com\/helps\/59553.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-13T16:33:24+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113163318-696673ce53dc1.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/59553.html","url":"https:\/\/www.wsisp.com\/helps\/59553.html","name":"01-\u5b66\u4e60\u7b14\u8bb0\u5c1a\u7845\u8c37\u6570\u4ed3\u642d\u5efa-\u57fa\u7840Linux\u73af\u5883\u642d\u5efa\uff08\u4f7f\u75283\u53f0\u4e3b\u673a\u6a21\u62dfHadoop\u96c6\u7fa4\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-13T16:33:24+00:00","dateModified":"2026-01-13T16:33:24+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/59553.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/59553.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/59553.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"01-\u5b66\u4e60\u7b14\u8bb0\u5c1a\u7845\u8c37\u6570\u4ed3\u642d\u5efa-\u57fa\u7840Linux\u73af\u5883\u642d\u5efa\uff08\u4f7f\u75283\u53f0\u4e3b\u673a\u6a21\u62dfHadoop\u96c6\u7fa4\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/59553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=59553"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/59553\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/59534"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=59553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=59553"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=59553"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=59553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}