{"id":14169,"date":"2025-04-18T20:58:09","date_gmt":"2025-04-18T12:58:09","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/14169.html"},"modified":"2025-04-18T20:58:09","modified_gmt":"2025-04-18T12:58:09","slug":"%e8%87%aa%e5%8a%a8%e5%8c%96%e5%a4%87%e4%bb%bd%e5%85%a8%e7%bd%91%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%95%b0%e6%8d%ae%e5%b9%b3%e5%8f%b0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/14169.html","title":{"rendered":"\u81ea\u52a8\u5316\u5907\u4efd\u5168\u7f51\u670d\u52a1\u5668\u6570\u636e\u5e73\u53f0"},"content":{"rendered":"<h3>1.\u9879\u76ee\u8bf4\u660e<\/h3>\n<h4>1.1\u6982\u8ff0<\/h4>\n<ul>\n<li>\n<p>\u8be5\u9879\u76ee\u5171\u5206\u4e3a2\u4e2a\u5b50\u9879\u76ee&#xff0c;\u7531\u73af\u5883\u642d\u5efa\u548c\u5b9e\u65bd\u5907\u4efd\u4e24\u90e8\u5206\u7ec4\u6210<\/p>\n<\/li>\n<li>\n<p>\u8be5\u9879\u76ee\u65e8\u5728\u590d\u4e60\u5de9\u56fa\u7cfb\u7edf\u670d\u52a1\u90e8\u7f72\u4f7f\u7528\u3001shell\u7f16\u7a0b\u7b49\u77e5\u8bc6&#xff0c;\u65e8\u5728\u8ba9\u5b66\u751f\u589e\u52a0\u77e5\u8bc6\u9762&#xff0c;\u63d0\u9ad8\u9879\u76ee\u5b9e\u4e60\u7ecf\u5386&#xff0c;\u5145\u5b9e\u7b80\u5386<\/p>\n<\/li>\n<\/ul>\n<h4>1.2\u9879\u76ee\u7ec4\u7ec7\u65b9\u5f0f\u53ca\u65f6\u95f4<\/h4>\n<ul>\n<li>\n<p>\u65f6\u95f4&#xff1a;\u5efa\u8bae\u4e00\u5468\u5185\u5b8c\u6210\u6240\u6709\u7684\u9879\u76ee\u642d\u5efa\u3001\u538b\u529b\u6d4b\u8bd5\u3001\u95ee\u9898\u603b\u7ed3<\/p>\n<\/li>\n<li>\n<p>\u65b9\u5f0f&#xff1a;\u901a\u8fc7VmWare17\u865a\u62df\u673a\u5b9e\u73b0\u5e73\u53f0\u642d\u5efa<\/p>\n<\/li>\n<li>\n<p>\u4eba\u6570&#xff1a;3\u4eba\u5c0f\u7ec4<\/p>\n<\/li>\n<\/ul>\n<h3>2.\u9879\u76ee\u80cc\u666f\u77e5\u8bc6<\/h3>\n<h4>2.1\u603b\u4f53\u9700\u6c42<\/h4>\n<ul>\n<li>\n<p>\u67d0\u4f01\u4e1a\u91cc\u6709\u4e00\u53f0Web\u670d\u52a1\u5668&#xff0c;\u91cc\u9762\u7684\u6570\u636e\u5f88\u91cd\u8981&#xff0c;\u4f46\u662f\u5982\u679c\u786c\u76d8\u574f\u4e86\u6570\u636e\u5c31\u4f1a\u4e22\u5931&#xff0c;\u73b0\u5728\u9886\u5bfc\u8981\u6c42\u628a\u6570\u636e\u505a\u5907\u4efd&#xff0c;\u8fd9\u6837Web\u670d\u52a1\u5668\u6570\u636e\u4e22\u5931\u5728\u53ef\u4ee5\u8fdb\u884c\u6062\u590d<\/p>\n<\/li>\n<li>\n<p>\u8981\u6c42\u5982\u4e0b&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u6bcf\u592900\u70b9\u6574\u5728Web\u670d\u52a1\u5668\u4e0a\u6309\u65e5\u671f\u6253\u5305\u5907\u4efd\u7cfb\u7edf\u914d\u7f6e\u6587\u4ef6\u3001\u7f51\u7ad9\u7a0b\u5e8f\u76ee\u5f55\u53ca\u8bbf\u95ee\u65e5\u5fd7\u6587\u4ef6<\/p>\n<\/li>\n<li>\n<p>\u901a\u8fc7rsync\u547d\u4ee4\u63a8\u9001\u5230\u5907\u4efd\u670d\u52a1\u5668\u4e0a\u4fdd\u5b58<\/p>\n<\/li>\n<li>\n<p>\u5907\u4efd\u670d\u52a1\u5668\u5b9a\u65f6\u6e05\u9664\u65e7\u8bb0\u5f55<\/p>\n<\/li>\n<li>\n<p>\u642d\u5efa\u90ae\u4ef6\u544a\u8b66\u5e73\u53f0<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>2.2\u5907\u4efd\u9700\u6c42<\/h4>\n<ul>\n<li>\n<p>\u6240\u6709\u670d\u52a1\u5668\u7684\u5907\u4efd\u76ee\u5f55\u5fc5\u987b\u90fd\u4e3a\/backup\u3002<\/p>\n<\/li>\n<li>\n<p>\u8981\u5907\u4efd\u7684\u7cfb\u7edf\u914d\u7f6e\u6587\u4ef6\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u5b9a\u65f6\u4efb\u52a1\u670d\u52a1\u7684\u914d\u7f6e\u6587\u4ef6&#xff08;\/var\/spool\/cron\/root&#xff09; &#xff08;\u9002\u5408Web\u548cNFS\u670d\u52a1\u5668&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u5f00\u673a\u81ea\u542f\u52a8\u7684\u914d\u7f6e\u6587\u4ef6&#xff08;\/etc\/rc.local&#xff09; &#xff08;\u9002\u5408Web\u548cNFS\u670d\u52a1\u5668&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u65e5\u5e38\u811a\u672c\u7684\u76ee\u5f55 &#xff08;\/server\/scripts&#xff09;\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li>\n<p>Web\u670d\u52a1\u5668\u8981\u6c42<\/p>\n<ul>\n<li>\n<p>Web\u7ad9\u70b9\u76ee\u5f55\u5047\u5b9a\u4e3a\/var\/html\/www&#xff0c;\u5982\u679c\u6ca1\u6709&#xff0c;\u53ef\u4ee5\u5148\u6a21\u62df\u521b\u5efa\u3002<\/p>\n<\/li>\n<li>\n<p>Web\u670d\u52a1\u5668\u8bbf\u95ee\u65e5\u5fd7\u8def\u5f84\u5047\u5b9a\u4e3a\/app\/logs&#xff0c;\u5982\u679c\u6ca1\u6709&#xff0c;\u53ef\u4ee5\u5148\u6a21\u62df\u521b\u5efa\u3002<\/p>\n<\/li>\n<li>\n<p>Web\u670d\u52a1\u5668\u672c\u5730\u4fdd\u7559\u6253\u5305\u540e\u76847\u5929\u5907\u4efd\u6570\u636e\u5373\u53ef&#xff08;\u672c\u5730\u7559\u5b58\u4e0d\u80fd\u591a\u4e8e7\u5929&#xff0c;\u56e0\u4e3a\u6570\u636e\u592a\u591a\u786c\u76d8\u4f1a\u6ee1&#xff09;\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5907\u4efd\u670d\u52a1\u5668\u8981\u6c42<\/p>\n<ul>\n<li>\n<p>\u4fdd\u7559\u6700\u8fd17\u5929\u6240\u6709\u5907\u4efd\u6570\u636e&#xff0c;\u4fdd\u75596\u4e2a\u6708\u5185\u6bcf\u5468\u4e00\u7684\u6240\u6709\u6570\u636e\u526f\u672c\u3002<\/p>\n<\/li>\n<li>\n<p>\u8981\u6309\u7167\u5907\u4efd\u6570\u636e\u670d\u52a1\u5668\u5185\u7f51IP\u4e3a\u76ee\u5f55\u540d\u79f0&#xff0c;\u5907\u4efd\u7684\u6587\u4ef6\u6309\u7167\u65f6\u95f4\u3001\u540d\u79f0\u4e3a\u6587\u4ef6\u540d\u79f0\u3002<\/p>\n<\/li>\n<li>\n<p>\u9700\u8981\u786e\u4fdd\u5907\u4efd\u7684\u6570\u636e\u5c3d\u91cf\u5b8c\u6574\u51c6\u786e&#xff0c;\u5728\u5907\u4efd\u670d\u52a1\u5668\u4e0a\u5bf9\u5907\u4efd\u7684\u6570\u636e\u662f\u5426\u5b8c\u6574\u8fdb\u884c\u68c0\u67e5\u3002<\/p>\n<\/li>\n<li>\n<p>\u5907\u4efd\u670d\u52a1\u5668\u6bcf\u5929\u65e9\u66688:00\u628a\u5907\u4efd\u6210\u529f\u6216\u5931\u8d25\u7ed3\u679c\u4fe1\u606f\u53d1\u9001\u5230\u7cfb\u7edf\u7ba1\u7406\u5458\u90ae\u7bb1\u91cc\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<table>\n<tr>\u670d\u52a1\u5668\u8bf4\u660e\u5907\u4efd\u76ee\u5f55\u76ee\u5f55\u8bf4\u660e\u5907\u6ce8<\/tr>\n<tbody>\n<tr>\n<td>all server<\/td>\n<td>\/backup<\/td>\n<td>\u5907\u4efd\u76ee\u5f55<\/td>\n<td>\u7edf\u4e00\u670d\u52a1\u5668\u672c\u5730\u5907\u4efd\u76ee\u5f55&#xff0c;\u4fbf\u4e8e\u7ba1\u7406<\/td>\n<\/tr>\n<tr>\n<td>all server<\/td>\n<td>\/var\/spool\/cron\/root<\/td>\n<td>\u5b9a\u65f6\u4efb\u52a1\u670d\u52a1\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>\u7cfb\u7edf\u914d\u7f6e\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>all server<\/td>\n<td>\/etc\/rc.local<\/td>\n<td>\u5f00\u673a\u81ea\u542f\u52a8\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>\u7cfb\u7edf\u914d\u7f6e\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>all server<\/td>\n<td>\/server\/scripts<\/td>\n<td>\u65e5\u5e38\u811a\u672c\u76ee\u5f55<\/td>\n<td>\u7edf\u4e00\u670d\u52a1\u5668\u672c\u5730\u811a\u672c\u76ee\u5f55&#xff0c;\u4fbf\u4e8e\u7ba1\u7406<\/td>\n<\/tr>\n<tr>\n<td>Web server<\/td>\n<td>\/var\/www\/html<\/td>\n<td>web\u670d\u52a1\u5668\u7ad9\u70b9\u76ee\u5f55<\/td>\n<td>mkdir -p \/var\/www\/html<\/td>\n<\/tr>\n<tr>\n<td>Web server<\/td>\n<td>\/app\/logs<\/td>\n<td>web\u670d\u52a1\u5668\u8bbf\u95ee\u65e5\u5fd7\u8def\u5f84<\/td>\n<td>mkdir -p \/app\/logs<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>3.Rsync\u6982\u8ff0<\/h4>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"image-20250219093048093\" height=\"668\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125800-68024c58b9d02.png\" width=\"927\" \/><\/p>\n<h5>3.1\u4f5c\u7528&#xff1a;<\/h5>\n<ul>\n<li>\n<p>rsync&#xff1a;remote sync(\u8fdc\u7a0b\u540c\u6b65)&#xff0c;\u662f\u4e00\u4e2a\u5728 Linux \u548c\u5176\u4ed6 Unix-like \u7cfb\u7edf\u4e0a\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u7684\u547d\u4ee4\u884c\u5de5\u5177&#xff0c;\u7528\u4e8e\u8ba1\u7b97\u673a\u4e4b\u95f4\u8fdb\u884c\u6570\u636e\u540c\u6b65&#xff0c;\u53ef\u4ee5\u5f53\u505a\u6587\u4ef6\u590d\u5236\u5de5\u5177&#xff0c;\u66ff\u4ee3cp\u548cmv\u547d\u4ee4&#xff0c;\u4e3b\u9875&#xff1a;https:\/\/rsync.samba.org\/<\/p>\n<\/li>\n<\/ul>\n<h5>3.2\u7279\u70b9<\/h5>\n<ul>\n<li>\n<p>\u540c\u6b65\u901f\u5ea6\u5feb&#xff1a;\u7531\u4e8e\u4f7f\u7528sync\u7b97\u6cd5&#xff0c;\u5176\u53ea\u4f20\u9001\u4e24\u4e2a\u6587\u4ef6\u7684\u4e0d\u540c\u90e8\u5206&#xff0c;\u800c\u4e0d\u662f\u6bcf\u6b21\u90fd\u6574\u4efd\u4f20\u9001&#xff0c;\u56e0\u6b64\u901f\u5ea6\u76f8\u5f53\u5feb\u3002<\/p>\n<\/li>\n<li>\n<p>\u53ef\u4ee5\u955c\u50cf\u4fdd\u5b58\u6574\u4e2a\u76ee\u5f55\u6811\u548c\u6587\u4ef6\u7cfb\u7edf<\/p>\n<\/li>\n<li>\n<p>\u53ef\u4ee5\u5f88\u5bb9\u6613\u505a\u5230\u4fdd\u6301\u539f\u6765\u6587\u4ef6\u7684\u6743\u9650\u3001\u65f6\u95f4\u3001\u8f6f\u786c\u94fe\u63a5\u7b49<\/p>\n<\/li>\n<li>\n<p>\u65e0\u987b\u7279\u6b8a\u6743\u9650\u5373\u53ef\u5b89\u88c5<\/p>\n<\/li>\n<li>\n<p>\u4f18\u5316\u7684\u6d41\u7a0b&#xff0c;\u6587\u4ef6\u4f20\u8f93\u6548\u7387\u9ad8<\/p>\n<\/li>\n<li>\n<p>\u53ef\u4ee5\u4f7f\u7528rsh\u3001ssh\u7b49\u65b9\u5f0f\u6765\u4f20\u8f93\u6587\u4ef6&#xff0c;\u5f53\u7136\u4e5f\u53ef\u4ee5\u901a\u8fc7\u76f4\u63a5\u7684socket\u8fde\u63a5<\/p>\n<\/li>\n<li>\n<p>\u652f\u6301\u533f\u540d\u4f20\u8f93\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u8bed\u6cd5<\/p>\n<p>\u00a0 \u00a0\u6807\u51c6\u7ed3\u6784<\/p>\n<p>rsync [\u9009\u9879] \u6e90\u76ee\u5f55\/\u6587\u4ef6 \u76ee\u6807\u76ee\u5f55\/\u6587\u4ef6<\/p>\n<p>-a, &#8211;archive&#xff1a;\u5f52\u6863\u6a21\u5f0f&#xff0c;\u4fdd\u7559\u6240\u6709\u6587\u4ef6\u5c5e\u6027\u3002<br \/>\n-v, &#8211;verbose&#xff1a;\u8be6\u7ec6\u8f93\u51fa\u3002<br \/>\n-r, &#8211;recursive&#xff1a;\u9012\u5f52\u5730\u540c\u6b65\u76ee\u5f55\u3002<br \/>\n-z, &#8211;compress&#xff1a;\u4f7f\u7528\u538b\u7f29\u4f20\u8f93\u6570\u636e&#xff0c;\u53ef\u4ee5\u51cf\u5c11\u7f51\u7edc\u5e26\u5bbd\u3002<br \/>\n-e, &#8211;rsh&#061;COMMAND&#xff1a;\u6307\u5b9a\u8fdc\u7a0b shell \u7a0b\u5e8f&#xff08;\u4f8b\u5982 SSH&#xff09;\u3002<br \/>\n&#8211;delete&#xff1a;\u5220\u9664\u76ee\u6807\u4e2d\u4e0d\u5728\u6e90\u4e2d\u7684\u6587\u4ef6\u3002<br \/>\n&#8211;exclude&#061;PATTERN&#xff1a;\u6392\u9664\u7b26\u5408\u6307\u5b9a\u6a21\u5f0f\u7684\u6587\u4ef6\u6216\u76ee\u5f55\u3002 <\/p>\n<p>\u672c\u5730\u540c\u6b65<\/p>\n<p>rsync -a source destination<\/p>\n<p># -a\u5305\u542b-r\u7684\u9012\u5f52\u529f\u80fd\u540c\u65f6\u53ef\u4ee5\u540c\u6b65\u4fee\u6539\u65f6\u95f4\u3001\u6743\u9650\u7b49\u5143\u4fe1\u606f&#xff0c;\u5e38\u7528 <\/p>\n<p>\u8fdc\u7a0b\u540c\u6b65<\/p>\n<p># \u9ed8\u8ba4\u4f7f\u7528ssh\u534f\u8bae\u4f20\u8f93<\/p>\n<p>rsync  -av  source\/  username&#064;remote_host:destination # \u672c\u5730\u5185\u5bb9\u540c\u6b65\u5230\u8fdc\u7a0b\u5373\u63a8\u9001<\/p>\n<p>rsync  -av  username&#064;remote_host:source\/  destination # \u8fdc\u7a0b\u5185\u5bb9\u540c\u6b65\u5230\u672c\u5730\u5373\u62c9\u53d6<br \/>\n# \u82e5\u4e24\u7aef\u90fd\u6709rsync\u8fdb\u7a0b&#xff0c;\u53ef\u4ee5\u4f7f\u7528rsync\u534f\u8bae\u4f20\u8f93<br \/>\nrsync  -av  source\/  192.168.122.32::module\/destination      # \u67092\u4e2a\u5192\u53f7 <\/p>\n<p>\u589e\u91cf\u5907\u4efd<\/p>\n<p># \u53ea\u590d\u5236\u53d8\u52a8\u7684\u5185\u5bb9<\/p>\n<p>rsync  -a  &#8211;delete  &#8211;link-dest  \/compare\/path  \/source\/path  \/target\/path<\/p>\n<p># \u5206\u6790<br \/>\n# &#8211;link-dest\u53c2\u6570\u6307\u5b9a\u57fa\u51c6\u76ee\u5f55\/compare\/path<br \/>\n# \u6e90\u76ee\u5f55\/source\/path\u8ddf\u57fa\u51c6\u76ee\u5f55\u8fdb\u884c\u6bd4\u8f83<br \/>\n# \u4e4b\u540e\u627e\u51fa\u53d8\u52a8\u7684\u6587\u4ef6&#xff0c;\u5c06\u5176\u62f7\u8d1d\u5230\u76ee\u6807\u76ee\u5f55\/target\/path&#xff0c;\u672a\u53d8\u52a8\u7684\u6587\u4ef6\u4f1a\u751f\u6210\u786c\u94fe\u63a5\u3002<br \/>\n# \u8be5\u547d\u4ee4\u7684\u7b2c\u4e00\u6b21\u5907\u4efd\u65f6\u4e3a\u5168\u91cf\u5907\u4efd&#xff0c;\u4e4b\u540e\u4e3a\u589e\u91cf\u5907\u4efd <\/p>\n<h3>3.\u9879\u76ee\u73af\u5883<\/h3>\n<h4>3.1\u9879\u76ee\u62d3\u6251\u7ed3\u6784<\/h4>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"image-20250219090920275\" height=\"890\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125801-68024c5909f66.png\" width=\"1359\" \/><\/p>\n<h4>3.2\u8f6f\u786c\u4ef6\u73af\u5883\u6e05\u5355<\/h4>\n<ul>\n<li>\n<p>\u5df2\u77e53\u53f0\u670d\u52a1\u5668\u4e3b\u673a\u540d\u5206\u522b\u4e3aweb01\u3001backup\u3001nfs01&#xff0c;\u4e3b\u673a\u4fe1\u606f\u5efa\u4e0b\u8868\u3002<\/p>\n<\/li>\n<\/ul>\n<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"width:500px\">\n<tbody>\n<tr>\n<td>\u4e3b\u673a\u540d<\/td>\n<td>IP\u5730\u5740<\/td>\n<td>\u786c\u4ef6<\/td>\n<td>\u8f6f\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>web01<\/td>\n<td>192.168.208.200<\/td>\n<td>\n<p>cpu:1\u98972\u6838<\/p>\n<p>\u5185 \u5b58&#xff1a;2GB<\/p>\n<p>HDD&#xff1a;20GB<\/p>\n<p>\u7f51 \u7edc&#xff1a;NAT<\/p>\n<\/td>\n<td>\n<p>VmWare17<\/p>\n<p>Centos7.9<\/p>\n<p>nginx1.20<\/p>\n<p>rsync3.1.2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>nfs01<\/td>\n<td>192.168.208.201<\/td>\n<td>\n<p>cpu:1\u98972\u6838<\/p>\n<p>\u5185 \u5b58&#xff1a;2GB<\/p>\n<p>HDD&#xff1a;20GB<\/p>\n<p>\u7f51 \u7edc&#xff1a;NAT<\/p>\n<\/td>\n<td>\n<p>VmWare17<\/p>\n<p>Centos7.9<\/p>\n<p>nfs rpcbind<\/p>\n<p>rsync3.1.2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>backup<\/td>\n<td>192.168.208.202<\/td>\n<td>\n<p>cpu:1\u98972\u6838<\/p>\n<p>\u5185 \u5b58&#xff1a;2GB<\/p>\n<p>HDD&#xff1a;20GB<\/p>\n<p>\u7f51 \u7edc&#xff1a;NAT<\/p>\n<\/td>\n<td>\n<p>VmWare17<\/p>\n<p>Centos7.9<\/p>\n<p>mailx12.5<\/p>\n<p>rsync3.1.2<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Centos7.9\u7684iso\u4e0b\u8f7d\u94fe\u63a5&#xff1a;https:\/\/mirrors.aliyun.com\/centos\/7.9.2009\/isos\/x86_64\/CentOS-7-x86_64-DVD-2207-02.iso<\/p>\n<h3>4.\u4efb\u52a1\u6e05\u5355<\/h3>\n<h4>4.1\u9879\u76ee\u73af\u5883\u642d\u5efa<\/h4>\n<ul>\n<li>\n<p>\u53ef\u4ee5\u4f7f\u7528iventoy\u7f51\u542f\u5b89\u88c53\u53f0centos7.9\u670d\u52a1\u5668<\/p>\n<\/li>\n<li>\n<p>\u6309\u7167\u89c4\u5212&#xff0c;\u6700\u5c0f\u5316\u90e8\u7f72\u7cfb\u7edf&#xff0c;\u5173\u95ed\u9632\u706b\u5899&#xff0c;\u7981\u7528SELinux&#xff0c;\u786e\u4fdd\u80fd\u591f\u8054\u7f51\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>4.2\u670d\u52a1\u5668\u90e8\u7f72<\/h4>\n<h5>4.2.1Web\u670d\u52a1\u5668\u642d\u5efa\u90e8\u7f72<\/h5>\n<ul>\n<li>\n<p>\u9a8c\u8bc1Rsync\u670d\u52a1\u80fd\u5426\u63a8\u9001\u6210\u529f\u3002<\/p>\n<\/li>\n<li>\n<p>\u5f00\u53d1\u811a\u672c\u5b9e\u73b0\u6253\u5305\u5907\u4efd\u3001\u63a8\u9001\u3001\u6821\u9a8c\u3001\u5220\u9664\u3002<\/p>\n<\/li>\n<li>\n<p>\u914d\u7f6e\u5b9a\u65f6\u4efb\u52a1\u6bcf\u59290\u70b9\u5b9a\u65f6\u63a8\u9001&#xff08;0\u65f6\u662f\u65f6\u95f4\u7684\u4e00\u4e2a\u5206\u5272\u70b9&#xff09;\u3002<\/p>\n<\/li>\n<\/ul>\n<h5>4.2.2NFS\u670d\u52a1\u5668\u642d\u5efa\u90e8\u7f72<\/h5>\n<ul>\n<li>\n<p>\u9a8c\u8bc1Rsync\u670d\u52a1\u80fd\u5426\u63a8\u9001\u6210\u529f\u3002<\/p>\n<\/li>\n<li>\n<p>\u5f00\u53d1\u811a\u672c\u5b9e\u73b0\u6253\u5305\u5907\u4efd\u3001\u63a8\u9001\u3001\u6821\u9a8c\u3001\u5220\u9664\u3002<\/p>\n<\/li>\n<li>\n<p>\u914d\u7f6e\u5b9a\u65f6\u4efb\u52a1\u6bcf\u59290\u70b9\u5b9a\u65f6\u63a8\u9001&#xff08;0\u65f6\u662f\u65f6\u95f4\u7684\u4e00\u4e2a\u5206\u9694\u70b9&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u914d\u7f6e\u811a\u672c\u548cweb\u670d\u52a1\u5668\u7c7b\u4f3c&#xff0c;\u8fc7\u7a0b\u7565\u3002<\/p>\n<\/li>\n<\/ul>\n<h5>4.2.3\u642d\u5efa\u5907\u4efd\u670d\u52a1\u5668<\/h5>\n<ul>\n<li>\n<p>rsync\u670d\u52a1\u5668\u642d\u5efa\u90e8\u7f72\u3002<\/p>\n<\/li>\n<li>\n<p>\u5f00\u53d1\u811a\u672c\u5b9e\u73b0\u6821\u9a8c\u3001\u5220\u9664\u3001\u62a5\u8b66\u3002<\/p>\n<\/li>\n<li>\n<p>\u914d\u7f6e\u5b9e\u65f6\u4efb\u52a1\u6bcf\u59296\u70b9\u5b9e\u65f6\u6267\u884c\u3002<\/p>\n<\/li>\n<li>\n<p>\u914d\u7f6e\u544a\u8b66\u90ae\u4ef6\u53d1\u9001\u5e73\u53f0<\/p>\n<\/li>\n<\/ul>\n<h3>5.\u5b9e\u65bd\u6b65\u9aa4<\/h3>\n<h4>5.1\u73af\u5883\u642d\u5efa<\/h4>\n<h5>5.1.1web01\u670d\u52a1\u5668\u73af\u5883\u642d\u5efa<\/h5>\n<ul>\n<li>\n<p>\u5b89\u88c5Centos7.9\u7cfb\u7edf&#xff0c;\u66ff\u6362yum\u6e90&#xff0c;\u8fde\u63a5xshell<\/p>\n<\/li>\n<li>\n<p>\u5173\u95ed\u9632\u706b\u5899\u548cselinux&#xff0c;\u8bbe\u7f6e\u4e3b\u673a\u540d<\/p>\n<\/li>\n<li>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"813\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125801-68024c597aec1.png\" width=\"996\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"63\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125801-68024c59b4b1d.png\" width=\"1023\" \/><\/p>\n<p>[root&#064;localhost~]# cd \/etc\/yum.repos.d\/<br \/>\n[root&#064;localhost yum.repos.d]# ls<br \/>\n[root&#064;localhost yum.repos.d]# cd ..<br \/>\n[root&#064;localhost etc]# rm -rf yum.repos.d<br \/>\n[root&#064;localhost etc]#mkdir \/etc\/yum.repos.d<br \/>\n[root&#064;localhost etc]#cd yum.repos.d\/<br \/>\n\u8fdb\u5165\u4e4b\u540e\u7528xftp\u4f20\u9001\u4e00\u4e2a\u65b0\u7684Centos-7.repo<br \/>\n[root&#064;localhost yum.repos.d]#vi \/etc\/selinux\/config<br \/>\n\u5728\u91cc\u9762\u628a\u8fd9\u4e2a\u4fee\u6539\u6210SELINUX&#061;disabled<br \/>\n[root&#064;localhost ~]# vi \/etc\/selinux\/config<br \/>\nSELINUX&#061;disabled<br \/>\n[root&#064;localhost ~]# hostnamectl set-hostname web01<br \/>\n[root&#064;localhost ~]# reboot <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"491\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125801-68024c59c6367.png\" width=\"1444\" \/><\/p>\n<h4>\u00a05.1.2\u8bbe\u7f6e\u9759\u6001ip<\/h4>\n<p>[root&#064;web01 ~]#vi  \/etc\/sysconfig\/network-scripts\/ifcfg-ens32 <\/p>\n<h3><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"376\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125802-68024c5a0cb3c.png\" width=\"702\" \/><\/h3>\n<\/p>\n<p>[root&#064;web01 ~]# systemctl restart network<\/p>\n<p># \u5b89\u88c5\u6240\u6709\u8f6f\u4ef6<br \/>\n[root&#064;web01 ~]# yum install vim  tree tar net-tools rsync nfs-utils -y <\/p>\n<h4>\u00a05.1.3\u90e8\u7f72\u7f51\u7ad9\u793a\u4f8b<\/h4>\n<p>[root&#064;web01 ~]# wget -O \/etc\/yum.repos.d\/epel.repo https:\/\/mirrors.aliyun.com\/repo\/epel-7.repo<br \/>\n[root&#064;web01 ~]# yum  ma<br \/>\n[root&#064;web01 ~]# yum  install  nginx  -y<br \/>\n[root&#064;web01 ~]# mkdir  -p  \/www\/sczl<br \/>\n[root&#064;web01 ~]# cd  \/www\/sczl<br \/>\n# \u4f7f\u7528xftp\u5c06web\u6e90\u6587\u4ef6\u4e0a\u4f20\u81f3\/www\/sczl&#xff0c;\u5982\u56fe&#xff1a; <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"874\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125802-68024c5a239bf.png\" width=\"1347\" \/><\/p>\n<p># \u4fee\u6539nginx\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>[root&#064;web01 ~]# vim  \/etc\/nginx\/nginx.conf     # \u4fee\u6539\u7b2c42\u884c\u4e4b\u540e\u7684\u8def\u5f84<br \/>\n42         root         \/www\/sczl;<br \/>\n[root&#064;web01 ~]# systemctl start nginx<br \/>\n[root&#064;web01 ~]# systemctl enable nginx <\/p>\n<p># \u6d4b\u8bd5&#xff1a;\u6253\u5f00windows\u7aef\u6d4f\u89c8\u5668\u8f93\u5165\u670d\u52a1\u7aefIP\u5730\u5740 <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"485\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125802-68024c5a855a9.png\" width=\"870\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1386\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125802-68024c5aae68b.png\" width=\"2342\" \/><\/p>\n<\/p>\n<h5>5.2nfs\u670d\u52a1\u5668\u73af\u5883\u642d\u5efa<\/h5>\n<ul>\n<li>\n<p>\u5b89\u88c5Centos7.9\u7cfb\u7edf&#xff0c;\u66ff\u6362yum\u6e90&#xff0c;\u8fde\u63a5xshell&#xff0c;\u548cweb01\u4fee\u6539\u4e0d\u540c<\/p>\n<\/li>\n<li>\n<p>\u5173\u95ed\u9632\u706b\u5899\u548cselinux&#xff0c;\u8bbe\u7f6e\u4e3b\u673a\u540d<\/p>\n<\/li>\n<li> [root&#064;localhost ~]# systemctl stop firewalld<br \/>\n[root&#064;localhost ~]# systemctl disable firewalld<br \/>\n[root&#064;localhost ~]# vi \/etc\/selinux\/config<br \/>\nSELINUX&#061;disabled<br \/>\n[root&#064;localhost ~]# hostnamectl set-hostname nfs01<br \/>\n[root&#064;localhost ~]# reboot <\/p>\n<h4>5.2.1\u8bbe\u7f6e\u9759\u6001ip<\/h4>\n<\/li>\n<\/ul>\n<p>[root&#064;nfs01 ~]# vi  \/etc\/sysconfig\/network-scripts\/ifcfg-ens32<br \/>\n[root&#064;nfs01 ~]# systemctl restart network<\/p>\n<p>[root&#064;nfs01 ~]# yum install vim  tree tar net-tools rsync -y <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"394\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125805-68024c5debef2.png\" width=\"803\" \/><\/p>\n<h4>5.2.2 \u90e8\u7f72\u5171\u4eab\u5b58\u50a8&#xff0c;nfs01\u4e3a\u670d\u52a1\u7aef&#xff0c;web01\u4e3a\u5ba2\u6237\u7aef<\/h4>\n<p># nfs01\u670d\u52a1\u7aef\u64cd\u4f5c<br \/>\n[root&#064;nfs01 ~]# yum  install  rpcbind  -y<br \/>\n[root&#064;nfs01 ~]# yum  install  nfs-utils  -y<br \/>\n[root&#064;nfs01 ~]# mkdir  \/nfsfile<br \/>\n[root&#064;nfs01 ~]# echo  &#034;welcome to www.openlab.com&#034; &gt; \/nfsfile\/readme<br \/>\n[root&#064;nfs01 ~]# chmod  -Rf  777  \/nfsfile<br \/>\n[root&#064;nfs01 ~]# vim  \/etc\/exports    # \u7f16\u8f91nfs\u914d\u7f6e\u6587\u4ef6&#xff0c;\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9<br \/>\n\/nfsfile        192.168.208.0\/24(rw,sync,all_squash)<\/p>\n<p>[root&#064;nfs01 ~]# systemctl start  rpcbind<br \/>\n[root&#064;nfs01 ~]# systemctl enable  rpcbind<br \/>\n[root&#064;nfs01 ~]# systemctl start  nfs-server<br \/>\n[root&#064;nfs01 ~]# systemctl enable  nfs-server<br \/>\nCreated symlink from \/etc\/systemd\/system\/multi-user.target.wants\/nfs-server.service to \/usr\/lib\/systemd\/system\/nfs-server.service. <\/p>\n<p>\u00a0<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"220\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125806-68024c5e1b550.png\" width=\"888\" \/><\/p>\n<p># web01\u5ba2\u6237\u7aef\u64cd\u4f5c&#xff1a;<\/p>\n<p>[root&#064;web01 ~]# showmount  -e  192.168.208.201<br \/>\nExport list for 192.168.208.201:<br \/>\n\/nfsfile 192.168.208.0\/24<br \/>\n[root&#064;web01 ~]# mkdir  \/web_nfs01<br \/>\n[root&#064;web01 ~]# mount -t nfs  192.168.208.201:\/nfsfile  \/web_nfs<br \/>\n[root&#064;web01 ~]# cd  \/web_nfs01<br \/>\n[root&#064;web01 web_nfs01]# ls<br \/>\nreadme<br \/>\n[root&#064;web01 web_nfs01]# cd  ~<br \/>\n[root&#064;web01 web_nfs01]# vim  \/etc\/fstab       # \u6c38\u4e45\u6302\u8f7d<br \/>\n192.168.208.201:\/nfsfile   \/web_nfs   nfs    defaults    0    0<\/p>\n<p>[root&#064;web01 web_nfs01]# mount  -a<br \/>\n[root&#064;web01 web_nfs01]# df  -h<br \/>\nFilesystem               Size  Used Avail Use% Mounted on<br \/>\ndevtmpfs                 900M     0  900M   0% \/dev<br \/>\ntmpfs                    910M     0  910M   0% \/dev\/shm<br \/>\ntmpfs                    910M  9.4M  901M   2% \/run<br \/>\ntmpfs                    910M     0  910M   0% \/sys\/fs\/cgroup<br \/>\n\/dev\/sda3                 17G  1.9G   16G  12% \/<br \/>\n\/dev\/sda1               1014M  144M  871M  15% \/boot<br \/>\ntmpfs                    182M     0  182M   0% \/run\/user\/0<br \/>\n192.168.208.201:\/nfsfile   17G  1.6G   16G   9% \/web_nfs01 <\/p>\n<h3>5.3backup\u670d\u52a1\u5668\u73af\u5883\u642d\u5efa<\/h3>\n<ul>\n<li>\n<p>\u5b89\u88c5Centos7.9\u7cfb\u7edf&#xff0c;\u66ff\u6362yum\u6e90&#xff0c;\u8fde\u63a5xshell&#xff0c;\u8ddfweb01\u4e00\u6837<\/p>\n<\/li>\n<li>\n<p>\u5173\u95ed\u9632\u706b\u5899\u548cselinux&#xff0c;\u8bbe\u7f6e\u4e3b\u673a\u540d<\/p>\n<\/li>\n<li> [root&#064;localhost ~]# systemctl stop firewalld<br \/>\n[root&#064;localhost ~]# systemctl disable firewalld<br \/>\n[root&#064;localhost ~]# vi \/etc\/selinux\/config<br \/>\nSELINUX&#061;disabled<br \/>\n[root&#064;localhost ~]# hostnamectl set-hostname backup<br \/>\n[root&#064;localhost ~]# reboot <\/li>\n<\/ul>\n<h4>\u00a05.3.1\u8bbe\u7f6e\u9759\u6001ip<\/h4>\n<p>[root&#064;backup ~]# vi  \/etc\/sysconfig\/network-scripts\/ifcfg-ens32 <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"379\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125806-68024c5e34786.png\" width=\"725\" \/><\/p>\n<\/p>\n<p>[root&#064;backup ~]# systemctl restart network<\/p>\n<p>[root&#064;backup ~]# yum install vim  tree tar net-tools rsync mailx -y <\/p>\n<h4>5.3.2\u4fee\u6539rsync\u914d\u7f6e\u6587\u4ef6<\/h4>\n<p># \u6ce8\u610f&#xff1a;\u914d\u7f6e\u6587\u4ef6\u4e2d\u4e0b\u5217\u6ce8\u91ca\u8981\u5220\u9664<br \/>\n[root&#064;backup ~]# vim \/etc\/rsyncd.conf <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"541\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125806-68024c5e4acff.png\" width=\"983\" \/><\/p>\n<h4>5.3.3 \u6839\u636e\u914d\u7f6e\u6587\u4ef6\u8bbe\u7f6e<\/h4>\n<p># \u521b\u5efarsync\u8d26\u6237\u53ca\u5171\u4eab\u76ee\u5f55\u5e76\u4fee\u6539\u76ee\u5f55\u5c5e\u4e3b\u4e3arsync<br \/>\n[root&#064;backup ~]# useradd -M -s \/sbin\/nologin rsync<br \/>\n[root&#064;backup ~]# mkdir \/backup<br \/>\n[root&#064;backup ~]# chown -R rsync \/backup<\/p>\n<p># \u5f00\u673a\u5e76\u542f\u52a8\u670d\u52a1<br \/>\n[root&#064;backup ~]# systemctl enable &#8211;now rsyncd<br \/>\n[root&#064;backup ~]# ps -ef | grep rsync<br \/>\nroot        661      1  0 10:49 ?        00:00:00 \/usr\/bin\/rsync &#8211;daemon &#8211;no-detach<br \/>\nroot       1473   1435  0 11:22 pts\/0    00:00:00 grep &#8211;color&#061;auto rsync<\/p>\n<p># \u521b\u5efarsync\u865a\u62df\u8d26\u6237\u540d\u548c\u5bc6\u7801,\u5e76\u8d4b\u4e88\u5bc6\u7801\u6587\u4ef6600\u6743\u9650<br \/>\n[root&#064;backup ~]# echo &#034;rsync:rsync123&#034; &gt; \/etc\/rsync.password<br \/>\n[root&#064;backup ~]# chmod 600 \/etc\/rsync.password <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"82\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125806-68024c5e75280.png\" width=\"1326\" \/><\/p>\n<\/p>\n<h3>5.4\u914d\u7f6e\u5907\u4efd\u811a\u672c<\/h3>\n<h4>5.4.1\u914d\u7f6eweb01\u5ba2\u6237\u7aef\u672c\u5730\u5907\u4efd\u811a\u672c<\/h4>\n<p>web01\u5ba2\u6237\u7aef\u4e3b\u673a\u9700\u8981\u6253\u5305\u5907\u4efd\u7684\u5185\u5bb9&#xff1a;<\/p>\n<p>[root&#064;web01 ~]#  cd  \/www\/sczl<br \/>\n[root&#064;web01 sczl]# cd<br \/>\n[root&#064;web01 ~]#  tree  \/var\/log\/nginx<br \/>\n\/var\/log\/nginx<br \/>\n\u251c\u2500\u2500 access.log<br \/>\n\u2514\u2500\u2500 error.log<\/p>\n<p>0 directories, 2 files<br \/>\n[root&#064;web01 ~]# tree \/www<br \/>\n\/www<br \/>\n\u2514\u2500\u2500 sczl<br \/>\n    \u251c\u2500\u2500 css<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 animate.min.css<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 common.min.css<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 font-awesome.css<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 fonts<br \/>\n    \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 FontAwesome.otf<br \/>\n    \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 fontawesome-webfont.eot<br \/>\n    \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 fontawesome-webfont.svg<br \/>\n    \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 fontawesome-webfont.ttf<br \/>\n    \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 fontawesome-webfont.woff<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 style.css<br \/>\n    \u2502\u00a0\u00a0 \u2514\u2500\u2500 swiper-3.3.1.min.css<br \/>\n    \u251c\u2500\u2500 dingban.mp4<br \/>\n    \u251c\u2500\u2500 img<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 1.jpg<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 aperture.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 bg11.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 bg1.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 bg22.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 bg2.jpg<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 bg2.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 bg33.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 bg3.jpg<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 bg3.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 bg44.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 bg4.jpg<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 bg4.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 bg55.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 bg5.jpg<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 bg5.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 bg6.jpg<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 bg7.jpg<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 flag.gif<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 logo.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page2_1_1.jpg<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page2_1_2.jpg<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page2_1_3.jpg<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page2_1_4.jpg<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page2_1_5.jpg<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page2_1bg.jpg<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page2_1.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page2_2bg.jpg<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page2_2.jpg<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page3left_bg.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page3lefttop.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page3right_1.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page3right_2.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page3right_3.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page3right_4.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page3right_bg.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page4_1.jpg<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page4_2.jpg<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page4_3.jpg<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page4_4.jpg<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page4_5.jpg<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page4_6.jpg<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page4_7.jpg<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page4_8.jpg<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page5_right.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page5_title.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page6_right.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 page7_middle.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 shade.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 shubiao.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 title1.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 title2d.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 title2pbg.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 title2.png<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 title3.png<br \/>\n    \u2502\u00a0\u00a0 \u2514\u2500\u2500 title4.png<br \/>\n    \u251c\u2500\u2500 index.html<br \/>\n    \u251c\u2500\u2500 js<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 fullpage_js.js<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 jquery-1.10.1.min.js<br \/>\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 swiper-3.3.1.jquery.min.js<br \/>\n    \u2502\u00a0\u00a0 \u2514\u2500\u2500 swiper.animate1.0.2.min.js<br \/>\n    \u2514\u2500\u2500 temp<br \/>\n        \u2514\u2500\u2500 index.html<\/p>\n<p>6 directories, 73 files<br \/>\n# \u4ee5\u53ca\u5b9a\u65f6\u4efb\u52a1\u548c\u5907\u4efd\u811a\u672c\u6e90\u6587\u4ef6 &#xff1a;\/var\/spool\/cron\/root\u3001\/etc\/rc.local\u3001\/server\/scripts <\/p>\n<h4>5.4.2 \u7f16\u5199\u5907\u4efdweb01\u670d\u52a1\u5668\u7684\u811a\u672c<\/h4>\n<p>[root&#064;web01 ~]# mkdir  \/backup<br \/>\n[root&#064;web01 ~]# mkdir -p  \/server\/scripts<br \/>\n[root&#064;web01 ~]# vim  \/server\/scripts\/backup.sh <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1052\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125806-68024c5e8b69b.png\" width=\"1774\" \/><\/p>\n<\/p>\n<p>[root&#064;web01 ~]# vim \/etc\/rsync.password     # \u5ba2\u6237\u7aef\u5efa\u7acb\u8ba4\u8bc1\u7684\u6587\u4ef6\u5bc6\u7801\u5982\u4e0b&#xff1a;<br \/>\nrsync123                                    # \u6ce8\u610f&#xff1a;\u53ea\u5199\u5bc6\u7801<\/p>\n<p>[root&#064;web01 ~]# chmod 600 \/etc\/rsync.password   # \u5bc6\u7801\u8ba4\u8bc1\u6587\u4ef6\u5fc5\u987b\u4e3a600 <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"104\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125807-68024c5f4650c.png\" width=\"227\" \/><\/p>\n<h4>5.4.3\u6d4b\u8bd5<\/h4>\n<p>[root&#064;web01 ~]#  bash  \/server\/scripts\/backup.sh<br \/>\n2025-04-11_Week05 192.168.208.200 start backup &#8230;&#8230;<br \/>\nLocal backup successful, the backup files have been pushed to the backup server<br \/>\n[root&#064;backup ~]# ls  \/backup\/192.168.208.200\/<br \/>\n2025-04-10_Week04.flag  nginx_logs_2025-04-10_Week04_tar.gz  sys_file_bak_2025-04-10_Week04_tar.gz  www_2025-04-10_Week04_tar.gz<br \/>\n2025-04-11_Week05.flag  nginx_logs_2025-04-11_Week05_tar.gz  sys_file_bak_2025-04-11_Week05_tar.gz  www_2025-04-11_Week05_tar.gz<\/p>\n<h3>5.5\u914d\u7f6enfs01\u5ba2\u6237\u7aef\u672c\u5730\u5907\u4efd\u811a\u672c<\/h3>\n<ul>\n<li>\n<h4>5.5.1nfs01\u5ba2\u6237\u7aef\u4e3b\u673a\u9700\u8981\u6253\u5305\u5907\u4efd\u7684\u5185\u5bb9&#xff1a;<\/h4>\n<\/li>\n<li> [root&#064;nfs01 ~]# tree  \/nfsfile\/<br \/>\n\/nfsfile\/<br \/>\n\u2514\u2500\u2500 readme<\/p>\n<p>0 directories, 1 file<br \/>\n# \u4ee5\u53ca\/var\/log\/message\u6587\u4ef6\u3001mount  -l  \u6302\u8f7d\u4fe1\u606f <\/p>\n<h4>5.5.2\u7f16\u5199\u5907\u4efdnfs01\u670d\u52a1\u5668\u7684\u811a\u672c<\/h4>\n<\/li>\n<li> [root&#064;nfs01 ~]# mkdir  \/backup<br \/>\n[root&#064;nfs01 ~]# mkdir -p  \/server\/scripts [root&#064;nfs01 ~]# vim  \/server\/scripts\/backup.sh <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1056\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125807-68024c5f5387d.png\" width=\"1660\" \/><\/p>\n<\/li>\n<\/ul>\n<p>[root&#064;nfs01 ~]# vim \/etc\/rsync.password     # \u5ba2\u6237\u7aef\u5efa\u7acb\u8ba4\u8bc1\u7684\u6587\u4ef6\u5bc6\u7801\u5982\u4e0b&#xff1a;<br \/>\nrsync123                                    # \u6ce8\u610f&#xff1a;\u53ea\u5199\u5bc6\u7801<\/p>\n<p>[root&#064;nfs01 ~]# chmod 600 \/etc\/rsync.password   # \u5bc6\u7801\u8ba4\u8bc1\u6587\u4ef6\u5fc5\u987b\u4e3a600<br \/>\n[root&#064;nfs01 ~]# ls -ld  \/etc\/rsync.password<br \/>\n-rw-r&#8211;r&#8211; 1 root root 9 Apr 10 09:13 \/etc\/rsync.password<\/p>\n<h4>5.5.3\u6d4b\u8bd5<\/h4>\n<p>[root&#064;nfs01 ~]# bash  \/server\/scripts\/backup.sh<br \/>\n2025-04-11_Week05 192.168.208.201 start backup &#8230;&#8230;<br \/>\nLocal backup successful, the backup files have been pushed to the backup server<br \/>\n# \u5728backup\u670d\u52a1\u5668\u4e2d\u53ef\u4ee5\u770b\u5230\u63a8\u9001\u7684\u6570\u636e<br \/>\n[root&#064;backup ~]# ls  \/backup\/<br \/>\n192.168.208.200  192.168.208.201 <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"68\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125808-68024c601039e.png\" width=\"496\" \/><\/p>\n<h3>5.6\u914d\u7f6e\u5b9a\u65f6\u4efb\u52a1<\/h3>\n<h4>5.6.1web01\u670d\u52a1\u5668\u7f16\u8f91\u5b9a\u65f6\u4efb\u52a1&#xff0c;\u5b9e\u73b0\u6bcf\u592900:00\u5b9a\u65f6\u5907\u4efd\u672c\u5730\u6570\u636e&#xff0c;\u5e76\u63a8\u9001\u5230Rsync\u670d\u52a1\u5668\u4e0a<\/h4>\n<p>[root&#064;web01 ~]# systemctl status  crond<br \/>\n\u25cf crond.service &#8211; Command Scheduler<br \/>\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/crond.service; enabled; vendor preset: enabled)<br \/>\n   Active: active (running) since Fri 2025-04-11 10:49:27 EDT; 47min ago<br \/>\n Main PID: 704 (crond)<br \/>\n   CGroup: \/system.slice\/crond.service<br \/>\n           \u2514\u2500704 \/usr\/sbin\/crond -n<\/p>\n<p>Apr 11 10:49:27 web01 systemd[1]: Started Command Scheduler.<br \/>\nApr 11 10:49:27 web01 crond[704]: (CRON) INFO (RANDOM_DELAY will be scaled with factor 34% if used.)<br \/>\nApr 11 10:49:27 web01 crond[704]: (CRON) INFO (running with inotify support)<br \/>\n# \u6ce8\u610f\u82e5\u672a\u5b89\u88c5\u53ef\u6267\u884c&#xff1a;<br \/>\n[root&#064;web01 ~]# yum  install  crontabs<br \/>\n# \u7f16\u8f91\u5b9a\u65f6\u4efb\u52a1<\/p>\n<p>[root&#064;web01 ~]# crontab  -e    # \u6dfb\u52a0: <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"76\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125808-68024c601f43c.png\" width=\"987\" \/><\/p>\n<\/p>\n<ul>\n<li>\n<h3>5.7nfs01\u670d\u52a1\u5668\u8fc7\u7a0b\u540c\u4e0a<\/h3>\n<\/li>\n<li>\n<h4>5.7.1backup\u670d\u52a1\u5668\u7f16\u5199\u811a\u672c&#xff0c;\u5b9e\u73b0\u5220\u9664180\u5929\u524d\u7684\u6240\u6709\u5907\u4efd\u6570\u636e&#xff0c;\u4f46\u4fdd\u5b58\u6bcf\u5468\u4e00\u7684<\/h4>\n<\/li>\n<\/ul>\n<p>[root&#064;backup ~]# mkdir -p \/server\/scripts<br \/>\n[root&#064;backup ~]# cd \/server\/scripts\/<br \/>\n[root&#064;backup scripts]# vim \/server\/scripts\/del_bak_data.sh <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"454\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125808-68024c60315cd.png\" width=\"1715\" \/><\/p>\n<h4>5.7.2 backup\u670d\u52a1\u5668\u914d\u7f6e\u5b9a\u65f6\u4efb\u52a1&#xff0c;\u5b9e\u73b0\u670d\u52a1\u7aef180\u5929\u524d\u6570\u636e\u81ea\u52a8\u5220\u9664<\/h4>\n<p>[root&#064;backup ~]# crontab -e <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"88\" src=\"2025-04-18hext2u1rkls.png\" width=\"1112\" \/><\/p>\n<h3>5.8\u6570\u636e\u4f20\u8f93\u5b8c\u6574\u6027\u9a8c\u8bc1\u4e0e\u76d1\u63a7\u544a\u8b66<\/h3>\n<h4>5.8.1\u9a8c\u8bc1\u6570\u636e\u5b8c\u6574\u6027<\/h4>\n<ul>\n<li>\n<p>backup\u670d\u52a1\u7aef\u9488\u5bf9\u5ba2\u6237\u7aef\u5907\u4efd\u65f6\u7684md5\u6307\u7eb9\u6570\u636e&#xff0c;\u5229\u7528MD5\u547d\u4ee4\u8fdb\u884c\u9a8c\u8bc1&#xff0c;\u5b8c\u6210\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u5b8c\u6574\u6027\u9a8c\u8bc1\u3002<\/p>\n<\/li>\n<li> [root&#064;backup scripts]# vim send_mail.sh  <\/li>\n<li>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"711\" src=\"2025-04-18neuh121q3hy.png\" width=\"1500\" \/><\/p>\n<\/li>\n<\/ul>\n<h5>5.8.2\u914d\u7f6e\u90ae\u4ef6\u544a\u8b66<\/h5>\n<ul>\n<li>\n<p>\u5b89\u88c5\u90ae\u4ef6\u670d\u52a1<\/p>\n<\/li>\n<li> [root&#064;backup ~]# yum  install  mailx  -y\n<p>\u914d\u7f6eqq\u90ae\u7bb1ssl\u8bc1\u4e66<\/p>\n<\/li>\n<li> [root&#064;backup ~]# mkdir -p \/root\/.certs<br \/>\n[root&#064;backup ~]# cd  \/root\/.certs<\/p>\n<p>[root&#064;backup .certs]# echo -n | openssl s_client -connect smtp.qq.com:465 | sed -ne &#039;\/-BEGIN CERTIFICATE-\/,\/-END CERTIFICATE-\/p&#039; &gt; ~\/.certs\/qq.crt<\/p>\n<p>[root&#064;backup .certs]# certutil -A -n &#034;GeoTrust SSL CA&#034; -t &#034;C,,&#034; -d ~\/.certs -i ~\/.certs\/qq.crt<\/p>\n<p>[root&#064;backup .certs]# certutil -A -n &#034;GeoTrust Global CA&#034; -t &#034;C,,&#034; -d ~\/.certs -i ~\/.certs\/qq.crt<\/p>\n<p>[root&#064;backup .certs]# certutil -A -n &#034;GeoTrust SSL CA &#8211; G3&#034; -t &#034;Pu,Pu,Pu&#034; -d .\/ -i qq.crt<br \/>\nNotice: Trust flag u is set automatically if the private key is present. <\/p>\n<p>\u914d\u7f6e\u90ae\u4ef6\u670d\u52a1<\/p>\n<\/li>\n<li> [root&#064;backup .certs]# vim  \/etc\/mail.rc<br \/>\n# \u6700\u540e\u4e00\u884c\u540e\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9&#xff1a;<br \/>\nset from&#061;yourmail&#064;qq.com<br \/>\nset smtp&#061;smtps:\/\/smtp.qq.com:465<br \/>\nset smtp-auth-user&#061;yourmail&#064;qq.com<br \/>\nset smtp-auth-password&#061;uebrl****eodhff<br \/>\nset smtp-auth&#061;login<br \/>\nset nss-config-dir&#061;\/root\/.certs\/<br \/>\nset ssl-verify&#061;ignore<\/p>\n<p>\u6d4b\u8bd5\u90ae\u4ef6\u670d\u52a1<\/p>\n<\/li>\n<li> [root&#064;backup ~]# echo  &#034;testmail&#034;  |  mail  -s  &#034;testmail&#034;  yourmail&#064;qq.com\n<p>[root&#064;backup ~]# bash \/server\/scripts\/send_mail.sh <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"477\" src=\"2025-04-182lvtmsy1dth.png\" width=\"1567\" \/><\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e26\u6b21\uff0c\u6536\u85cf8\u6b21\u3002\u8be5\u9879\u76ee\u5171\u5206\u4e3a2\u4e2a\u5b50\u9879\u76ee\uff0c\u7531\u73af\u5883\u642d\u5efa\u548c\u5b9e\u65bd\u5907\u4efd\u4e24\u90e8\u5206\u7ec4\u6210\u8be5\u9879\u76ee\u65e8\u5728\u590d\u4e60\u5de9\u56fa\u7cfb\u7edf\u670d\u52a1\u90e8\u7f72\u4f7f\u7528\u3001shell\u7f16\u7a0b\u7b49\u77e5\u8bc6\uff0c\u65e8\u5728\u8ba9\u5b66\u751f\u589e\u52a0\u77e5\u8bc6\u9762\uff0c\u63d0\u9ad8\u9879\u76ee\u5b9e\u4e60\u7ecf\u5386\uff0c\u5145\u5b9e\u7b80\u5386\u3002_gofastdfs\u540c\u6b657\u5929\u6570\u636e<\/p>\n","protected":false},"author":2,"featured_media":14149,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[92,43,395],"topic":[],"class_list":["post-14169","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-github","tag-43","tag-395"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u81ea\u52a8\u5316\u5907\u4efd\u5168\u7f51\u670d\u52a1\u5668\u6570\u636e\u5e73\u53f0 - \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\/14169.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u81ea\u52a8\u5316\u5907\u4efd\u5168\u7f51\u670d\u52a1\u5668\u6570\u636e\u5e73\u53f0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e26\u6b21\uff0c\u6536\u85cf8\u6b21\u3002\u8be5\u9879\u76ee\u5171\u5206\u4e3a2\u4e2a\u5b50\u9879\u76ee\uff0c\u7531\u73af\u5883\u642d\u5efa\u548c\u5b9e\u65bd\u5907\u4efd\u4e24\u90e8\u5206\u7ec4\u6210\u8be5\u9879\u76ee\u65e8\u5728\u590d\u4e60\u5de9\u56fa\u7cfb\u7edf\u670d\u52a1\u90e8\u7f72\u4f7f\u7528\u3001shell\u7f16\u7a0b\u7b49\u77e5\u8bc6\uff0c\u65e8\u5728\u8ba9\u5b66\u751f\u589e\u52a0\u77e5\u8bc6\u9762\uff0c\u63d0\u9ad8\u9879\u76ee\u5b9e\u4e60\u7ecf\u5386\uff0c\u5145\u5b9e\u7b80\u5386\u3002_gofastdfs\u540c\u6b657\u5929\u6570\u636e\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/14169.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T12:58:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125800-68024c58b9d02.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=\"8 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/14169.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/14169.html\",\"name\":\"\u81ea\u52a8\u5316\u5907\u4efd\u5168\u7f51\u670d\u52a1\u5668\u6570\u636e\u5e73\u53f0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T12:58:09+00:00\",\"dateModified\":\"2025-04-18T12:58:09+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/14169.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/14169.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/14169.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u81ea\u52a8\u5316\u5907\u4efd\u5168\u7f51\u670d\u52a1\u5668\u6570\u636e\u5e73\u53f0\"}]},{\"@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":"\u81ea\u52a8\u5316\u5907\u4efd\u5168\u7f51\u670d\u52a1\u5668\u6570\u636e\u5e73\u53f0 - \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\/14169.html","og_locale":"zh_CN","og_type":"article","og_title":"\u81ea\u52a8\u5316\u5907\u4efd\u5168\u7f51\u670d\u52a1\u5668\u6570\u636e\u5e73\u53f0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e26\u6b21\uff0c\u6536\u85cf8\u6b21\u3002\u8be5\u9879\u76ee\u5171\u5206\u4e3a2\u4e2a\u5b50\u9879\u76ee\uff0c\u7531\u73af\u5883\u642d\u5efa\u548c\u5b9e\u65bd\u5907\u4efd\u4e24\u90e8\u5206\u7ec4\u6210\u8be5\u9879\u76ee\u65e8\u5728\u590d\u4e60\u5de9\u56fa\u7cfb\u7edf\u670d\u52a1\u90e8\u7f72\u4f7f\u7528\u3001shell\u7f16\u7a0b\u7b49\u77e5\u8bc6\uff0c\u65e8\u5728\u8ba9\u5b66\u751f\u589e\u52a0\u77e5\u8bc6\u9762\uff0c\u63d0\u9ad8\u9879\u76ee\u5b9e\u4e60\u7ecf\u5386\uff0c\u5145\u5b9e\u7b80\u5386\u3002_gofastdfs\u540c\u6b657\u5929\u6570\u636e","og_url":"https:\/\/www.wsisp.com\/helps\/14169.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T12:58:09+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418125800-68024c58b9d02.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"8 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/14169.html","url":"https:\/\/www.wsisp.com\/helps\/14169.html","name":"\u81ea\u52a8\u5316\u5907\u4efd\u5168\u7f51\u670d\u52a1\u5668\u6570\u636e\u5e73\u53f0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T12:58:09+00:00","dateModified":"2025-04-18T12:58:09+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/14169.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/14169.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/14169.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u81ea\u52a8\u5316\u5907\u4efd\u5168\u7f51\u670d\u52a1\u5668\u6570\u636e\u5e73\u53f0"}]},{"@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\/14169","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=14169"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/14169\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/14149"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=14169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=14169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=14169"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=14169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}