{"id":260634,"date":"2022-12-30T23:54:33","date_gmt":"2022-12-30T15:54:33","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=260634"},"modified":"2022-12-30T23:54:33","modified_gmt":"2022-12-30T15:54:33","slug":"xiaohuichao","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/xiaohuichao.html","title":{"rendered":"\u6377\u8baf\uff1a\u8096\u6167\u8d8512\u670826\u65e5\u5317\u4eac\u987a\u5229\u901a\u8fc7RHCE\u8ba4\u8bc1\u3002"},"content":{"rendered":"

\u7ea2\u5e3d<\/a>\u8ba4\u8bc1\u8be6\u89e3\uff1ahttps:\/\/www.linux<\/a>probe.com\/redhat-certificate\/<\/strong><\/span><\/p>\n

\n
\n

\u5218\u9044<\/a>\u8001\u5e08\u57f9\u8bad\u4ecb\u7ecd\u89c6\u9891\uff1ahttps:\/\/www.linux<\/a>probe.com\/training<\/strong><\/span><\/p>\n

\u8003\u8bd5\u5fc3\u5f97\uff1a<\/strong><\/span><\/p>\n<\/div>\n<\/div>\n

26\u53f7\u65e9\u4e0a10\u70b9\u591a\u624d\u5f00\u8003rhcsa\uff0c\u5bf9\u6bd4\u6a21\u62df\u9898\uff0c\u533a\u522b\u4e0d\u5927\uff0c\u4f46\u662f\u8fd8\u662f\u9700\u8981\u6e29\u6545\u800c\u77e5\u65b0\uff0c\u5728\u53bb\u8003\u573a\u7684\u9014\u4e2d\uff0c\u770b\u4e86\u904d\u6a21\u62df\u9898\u5e93\uff0c\u6a21\u62df\u9898\u57fa\u672c\u90fd\u80fd\u8986\u76d6\u4f4f\uff0c\u6211\u5728\u4e0a\u5348\u8fd9\u95e8\u8003\u8bd5\uff0c\u5c31\u53ea\u6709\u4e00\u4e2a\u9898\u6ca1\u505a\u51fa\u6765\uff0c\u90a3\u5c31\u662fautofs\u90a3\u9898\uff0cautofs\u5173\u4e8e\u7528\u6237\u8ba4\u8bc1\u90a3\u5757\uff0c\u8fd9\u4e2a\u662f\u5c5e\u4e8e\u6211\u7684\u77e5\u8bc6\u76f2\u533a\uff0c\u6700\u540erhcsa\u8003\u5b8c\u540e\uff0c\u7528\u624b\u673a\u67e5\u4e86\u4e0b\u662f\u5728-fstype\u4e2d\u52a0\u4e0a`,username=\u7528\u6237\u540d,password=\u5bc6\u7801`\uff08\u6ca1\u6709\u9a8c\u8bc1\u6b63\u786e\u6027\uff09\uff0c\u771f\u662f\u53ef\u60dc\u554a\u3002<\/span><\/p>\n

\u4e0b\u53482\u70b9\u534a\u5de6\u53f3\u5f00\u8003rhce\uff0crhce\u4e3b\u8981\u662f\u8003\u7684ansible\uff0c\u8ddf\u8001\u5218\u7684\u9898\u5e93\u6ca1\u592a\u5927\u533a\u522b\u3002\u6211\u5728\u4e0b\u5348rhce\u8fd9\u4e2a\u8003\u8bd5\u4e2d\uff0c\u82b1\u4e863\u5c0f\u65f610\u5206\u5de6\u53f3\u628a\u9898\u505a\u5b8c\u4e86\uff08\u6211\u8fd9\u662f\u5199\u5b8c\u52a0\u9a8c\u8bc1\u7684\uff09\uff0crhce\u8003\u8bd5\u65f6\u95f4\u662f4\u5c0f\u65f6\u3002\u5f53\u524d\u6211\u8fd9\u4e0d\u662f\u5feb\u7684\uff0c\u6700\u540e\u768440\u5206\u949f\u88ab**\u521b\u5efa\u548c\u4f7f\u7528\u89d2\u8272**\u8fd9\u9898\u96be\u4f4f\u4e86\uff08\u771f\u662f\u4e0d\u5e94\u8be5\u554a\uff09\uff0c\u6700\u540e40\u5206\u949f\u6b7b\u78d5\u5206\u6790\uff0c\u65e0\u5948\u53ea\u80fd\u56e0\u8003\u8bd5\u65f6\u95f4\u5230\u4e22\u6389\u5206\u4e86\u3002<\/span><\/p>\n

\u5728**\u521b\u5efa\u548c\u4f7f\u7528\u89d2\u8272**\u6211\u9047\u5230\u4e862\u4e2a\u9519\u8bef\uff1a<\/span><\/p>\n

1. \u7b2c\u4e00\u4e2a\u9519\u8bef\u610f\u601d\u662f\uff1aeth0\u8fd9\u4e2a\u5c5e\u6027\u4e0d\u5b58\u5728\uff0c\u56e0\u4e3a\u7b2c\u4e00\u4e2a\u4f7f\u7528\u7684\u89d2\u8272\u662f\u8d1f\u8f7dbalancer\u89d2\u8272\uff0c==balancer==\u8fd9\u4e2a\u89d2\u8272\u7684hosts\u52a0\u4e0abalancers\uff0c\u4e5f\u5c31\u662f**hosts: balancers,webservers**\uff0c\u4e4b\u540e\u5728\u8865\u5145\u4e0awhen\u6761\u4ef6\u9488\u5bf9balancers\u5c31\u884c\u3002<\/span><\/p>\n

1. \u4e3a\u4ec0\u4e48\u8981\u52a0webservers\uff1f<\/span>
\n1. \u56e0\u4e3abalancer\u6709\u4e2a\u6a21\u677f\u6587\u4ef6\u662f\u83b7\u53d6\u4e86groups.webservers\u5e95\u4e0b\u7684\u4e3b\u673a\u5217\u8868\uff0c\u8fdb\u884c\u8d1f\u8f7d\u7684\u914d\u7f6e\uff0c\u52a0\u4e0a\u662f\u9700\u8981ansible\u6536\u96c6\u76f8\u5173\u4e3b\u673a\u7684\u4fe1\u606f\u3002<\/span><\/p>\n

2. \u7b2c\u4e8c\u4e2a\u9519\u8bef\u610f\u601d\u662f\uff1afirewalld\u670d\u52a1\u6ca1\u6709\u542f\u52a8\u3002<\/span><\/p>\n

1. \u5982\u679c\u4f60\u7684\u987a\u5e8f\u662f\u5982\u4e0b\uff1a<\/span><\/p>\n

```yml<\/span>
\nroles:<\/span>
\n- phpinfo<\/span>
\n- apache<\/span>
\n```<\/span><\/p>\n

\u5982\u679c\u662f\u8fd9\u79cd\u987a\u5e8f\u7684\u8bdd\uff0c\u4e0d\u59a8\u4ea4\u6362\u4e0b\u987a\u5e8f\uff0c\u56e0\u4e3a\u4f60\u81ea\u5df1\u5b9a\u4e49\u7684apache\u89d2\u8272\u91cc\uff0c\u5e94\u8be5\u6709\u5173\u4e8efirewalld\u670d\u52a1\u7684\u914d\u7f6e\u3002<\/span><\/p>\n

\u4ee5\u4e0a\u5c31\u662f\u6211\u8003\u8bd5\u4e2d\u56e0\u65f6\u95f4\u8017\u5c3d\uff0c\u672a\u80fd\u786e\u8ba4\u662f\u5426\u6b63\u786e\u7684\u70b9\uff0c\u4ee5\u4e0a\u7684\u9519\u8bef\u89e3\u51b3\u65b9\u6848\u867d\u7136\u6211\u8fd9\u8fb9\u5e76\u6ca1\u6709\u5c1d\u8bd5\u8fc7\uff0c\u4e0d\u8fc7\u53ef\u4ee5\u8ba4\u4e3a\u662f **\u5f53\u6ca1\u6709\u5176\u4ed6\u65b9\u6cd5\u65f6\uff0c\u503c\u5f97\u4e00\u8bd5**\u3002<\/span><\/p>\n

\u5f53\u5728\u8003\u8bd5\u65f6\uff0c\u9047\u5230\u5c06\u6587\u4ef6\u590d\u5236\u6216\u5199\u5165\u5230\u6307\u5b9a\u76ee\u5f55\u4e0b\u6216\u6587\u4ef6\u65f6\uff0c\u8bf7\u64cd\u4f5c\u5b8c\u786e\u8ba4\u4e00\u4e0b\uff0c\u56e0\u4e3a\u6bd4\u5982\u4f60\u6267\u884c`find \/ ... -exec cp -a {} \/root\/myfiles`\u8fd9\u6837\u7684\u547d\u4ee4\u65f6\uff0c\u5982\u679c\u76ee\u6807\u4f4d\u7f6e\u5df2\u5b58\u5728**myfile\u6587\u4ef6**\uff0c\u800c\u4f60\u7684\u76ee\u6807\u8981\u628a`find`\u547d\u4ee4\u627e\u5230\u7684\u6587\u4ef6\u653e\u5230\u8fd9\u4e2a**myfiles\u76ee\u5f55**\u4e0b\uff0c\u6700\u7ec8\u7ed3\u679c\u662f\u9759\u9ed8\u5931\u8d25\uff0c\u4e0d\u4fe1\u4f60\u53ef\u4ee5\u5c1d\u8bd5\u4e0b\uff0c\u81f3\u5c11\u6211\u8fd9\u4e48\u505a\u7684\u65f6\u5019\uff0c\u6267\u884csh\u811a\u672c\u5e76\u6ca1\u6709\u62a5\u9519\uff08\u8003\u9898\u8981\u6c42\u7684\u662f\u628afind\u547d\u4ee4\u653e\u5230\u6307\u5b9a\u540d\u79f0\u7684\u811a\u672c\u6587\u4ef6\u4e2d\uff0c\u5343\u4e07\u522b\u5fd8\u7ed9==\u53ef\u6267\u884c==\u6743\u9650\uff09\u3002<\/span><\/p>\n

\u6700\u540e\u8981\u8bf4\u7684\uff0c\u5b66\u5b8c\u8001\u5218\u7684\u8bfe\u7a0b\uff0c\u8fd8\u6709\u6a21\u62df\u9898\u5e93\u7684\u5e2e\u52a9\uff0c\u518d\u52a0\u4e0a\u81ea\u5df1\u591a\u7ec3\u7ec3\uff0c\u81ea\u5df1\u7ec3\u4e60\u7684\u65f6\u5019\u9047\u5230\u9519\u8bef\u4e0d\u8981\u8df3\u8fc7\uff0c\u6ca1\u51c6\u4f60\u7ec3\u4e60\u65f6\u89e3\u51b3\u7684\u9519\u8bef\uff0c\u4f1a\u5728\u8003\u8bd5\u65f6\u9047\u5230\u5462\uff01\u4e5f\u795d\u5404\u4f4d\u8003\u751f\u90fd\u80fd\u987a\u5229\u8003\u8fc7\uff01<\/span><\/p>\n

\"\"<\/a> \"\"<\/a><\/p>\n

\u4e09\u5341\u4e94\u671f\u8bfe\u7a0b\u57f9\u8bad\u7ed3\u675f\u3002https:\/\/lrxjmw.cn\/record-35.html<\/a><\/p>\n

\u4e09\u5341\u56db\u671f\u8bfe\u7a0b\u57f9\u8bad\u7ed3\u675f\u3002https:\/\/lrxjmw.cn\/record-34.html<\/a><\/p>\n

\u4e09\u5341\u4e09\u671f\u8bfe\u7a0b\u57f9\u8bad\u7ed3\u675f\u3002https:\/\/lrxjmw.cn\/record-33.html<\/a><\/p>\n

2021\u5e74\u57f9\u8bad\u5386\u53f2\u5f52\u6863\uff1a\u7b2c\u4e8c\u5341\u4e5d\u671f<\/a>\u3001\u7b2c\u4e09\u5341\u671f<\/a>\u3001\u7b2c\u4e09\u5341\u4e00\u671f<\/a>\u3001\u7b2c\u4e09\u5341\u4e8c\u671f<\/a>\u3002<\/p>\n

2020\u5e74\u57f9\u8bad\u5386\u53f2\u5f52\u6863\uff1a\u7b2c\u4e8c\u5341\u4e94\u671f<\/a>\u3001\u7b2c\u4e8c\u5341\u516d\u671f<\/a>\u3001\u7b2c\u4e8c\u5341\u4e03\u671f<\/a>\u3001\u7b2c\u4e8c\u5341\u516b\u671f<\/a>\u3002<\/p>\n

2019\u5e74\u57f9\u8bad\u5386\u53f2\u5f52\u6863\uff1a\u7b2c\u4e8c\u5341\u671f<\/a>\u3001\u7b2c\u4e8c\u5341\u4e00\u671f<\/a>\u3001\u7b2c\u4e8c\u5341\u4e8c\u671f<\/a>\u3001\u7b2c\u4e8c\u5341\u4e09\u671f<\/a>\u3001\u7b2c\u4e8c\u5341\u56db\u671f<\/a>\u3002<\/p>\n

2018\u5e74\u57f9\u8bad\u5386\u53f2\u5f52\u6863\uff1a\u7b2c\u5341\u4e94\u671f<\/a>\u3001\u7b2c\u5341\u516d\u671f<\/a>\u3001\u7b2c\u5341\u4e03\u671f<\/a>\u3001\u7b2c\u5341\u516b\u671f<\/a>\u3001\u7b2c\u5341\u4e5d\u671f<\/a>\u3002<\/p>\n

2017\u5e74\u57f9\u8bad\u5386\u53f2\u5f52\u6863\uff1a\u7b2c\u4e5d\u671f<\/a>\u3001\u7b2c\u5341\u671f<\/a>\u3001\u7b2c\u5341\u4e00\u671f<\/a>\u3001\u7b2c\u5341\u4e8c\u671f<\/a>\u3001\u7b2c\u5341\u4e09\u671f<\/a>\u3001\u7b2c\u5341\u56db\u671f<\/a>\u3002<\/p>\n

2016\u5e74\u57f9\u8bad\u5386\u53f2\u5f52\u6863\uff1a\u7b2c\u4e00\u671f<\/a>\u3001\u7b2c\u4e8c\u671f<\/a>\u3001\u7b2c\u4e09\u671f<\/a>\u3001\u7b2c\u56db\u671f<\/a>\u3001\u7b2c\u4e94\u671f<\/a>\u3001\u7b2c\u516d\u671f<\/a>\u3001\u7b2c\u4e03\u671f<\/a>\u3001\u7b2c\u516b\u671f<\/a>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u7ea2\u5e3d\u8ba4\u8bc1\u8be6\u89e3\uff1ahttps:\/\/lrxjmw.cn\/redhat-certificate\/ \u5218 […]<\/p>\n","protected":false},"author":467,"featured_media":260684,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[72],"tags":[],"class_list":["post-260634","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-train"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/260634","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/467"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=260634"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/260634\/revisions"}],"predecessor-version":[{"id":260691,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/260634\/revisions\/260691"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/260684"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=260634"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=260634"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=260634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}