{"id":165335,"date":"2019-12-19T08:45:32","date_gmt":"2019-12-19T00:45:32","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=165335"},"modified":"2019-11-27T09:46:17","modified_gmt":"2019-11-27T01:46:17","slug":"system-bash-shell","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/system-bash-shell.html","title":{"rendered":"\u4f60\u9700\u8981\u77e5\u9053\u4ec0\u4e48\u624d\u80fd\u6210\u4e3a\u7cfb\u7edf\u7ba1\u7406\u5458\uff1f"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u901a\u8fc7\u83b7\u5f97\u8fd9\u4e9b\u8d77\u7801\u7684\u80fd\u529b\uff0c\u5f00\u59cb\u4f60\u7684\u7cfb\u7edf\u7ba1\u7406\u5458\u804c\u4e1a\u3002\u6614\u65e5\u7684\u7cfb\u7edf\u7ba1\u7406\u5458\u6574\u5929\u90fd\u5728\u8c03\u6559\u7528\u6237\u548c\u6446\u5f04\u670d\u52a1\u5668\uff0c\u4e00\u5929\u7684\u65f6\u95f4\u90fd\u5954\u6ce2\u5728\u51e0\u767e\u7c73\u957f\u7684\u7535\u7f06\u4e4b\u95f4\u3002\u968f\u7740\u4e91\u8ba1\u7b97\u3001\u5bb9\u5668\u548c\u865a\u62df\u673a\u7684\u590d\u6742\u6027\u7684\u589e\u52a0\uff0c\u800c\u4eca\u4f9d\u7136\u5982\u6b64\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u4ee5\u5916\u884c\u4eba\u6765\u770b\uff0c\u5f88\u96be\u51c6\u786e\u786e\u5b9a\u7cfb\u7edf\u7ba1\u7406\u5458\u7684\u786e\u5207\u804c\u80fd\uff0c\u56e0\u4e3a\u4ed6\u4eec\u5728\u8bb8\u591a\u5730\u65b9\u90fd\u626e\u6f14\u7740\u4e00\u4e2a\u4e0d\u8d77\u773c\u7684\u89d2\u8272\u3002\u6ca1\u4eba\u80fd\u5728\u57f9\u8bad\u4e2d\u77e5\u9053\u81ea\u5df1\u5de5\u4f5c\u4e2d\u6240\u9700\u8981\u7684\u4e00\u5207\u77e5\u8bc6\uff0c\u4f46\u662f\u6bcf\u4e2a\u4eba\u5176\u5b9e\u90fd\u9700\u8981\u4e00\u4e2a\u575a\u5b9e\u7684\u57fa\u7840\u3002\u5982\u679c\u4f60\u60f3\u8d70\u4e0a\u7cfb\u7edf\u7ba1\u7406\u7684\u9053\u8def\uff0c\u90a3\u4e48\u8fd9\u662f\u4f60\u4e2a\u4eba\u81ea\u5b66\u6216\u5728\u6b63\u5f0f\u57f9\u8bad\u4e2d\u5e94\u91cd\u70b9\u5173\u6ce8\u7684\u5185\u5bb9\u3002<\/p>\n

Bash<\/strong><\/div>\n

\u5f53\u4f60\u5b66\u4e60 Bash Shell \u65f6\uff0c\u4f60\u5b66\u4e60\u7684\u4e0d\u4ec5\u662f Bash Shell\uff0c\u4f60\u5b66\u4e60\u7684\u4e5f\u662f Linux\u3001BSD\u3001MacOS \u751a\u81f3Windows\uff08\u5728\u9002\u5f53\u6761\u4ef6\u4e0b\uff09\u7684\u901a\u7528\u754c\u9762\u3002\u4f60\u5c06\u4e86\u89e3\u8bed\u6cd5\u7684\u91cd\u8981\u6027\uff0c\u56e0\u6b64\u53ef\u4ee5\u5feb\u901f\u9002\u5e94\u601d\u79d1\u8def\u7531\u5668\u7684\u547d\u4ee4\u884c\u6216\u5fae\u8f6f PowerShell \u7b49\u7cfb\u7edf\uff0c\u6700\u7ec8\u4f60\u751a\u81f3\u53ef\u4ee5\u5b66\u4e60\u66f4\u5f3a\u5927\u7684\u8bed\u8a00\uff0c\u5982 Python \u6216 Go\u3002\u800c\u4e14\uff0c\u4f60\u8fd8\u4f1a\u5f00\u59cb\u8fdb\u884c\u7a0b\u5e8f\u6027\u601d\u8003\uff0c\u4ee5\u4fbf\u53ef\u4ee5\u5206\u6790\u590d\u6742\u7684\u95ee\u9898\u5e76\u5c06\u5176\u5206\u89e3\u4e3a\u5355\u4e2a\u7ec4\u4ef6\uff0c\u8fd9\u5f88\u5173\u952e\uff0c\u56e0\u4e3a\u8fd9\u5c31\u662f\u7cfb\u7edf\uff08\u4f8b\u5982\u4e92\u8054\u7f51\u3001\u7ec4\u7ec7\u7684\u5185\u90e8\u7f51\u3001Web \u670d\u52a1\u5668\u3001\u5907\u4efd\u89e3\u51b3\u65b9\u6848\uff09\u662f\u5982\u4f55\u8bbe\u8ba1\u7684\u3002<\/p>\n

\u4e0d\u6b62\u4e8e\u6b64\uff0c\u8fd8\u6709\u66f4\u591a\u3002<\/p>\n

\u7531\u4e8e\u6700\u8fd1 DevOps \u548c\u5bb9\u5668\u7684\u53d1\u5c55\u8d8b\u52bf\uff0c\u4e86\u89e3 Bash shell \u53d8\u5f97\u5c24\u4e3a\u91cd\u8981\u3002\u4f60\u7684\u7cfb\u7edf\u7ba1\u7406\u5458\u804c\u4e1a\u53ef\u80fd\u4f1a\u5c06\u4f60\u5e26\u5165\u4e00\u4e2a\u89c6\u57fa\u7840\u8bbe\u65bd\u4e3a\u4ee3\u7801\u7684\u4e16\u754c\uff0c\u8fd9\u901a\u5e38\u610f\u5473\u7740\u4f60\u5fc5\u987b\u4e86\u89e3\u811a\u672c\u7f16\u5199\u7684\u57fa\u7840\u77e5\u8bc6\u3001\u57fa\u4e8e YAML\u914d\u7f6e\u7684\u7ed3\u6784\uff0c\u4ee5\u53ca\u5982\u4f55\u4e0e\u5bb9\u5668\uff08\u8fd0\u884c\u5728\u6c99\u76d2\u6587\u4ef6\u5185\u90e8\u7684\u5fae\u578b Linux \u7cfb\u7edf\uff09\u4ea4\u4e92\u3002\u4f60\u4f1a\u77e5\u9053 Bash \u662f\u9ad8\u6548\u7ba1\u7406\u6fc0\u52a8\u4eba\u5fc3\u7684\u5f00\u6e90\u6280\u672f\u7684\u95e8\u6237\uff0c\u56e0\u6b64\u8bf7\u8fdb\u5165 Bash \u4e16\u754c\u5427\u3002<\/p>\n

\u8d44\u6e90<\/strong><\/span><\/div>\n

\u6709\u5f88\u591a\u65b9\u6cd5\u53ef\u4ee5\u5728 Bash shell \u4e2d\u8fdb\u884c\u7ec3\u4e60\u3002<\/p>\n

\u5c1d\u8bd5\u4e00\u4e0b\u4fbf\u643a\u5f0f Linux \u53d1\u884c\u7248\u3002\u4f60\u65e0\u9700\u5b89\u88c5 Linux \u5373\u53ef\u4f7f\u7528 Linux\uff0c\u56e0\u6b64\uff0c\u8bf7\u62ff\u4e00\u5757\u95f2\u7f6e\u7684 U \u76d8\uff0c\u82b1\u4e2a\u665a\u4e0a\u6216\u5468\u672b\u7684\u7a7a\u95f2\u65f6\u5149\uff0c\u6765\u9002\u5e94\u57fa\u4e8e\u6587\u672c\u7684\u754c\u9762\u3002<\/p>\n

\u8fd9\u91cc\u6709\u51e0\u7bc7\u5f88\u68d2\u7684 Bash \u6587\u7ae0\u3002<\/p>\n

\u8981\u6ce8\u610f\u7684\u662f Bash \u7ec3\u4e60\u7684\u5173\u952e\u5728\u4e8e\u8981\u7ec3\u4e60\uff0c\u4f60\u5fc5\u987b\u6709\u8981\u505a\u7684\u7ec3\u4e60\u624d\u884c\u3002\u800c\u4e14\uff0c\u5728\u4f60\u77e5\u9053\u5982\u4f55\u4f7f\u7528 Bash \u4e4b\u524d\uff0c\u4f60\u53ef\u80fd\u4e0d\u77e5\u9053\u8be5\u7ec3\u4e60\u4ec0\u4e48\u3002\u5982\u679c\u662f\u8fd9\u6837\uff0c\u8bf7\u53bb Over The Wire \u73a9\u4e00\u4e0b Bandit \u6e38\u620f\u3002\u8fd9\u662f\u4e00\u6b3e\u9488\u5bf9\u7edd\u5bf9\u521d\u5b66\u8005\u7684\u6e38\u620f\uff0c\u5177\u6709 34 \u4e2a\u7ea7\u522b\u7684\u4ea4\u4e92\u5f0f\u57fa\u672c\u6280\u5de7\uff0c\u53ef\u8ba9\u4f60\u719f\u6089 Linux shell\u3002<\/p>\n

Web \u670d\u52a1\u5668\u8bbe\u7f6e<\/strong><\/div>\n

\u4e00\u65e6\u4f60\u4e60\u60ef\u4e86 Bash\uff0c\u4f60\u5e94\u8be5\u5c1d\u8bd5\u8bbe\u7f6e\u4e00\u4e2a Web \u670d\u52a1\u5668\u3002\u5e76\u4e0d\u662f\u6240\u6709\u7684\u7cfb\u7edf\u7ba1\u7406\u5458\u90fd\u4f1a\u56db\u5904\u8bbe\u7f6e Web \u670d\u52a1\u5668\u751a\u81f3\u7ef4\u62a4 Web \u670d\u52a1\u5668\uff0c\u4f46\u662f\u4f60\u5728\u5b89\u88c5\u548c\u542f\u52a8 HTTP \u5b88\u62a4\u7a0b\u5e8f\u3001\u914d\u7f6e Apache \u6216 Nginx\uff0c\u8bbe\u7f6e\u6b63\u786e\u6743\u9650\u548c\u914d\u7f6e\u9632\u706b\u5899\u65f6\u6240\u638c\u63e1\u7684\u6280\u80fd\u662f\u4f60\u6bcf\u5929\u90fd\u9700\u8981\u4f7f\u7528\u7684\u6280\u80fd\u3002\u7ecf\u8fc7\u4e00\u4e9b\u52aa\u529b\uff0c\u4f60\u53ef\u80fd\u4f1a\u5f00\u59cb\u6ce8\u610f\u5230\u81ea\u5df1\u7684\u67d0\u4e9b\u5de5\u4f5c\u6a21\u5f0f\u3002\u5728\u5c1d\u8bd5\u7ba1\u7406\u53ef\u7528\u4e8e\u751f\u4ea7\u73af\u5883\u7684\u8f6f\u4ef6\u548c\u786c\u4ef6\u4e4b\u524d\uff0c\u4f60\u53ef\u80fd\u8ba4\u4e3a\u67d0\u4e9b\u6982\u5ff5\u662f\u7406\u6240\u5f53\u7136\u7684\uff0c\u800c\u4f60\u5728\u6210\u4e3a\u65b0\u624b\u7684\u7ba1\u7406\u5458\u89d2\u8272\u65f6\uff0c\u5c06\u4e0d\u518d\u53d7\u5230\u5b83\u4eec\u7684\u5f71\u54cd\u3002\u8d77\u521d\u8fd9\u53ef\u80fd\u4f1a\u4ee4\u4eba\u6cae\u4e27\uff0c\u56e0\u4e3a\u6bcf\u4e2a\u4eba\u90fd\u559c\u6b22\u5728\u81ea\u5df1\u505a\u597d\u6240\u505a\u7684\u4e8b\u60c5\uff0c\u4f46\u8fd9\u5b9e\u9645\u4e0a\u662f\u4e00\u4ef6\u597d\u4e8b\u3002\u8ba9\u81ea\u5df1\u63a5\u89e6\u65b0\u6280\u80fd\uff0c\u90a3\u5c31\u662f\u4f60\u5b66\u4e60\u7684\u65b9\u5f0f\u3002<\/p>\n

\u6b64\u5916\uff0c\u4f60\u5728\u7b2c\u4e00\u6b65\u4e2d\u4ed8\u51fa\u7684\u52aa\u529b\u8d8a\u591a\uff0c\u6700\u7ec8\u5f53\u4f60\u5728\u9ed8\u8ba4\u7684 index.html \u4e0a\u770b\u5230\u80dc\u5229\u7684\u201cit works!\u201d\u5c31\u8d8a\u751c\u871c\uff01<\/p>\n

\u8d44\u6e90<\/strong><\/span><\/div>\n

David Both \u64b0\u5199\u4e86\u6709\u5173 Apache Web \u670d\u52a1\u5668\u914d\u7f6e\u7684\u51fa\u8272\u6587\u7ae0\u3002\u503c\u5f97\u4e00\u63d0\u7684\u662f\uff0c\u8bf7\u9010\u6b65\u9605\u8bfb\u4ed6\u7684\u540e\u7eed\u6587\u7ae0\uff0c\u5176\u4e2d\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728\u4e00\u53f0\u8ba1\u7b97\u673a\u4e0a\u6258\u7ba1\u591a\u4e2a\u7ad9\u70b9\u3002<\/p>\n

DHCP
\n\u52a8\u6001\u4e3b\u673a\u914d\u7f6e\u534f\u8bae\uff08DHCP\uff09\u662f\u4e3a\u7f51\u7edc\u4e0a\u7684\u8bbe\u5907\u5206\u914d IP \u5730\u5740\u7684\u7cfb\u7edf\u3002\u5728\u5bb6\u91cc\uff0cISP\uff08\u4e92\u8054\u7f51\u670d\u52a1\u63d0\u4f9b\u5546\uff09\u652f\u6301\u7684\u8c03\u5236\u89e3\u8c03\u5668\u6216\u8def\u7531\u5668\u53ef\u80fd\u5185\u7f6e\u4e86 DHCP \u670d\u52a1\u5668\uff0c\u56e0\u6b64\u53ef\u80fd\u4e0d\u5728\u4f60\u7684\u6743\u9650\u8303\u56f4\u5185\u3002\u5982\u679c\u4f60\u66fe\u7ecf\u767b\u5f55\u5bb6\u7528\u8def\u7531\u5668\u6765\u8c03\u6574 IP \u5730\u5740\u8303\u56f4\u6216\u4e3a\u67d0\u4e9b\u7f51\u7edc\u8bbe\u5907\u8bbe\u7f6e\u4e86\u9759\u6001\u5730\u5740\uff0c\u90a3\u4e48\u4f60\u81f3\u5c11\u5bf9\u8be5\u6982\u5ff5\u6709\u6240\u4e86\u89e3\u3002\u4f60\u53ef\u80fd\u4f1a\u5c06\u5176\u7406\u89e3\u4e3a\u5bf9\u7f51\u7edc\u4e0a\u7684\u8bbe\u5907\u5206\u914d\u4e86\u4e00\u79cd IP \u5730\u5740\u5f62\u5f0f\u7684\u7535\u8bdd\u53f7\u7801\uff0c\u5e76\u4e14\u4f60\u53ef\u80fd\u4f1a\u610f\u8bc6\u5230\u8ba1\u7b97\u673a\u4e4b\u95f4\u901a\u8fc7\u5e7f\u64ad\u53d1\u9001\u5230\u7279\u5b9a IP \u5730\u5740\u7684\u6d88\u606f\u5f7c\u6b64\u8fdb\u884c\u901a\u4fe1\u3002\u6d88\u606f\u6807\u5934\u7531\u8def\u5f84\u4e0a\u7684\u8def\u7531\u5668\u8bfb\u53d6\uff0c\u6bcf\u4e2a\u6d88\u606f\u6807\u5934\u90fd\u5c06\u6d88\u606f\u5b9a\u5411\u5230\u8def\u5f84\u4e0a\u7684\u7b2c\u4e8c\u4e2a\u903b\u8f91\u8def\u7531\u5668\uff0c\u4ee5\u8fbe\u5230\u5176\u6700\u7ec8\u76ee\u6807\u3002<\/p>\n

\u5373\u4f7f\u4f60\u4e86\u89e3\u4e86\u8fd9\u4e9b\u6982\u5ff5\uff0c\u8981\u4ece\u5bf9 DHCP \u7684\u57fa\u672c\u4e86\u89e3\u518d\u8fdb\u4e00\u6b65\u662f\u67b6\u8bbe DHCP \u670d\u52a1\u5668\u3002\u5b89\u88c5\u548c\u914d\u7f6e\u81ea\u5df1\u7684 DHCP \u670d\u52a1\u5668\u53ef\u80fd\u4f1a\u5bfc\u81f4\u5bb6\u5ead\u7f51\u7edc\u4e2d\u7684 DHCP \u51b2\u7a81\uff08\u5982\u679c\u53ef\u4ee5\u7684\u8bdd\uff0c\u8bf7\u5c3d\u91cf\u907f\u514d\u8fd9\u6837\u505a\uff0c\u56e0\u4e3a\u5b83\u80af\u5b9a\u4f1a\u5e72\u6389\u4f60\u7684\u7f51\u7edc\uff0c\u76f4\u5230\u89e3\u51b3\u4e3a\u6b62\uff09\uff0c\u8981\u63a7\u5236\u5730\u5740\u7684\u5206\u914d\u3001\u521b\u5efa\u5b50\u7f51\uff0c\u5e76\u76d1\u63a7\u8fde\u63a5\u548c\u79df\u8d41\u65f6\u95f4\u3002<\/p>\n

\u66f4\u91cd\u8981\u7684\u662f\uff0c\u8bbe\u7f6e DHCP \u5e76\u5c1d\u8bd5\u4e0d\u540c\u7684\u914d\u7f6e\u6709\u52a9\u4e8e\u4f60\u4e86\u89e3\u7f51\u7edc\u4e4b\u95f4\u7684\u5173\u7cfb\u3002\u4f60\u4f1a\u4e86\u89e3\u7f51\u7edc\u5982\u4f55\u5728\u6570\u636e\u4f20\u8f93\u4e2d\u8868\u793a\u201c\u5206\u533a\u201d\uff0c\u4ee5\u53ca\u5fc5\u987b\u91c7\u53d6\u54ea\u4e9b\u6b65\u9aa4\u624d\u80fd\u5c06\u4fe1\u606f\u4ece\u4e00\u4e2a\u7f51\u7edc\u4f20\u9012\u5230\u53e6\u4e00\u4e2a\u3002\u8fd9\u5bf9\u4e8e\u7cfb\u7edf\u7ba1\u7406\u5458\u6765\u8bf4\u81f3\u5173\u91cd\u8981\uff0c\u56e0\u4e3a\u7f51\u7edc\u80af\u5b9a\u662f\u5de5\u4f5c\u4e2d\u6700\u91cd\u8981\u7684\u65b9\u9762\u4e4b\u4e00\u3002<\/p>\n

\u8d44\u6e90<\/strong><\/span><\/div>\n

\u5728\u8fd0\u884c\u81ea\u5df1\u7684 DHCP \u670d\u52a1\u5668\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u5bb6\u5ead\u8def\u7531\u5668\uff08\u5982\u679c\u6709\uff09\u4e2d\u7684 DHCP \u670d\u52a1\u5668\u5904\u4e8e\u975e\u6d3b\u52a8\u72b6\u6001\u3002\u4e00\u65e6\u542f\u52a8\u5e76\u8fd0\u884c\u4e86 DHCP \u670d\u52a1\u5668\uff0c\u8bf7\u9605\u8bfb Archit Modi \u7684\u7f51\u7edc\u547d\u4ee4\u6307\u5357\uff0c\u4ee5\u83b7\u53d6\u6709\u5173\u5982\u4f55\u63a2\u7d22\u7f51\u7edc\u7684\u63d0\u793a\u3002<\/p>\n

\u7f51\u7edc\u7535\u7f06<\/strong><\/div>\n

\u8fd9\u542c\u8d77\u6765\u5f88\u666e\u901a\uff0c\u4f46\u662f\u719f\u6089\u7f51\u7edc\u7535\u7f06\u7684\u5de5\u4f5c\u65b9\u5f0f\u4e0d\u4ec5\u4f7f\u4f60\u7684\u5468\u672b\u53d8\u5f97\u975e\u5e38\u6709\u8da3\uff0c\u800c\u4e14\u8fd8\u4f7f\u4f60\u5bf9\u6570\u636e\u662f\u5982\u4f55\u901a\u8fc7\u7f06\u7ebf\u7684\u5f97\u5230\u4e86\u5168\u65b0\u7684\u4e86\u89e3\u3002\u6700\u597d\u7684\u5b66\u4e60\u65b9\u6cd5\u662f\u53bb\u5f53\u5730\u7684\u4e1a\u4f59\u7231\u597d\u5546\u5e97\u5e76\u8d2d\u4e70\u4e94\u7c7b\u7ebf\u5265\u7ebf\u94b3\u548c\u538b\u7ebf\u94b3\u4ee5\u53ca\u4e00\u4e9b\u4e94\u7c7b\u7ebf\u6c34\u6676\u5934\u3002\u7136\u540e\u56de\u5bb6\uff0c\u62ff\u4e00\u6839\u5907\u7528\u7684\u4ee5\u592a\u7f51\u7535\u7f06\uff0c\u5207\u65ad\u6c34\u6676\u5934\uff0c\u82b1\u4e00\u4e9b\u65f6\u95f4\u91cd\u65b0\u5236\u4f5c\u7f51\u7ebf\u63a5\u5934\uff0c\u5c06\u7535\u7f06\u91cd\u65b0\u6295\u5165\u4f7f\u7528\u3002<\/p>\n

\u89e3\u51b3\u4e86\u8fd9\u4e2a\u96be\u9898\u540e\uff0c\u8bf7\u518d\u505a\u4e00\u6b21\uff0c\u8fd9\u6b21\u521b\u5efa\u4e00\u6761\u6709\u6548\u7684\u4ea4\u53c9\u7535\u7f06\u3002<\/p>\n

\u4f60\u73b0\u5728\u5e94\u8be5\u8fd8\u5728\u6c89\u8ff7\u4e8e\u6709\u5173\u7535\u7f06\u7ba1\u7406\u3002\u5982\u679c\u4f60\u6709\u4e9b\u5f3a\u8feb\u75c7\uff0c\u559c\u6b22\u6cbf\u7740\u5730\u677f\u7ebf\u6216\u684c\u5b50\u7684\u8fb9\u7f18\u6574\u9f50\u5730\u6392\u5217\u7535\u7f06\uff0c\u6216\u8005\u5c06\u7535\u7f06\u7ed1\u5728\u4e00\u8d77\u4ee5\u4fdd\u6301\u5b83\u4eec\u7684\u6574\u9f50\u6709\u5e8f\uff0c\u90a3\u4e48\u5c31\u53ef\u4ee5\u4f7f\u81ea\u5df1\u514d\u53d7\u6c38\u4e45\u6df7\u4e71\u7684\u7535\u7f06\u56f0\u6270\u3002\u4f60\u4e00\u5f00\u59cb\u53ef\u80fd\u4e0d\u4f1a\u7406\u89e3\u8fd9\u6837\u505a\u7684\u5fc5\u8981\u6027\uff0c\u4f46\u662f\u5f53\u4f60\u7b2c\u4e00\u6b21\u8d70\u8fdb\u670d\u52a1\u5668\u673a\u623f\u65f6\uff0c\u4f60\u4f1a\u9a6c\u4e0a\u77e5\u9053\u539f\u56e0\u3002<\/p>\n

Ansible<\/strong><\/div>\n

Ansible \u662f\u914d\u7f6e\u7ba1\u7406\u8f6f\u4ef6\uff0c\u5b83\u5728\u7cfb\u7edf\u7ba1\u7406\u5458\u548c DevOps \u4e4b\u95f4\u67b6\u8d77\u4e86\u4e00\u5ea7\u6865\u6881\u3002\u7cfb\u7edf\u7ba1\u7406\u5458\u4f7f\u7528 Ansible \u6765\u914d\u7f6e\u5168\u65b0\u5b89\u88c5\u7684\u64cd\u4f5c\u7cfb\u7edf\u5e76\u5728\u8ba1\u7b97\u673a\u4e0a\u7ef4\u62a4\u7279\u5b9a\u7684\u72b6\u6001\u3002DevOps \u4f7f\u7528 Ansible \u51cf\u5c11\u4e86\u5728\u5de5\u5177\u4e0a\u82b1\u8d39\u7684\u65f6\u95f4\u548c\u7cbe\u529b\uff0c\u4ece\u800c\u5728\u5f00\u53d1\u4e0a\u53ef\u4ee5\u82b1\u8d39\u66f4\u591a\u7684\u65f6\u95f4\u548c\u7cbe\u529b\u3002\u4f5c\u4e3a\u7cfb\u7edf\u7ba1\u7406\u5458\u57f9\u8bad\u7684\u4e00\u90e8\u5206\uff0c\u4f60\u5e94\u8be5\u5b66\u4e60 Ansible\uff0c\u5e76\u7740\u773c\u4e8e DevOps \u5b9e\u8df5\uff0c\u56e0\u4e3a DevOps \u73b0\u5728\u5f00\u521b\u7684\u5927\u591a\u6570\u529f\u80fd\u5c06\u6700\u7ec8\u6210\u4e3a\u5c06\u6765\u7cfb\u7edf\u7ba1\u7406\u4e2d\u5de5\u4f5c\u6d41\u7684\u4e00\u90e8\u5206\u3002<\/p>\n

Ansible \u7684\u597d\u5904\u662f\u4f60\u53ef\u4ee5\u7acb\u5373\u5f00\u59cb\u4f7f\u7528\u5b83\u3002\u5b83\u662f\u8de8\u5e73\u53f0\u7684\uff0c\u5e76\u4e14\u53ef\u4ee5\u5411\u4e0a\u548c\u5411\u4e0b\u7f29\u653e\u3002\u5bf9\u4e8e\u5355\u7528\u6237\u8ba1\u7b97\u673a\uff0c Ansible \u53ef\u80fd\u662f\u5c0f\u9898\u5927\u505a\uff0c\u4f46\u662f\u8bdd\u53c8\u8bf4\u56de\u6765\uff0cAnsible \u53ef\u80fd\u4f1a\u6539\u53d8\u4f60\u542f\u52a8\u865a\u62df\u673a\u7684\u65b9\u5f0f\uff0c\u6216\u8005\u53ef\u4ee5\u5e2e\u52a9\u4f60\u540c\u6b65\u5bb6\u5ead\u6216\u5bb6\u5ead\u5b9e\u9a8c\u5ba4\u4e2d\u6240\u6709\u8ba1\u7b97\u673a\u7684\u72b6\u6001\u3002<\/p>\n

\u8d44\u6e90<\/strong><\/span><\/div>\n

\u9605\u8bfb Jay LaCroix \u7684\u5982\u4f55\u4f7f\u7528 Ansible \u7ba1\u7406\u5de5\u4f5c\u7ad9\u914d\u7f6e\u4e2d\u7684\u5178\u578b\u4ecb\u7ecd\uff0c\u4ee5\u8f7b\u677e\u5730\u5728\u65e5\u5e38\u4e4b\u4e2d\u5f00\u59cb\u4f7f\u7528 Ansible\u3002<\/p>\n

\u7834\u574f<\/strong><\/div>\n

\u7531\u4e8e\u7528\u6237\u7684\u9519\u8bef\u3001\u8f6f\u4ef6\u7684\u9519\u8bef\u3001\u7ba1\u7406\u5458\uff08\u5c31\u662f\u4f60\uff01\uff09\u7684\u9519\u8bef\u4ee5\u53ca\u8bb8\u591a\u5176\u4ed6\u56e0\u7d20\uff0c\u8ba1\u7b97\u673a\u4e0a\u4f1a\u51fa\u73b0\u95ee\u9898\u3002\u65e0\u6cd5\u9884\u6d4b\u5c06\u8981\u5931\u8d25\u7684\u539f\u56e0\uff0c\u56e0\u6b64\u4f60\u7684\u4e2a\u4eba\u7cfb\u7edf\u7ba1\u7406\u5458\u57f9\u8bad\u5236\u5ea6\u7684\u4e00\u90e8\u5206\u5e94\u8be5\u662f\u7834\u574f\u4f60\u8bbe\u7f6e\u7684\u7cfb\u7edf\uff0c\u76f4\u5230\u5b83\u4eec\u5931\u8d25\u4e3a\u6b62\u3002\u4f60\u81ea\u5df1\u7684\u5b9e\u9a8c\u5ba4\u57fa\u7840\u8bbe\u65bd\u8d8a\u662f\u8106\u5f31\uff0c\u53d1\u73b0\u5f31\u70b9\u7684\u53ef\u80fd\u6027\u5c31\u8d8a\u5927\u3002\u800c\u4e14\uff0c\u4f60\u8d8a\u662f\u7ecf\u5e38\u4fee\u590d\u8fd9\u4e9b\u5f31\u70b9\uff0c\u4f60\u5bf9\u89e3\u51b3\u95ee\u9898\u7684\u80fd\u529b\u5c31\u8d8a\u6709\u4fe1\u5fc3\u3002<\/p>\n

\u9664\u4e86\u4e25\u683c\u8bbe\u7f6e\u6240\u6709\u5e38\u89c1\u7684\u8f6f\u4ef6\u548c\u786c\u4ef6\u4e4b\u5916\uff0c\u4f5c\u4e3a\u7cfb\u7edf\u7ba1\u7406\u5458\u7684\u4e3b\u8981\u5de5\u4f5c\u662f\u67e5\u627e\u89e3\u51b3\u65b9\u6848\u3002\u6709\u65f6\u5019\uff0c\u4f60\u53ef\u80fd\u4f1a\u9047\u5230\u804c\u4f4d\u63cf\u8ff0\u4e4b\u5916\u7684\u95ee\u9898\uff0c\u751a\u81f3\u53ef\u80fd\u65e0\u6cd5\u89e3\u51b3\uff0c\u4f46\u8fd9\u5b8c\u5168\u53d6\u51b3\u4e8e\u4f60\u7684\u89e3\u51b3\u65b9\u6cd5\u3002<\/p>\n

\u73b0\u5728\uff0c\u4f60\u8d8a\u591a\u5730\u6298\u817e\u5e76\u52aa\u529b\u52a0\u4ee5\u89e3\u51b3\uff0c\u5219\u4ee5\u7cfb\u7edf\u7ba1\u7406\u5458\u7684\u8eab\u4efd\u8fdb\u884c\u7684\u51c6\u5907\u5c31\u8d8a\u5145\u5206\u3002<\/p>\n

\u4f60\u662f\u7cfb\u7edf\u7ba1\u7406\u5458\u5417\uff1f\u4f60\u662f\u5426\u5e0c\u671b\u81ea\u5df1\u4e3a\u66f4\u597d\u7684\u4efb\u52a1\u505a\u597d\u51c6\u5907\uff1f\u5728\u4e0b\u9762\u7684\u8bc4\u8bba\u4e2d\u5199\u4e0b\u5b83\u4eec\uff01<\/p>\n


\n

via:\u00a0https:\/\/opensource.com\/article\/19\/7\/be-a-sysadmin<\/a><\/p>\n

\u4f5c\u8005\uff1aSeth Kenlon<\/a>\u00a0\u9009\u9898\uff1alujun9972<\/a>\u00a0\u8bd1\u8005\uff1awxy<\/a>\u00a0\u6821\u5bf9\uff1awxy<\/a><\/p>\n

\u672c\u6587\u7531\u00a0LCTT<\/a>\u00a0\u539f\u521b\u7f16\u8bd1\uff0cLinux\u4e2d\u56fd<\/a>\u00a0\u8363\u8a89\u63a8\u51fa<\/p>\n","protected":false},"excerpt":{"rendered":"

\u4ee5\u5916\u884c\u4eba\u6765\u770b\uff0c\u5f88\u96be\u51c6\u786e\u786e\u5b9a\u7cfb\u7edf\u7ba1\u7406\u5458\u7684\u786e\u5207\u804c\u80fd\uff0c\u56e0\u4e3a\u4ed6\u4eec\u5728\u8bb8\u591a\u5730\u65b9\u90fd\u626e\u6f14\u7740\u4e00\u4e2a\u4e0d\u8d77\u773c\u7684\u89d2\u8272\u3002\u6ca1\u4eba\u80fd\u5728\u57f9\u8bad\u4e2d\u77e5\u9053 […]<\/p>\n","protected":false},"author":1890,"featured_media":165336,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-165335","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/165335","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\/1890"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=165335"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/165335\/revisions"}],"predecessor-version":[{"id":165381,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/165335\/revisions\/165381"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/165336"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=165335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=165335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=165335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}