{"id":22569,"date":"2025-04-19T06:08:10","date_gmt":"2025-04-18T22:08:10","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/22569.html"},"modified":"2025-04-19T06:08:10","modified_gmt":"2025-04-18T22:08:10","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-7","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/22569.html","title":{"rendered":"\u81ea\u52a8\u5316\u5907\u4efd\u5168\u7f51\u670d\u52a1\u5668\u6570\u636e\u5e73\u53f0"},"content":{"rendered":"<h2>1\u3001\u9879\u76ee\u8bf4\u660e<\/h2>\n<h3>1.1 \u4efb\u52a1\u9700\u6c42<\/h3>\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<h3>1.2 \u51c6\u5907\u8fc7\u7a0b\u4ee5\u53ca\u6240\u9700\u5185\u5bb9\u4ecb\u7ecd<\/h3>\n<h4>1.2.1\u00a0\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<li>\n<p>\u6240\u7528\u5230\u7684\u670d\u52a1\u5668\u76ee\u5f55\u4ee5\u53ca\u5176\u8bf4\u660e\u5982\u4e0b&#xff1a;<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"470\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418220801-6802cd4116c51.png\" width=\"1678\" \/><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>1.2.2\u00a0Rsync\u6982\u8ff0<\/h4>\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<\/p>\n<\/li>\n<li>\n<p>\u4e3b\u9875&#xff1a;Rsync<\/p>\n<\/li>\n<\/ul>\n<p>\u7531\u4e8eRsync\u6709\u4ee5\u4e0b\u7279\u70b9&#xff0c;\u6240\u4ee5\u672c\u6b21\u4f7f\u7528&#xff1a;<\/p>\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>\u7531\u4e8eRsync\u6709\u4e00\u4e9b\u5e38\u7528\u8bed\u6cd5&#xff0c;\u6b64\u5904\u8d34\u5230\u4e0b\u65b9&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"717\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418220801-6802cd4174e71.png\" width=\"922\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"927\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418220801-6802cd41b3fbc.png\" width=\"1314\" \/><\/p>\n<h5>1.2.3 \u9879\u76ee\u62d3\u6251\u7ed3\u6784<\/h5>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1077\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418220802-6802cd422dd96.png\" width=\"1529\" \/><\/p>\n<h5>1.2.4\u00a0\u8f6f\u786c\u4ef6\u73af\u5883\u6e05\u5355<\/h5>\n<p>\u4ee5\u4e0b\u7ed9\u51fa\u672c\u6b21\u9879\u76ee\u4f7f\u7528\u7684\u8f6f\u786c\u4ef6\u73af\u5883\u6e05\u5355&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"409\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418220802-6802cd42be398.png\" width=\"1685\" \/><\/p>\n<h3>\u00a01.3 IOS\u955c\u50cf\u4e0b\u8f7d<\/h3>\n<p>&#xff08;1&#xff09;centos7.9\u63a8\u8350\u5728\u963f\u91cc\u5df4\u5df4\u5f00\u6e90\u955c\u50cf\u7ad9\u4e0b\u8f7d&#xff0c;\u70b9\u51fb\u94fe\u63a5\u540e\u5982\u4e0b&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1011\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418220803-6802cd4320411.png\" width=\"2288\" \/><\/p>\n<p>\u70b9\u51fbOS\u955c\u50cf\u4e4b\u540e\u5982\u4e0b\u641c\u7d22\u540e\u4e0b\u8f7d&#xff0c;\u5982\u679c\u4e0b\u8f7d\u8f83\u6162&#xff0c;\u53ef\u4ee5\u5c06\u94fe\u63a5\u590d\u5236\u5230\u8fc5\u96f7\u4e0b\u8f7d&#xff0c;\u8f83\u5feb.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"404\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418220804-6802cd442025c.png\" width=\"789\" \/><\/p>\n<h2>2 \u3001\u4efb\u52a1\u6e05\u5355<\/h2>\n<h3>2.1 \u9879\u76ee\u73af\u5883\u642d\u5efa<\/h3>\n<ul>\n<li>\n<p>\u53ef\u4ee5\u4f7f\u7528iVentoy\u7f51\u542f\u5b89\u88c53\u53f0centos7.9\u670d\u52a1\u5668\u3002iVentoy\u5177\u4f53\u4f7f\u7528\u8fc7\u7a0b\u53ef\u4ee5\u6233\u6211\u53e6\u4e00\u4e2ablog\u7684\u94fe\u63a5\u8fdb\u884c\u5b66\u4e60&#xff1a;\u57fa\u4e8e\u7f51\u542fPXE\u670d\u52a1\u5668\u7684\u6279\u91cf\u5b9a\u5236\u7cfb\u7edf\u5e73\u53f0<\/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<h3>2.2 \u670d\u52a1\u5668\u90e8\u7f72<\/h3>\n<h4>2.2.1 Web\u670d\u52a1\u5668\u642d\u5efa\u90e8\u7f72<\/h4>\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<h4>2.2.2 NFS\u670d\u52a1\u5668\u642d\u5efa\u90e8\u7f72<\/h4>\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<h4>2.2.3 \u642d\u5efa\u5907\u4efd\u670d\u52a1\u5668<\/h4>\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<h2>3\u3001\u9879\u76ee\u5177\u4f53\u5b9e\u73b0\u6b65\u9aa4<\/h2>\n<h3>3.1 \u73af\u5883\u642d\u5efa<\/h3>\n<h4>3.1.1 web01\u670d\u52a1\u5668\u73af\u5883\u642d\u5efa<\/h4>\n<p>\u9996\u5148\u5b89\u88c5Centos7.9\u7cfb\u7edf&#xff0c;\u8fde\u63a5xshell&#xff0c;\u66ff\u6362yum\u6e90\u3002<\/p>\n<p>\u5177\u4f53\u5b89\u88c5\u6559\u7a0b\u53ef\u4ee5\u6233\u94fe\u63a5&#xff1a;VMware\u5b89\u88c5\u865a\u62df\u673a\u00a0<\/p>\n<p>Xshell\u94fe\u63a5\u6559\u7a0b&#xff1a;Xshell\u8fde\u63a5Vmware\u4e2d\u7684\u865a\u62df\u673a\u00a0<\/p>\n<p>Xshell\u53ef\u4ee5\u8df3\u8f6c\u5b98\u7f51\u4e0b\u8f7d&#xff1a;Xshell\u4e0b\u8f7d\u00a0\u00a0<\/p>\n<p>Xftp\u4e5f\u5728\u5b98\u7f51\u4e0b\u8f7d&#xff0c;\u94fe\u63a5\u540c\u4e0a\u3002<\/p>\n<p>\u6b64\u5904\u8be6\u7ec6\u8fc7\u7a0b\u7565\u3002<\/p>\n<ul>\n<li>\n<p>\u5173\u95ed\u9632\u706b\u5899\u548cselinux&#xff0c;\u8bbe\u7f6e\u4e3b\u673a\u540d<\/p>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"257\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418220804-6802cd444e34b.png\" width=\"1046\" \/><\/p>\n<ul>\n<li>\n<p>\u8bbe\u7f6e\u9759\u6001ip<\/p>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"337\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418220804-6802cd4485a80.png\" width=\"622\" \/><\/p>\n<p>\u5b89\u88c5\u5e38\u7528\u8f6f\u4ef6<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"180\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418220804-6802cd44a7985.png\" width=\"1151\" \/><\/p>\n<p>\u7531\u4e8eXshell\u4e2d\u4e0d\u597d\u8fdb\u884c\u4ee3\u7801\u622a\u53d6&#xff0c;\u6545\u6b64\u5904\u76f4\u63a5\u622a\u53d6\u793a\u4f8b<\/p>\n<p>\u8fd9\u91cc\u4e0d\u8981\u5fd8\u4e86yum install\u7684\u65f6\u5019\u518d\u52a0\u4e0a epel-release \u5426\u5219\u5b89\u88c5\u4e0b\u65b9\u7684nginx\u53ef\u80fd\u4f1a\u62a5\u9519&#xff01;&#xff01;&#xff01;<\/p>\n<p>\u4e0b\u8f7d\u597d\u8f6f\u4ef6\u4e4b\u540e&#xff0c;web\u7684\u73af\u5883\u90e8\u7f72\u5b8c\u6bd5&#xff0c;\u63a5\u4e0b\u6765\u90e8\u7f72\u5b83\u7684\u7f51\u7ad9<\/p>\n<p>\u53ef\u4ee5\u53bb\u963f\u91cc\u4e91\u5c06epel\u955c\u50cf\u66ff\u6362<\/p>\n<p>\u7f51\u5740\u94fe\u63a5&#xff1a;epel\u955c\u50cf<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1074\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418220804-6802cd44cfc00.png\" width=\"1314\" \/><\/p>\n<p>\u590d\u5236\u7c98\u8d34\u5230VMware\u865a\u62df\u673a\u4e2d\u5373\u53ef<\/p>\n<p>\u7136\u540e\u6309\u7167\u5982\u4e0b\u4ee3\u7801\u8fdb\u884c\u6b65\u9aa4&#xff08;\u5b9e\u673a\u8f83\u4e71\u4e0b\u65b9\u8d34\u6f14\u793a\u4ee3\u7801&#xff09;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"166\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418220805-6802cd455400e.png\" width=\"678\" \/><\/p>\n<p>\u518d\u5c06\u51c6\u5907\u597d\u7684\u7f51\u9875\u7528Xftp\u7c98\u8d34\u5230\u65b0\u5efa\u7684sczl\u6587\u4ef6\u5939\u4e2d<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"435\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418220805-6802cd456ffad.png\" width=\"1235\" \/><\/p>\n<p>\u518d\u4fee\u6539nginx\u7684\u8def\u5f84<\/p>\n<p>\u8f93\u5165\u00a0 vim \u00a0\/etc\/nginx\/nginx.conf \u5c06\u753b\u7ea2\u533a\u57df\u6539\u6210\u548c\u6211\u76f8\u540c\u7684\u5e76\u4fdd\u5b58\u9000\u51fa\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"447\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418220805-6802cd45b16c8.png\" width=\"908\" \/><\/p>\n<p>\u542f\u52a8nginx<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"31\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418220805-6802cd45e0eaf.png\" width=\"559\" \/><\/p>\n<p>\u8f93\u5165\u865a\u62df\u673a\u7684IP\u8fdb\u5165\u7f51\u9875\u6620\u5c04\u505a\u6d4b\u8bd5&#xff0c;\u793a\u4f8b\u5982\u4e0b&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1111\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418220806-6802cd460542c.png\" width=\"2075\" \/><\/p>\n<p>\u5230\u6b64web01\u670d\u52a1\u5668\u7684\u7f51\u7ad9\u90e8\u7f72\u7ed3\u675f&#xff0c;\u5f00\u59cb\u90e8\u7f72nfs01\u670d\u52a1\u5668<\/p>\n<h4>3.1.2 nfs\u670d\u52a1\u5668\u73af\u5883\u642d\u5efa<\/h4>\n<p>\u524d\u9762\u7684\u73af\u5883\u914d\u7f6e\u76f8\u540c<\/p>\n<p>\u5b89\u88c5Centos7.9\u7cfb\u7edf&#xff0c;\u66ff\u6362yum\u6e90&#xff0c;\u8fde\u63a5xshell<\/p>\n<p>\u5173\u95ed\u9632\u706b\u5899\u548cselinux&#xff0c;\u8bbe\u7f6e\u4e3b\u673a\u540d<\/p>\n<p>\u8bbe\u7f6e\u9759\u6001ip<\/p>\n<p>\u5b89\u88c5\u5e38\u7528\u8f6f\u4ef6(vim \u00a0tree tar net-tools rsync)<\/p>\n<p>\u5b89\u88c5\u5b8c\u5e38\u7528\u8f6f\u4ef6\u4e4b\u540e,\u5f00\u59cb\u90e8\u7f72\u5171\u4eab\u5b58\u50a8&#xff0c;\u6ce8\u610f\u8fd9\u91ccnfs01\u4e3a\u670d\u52a1\u7aef&#xff0c;web01\u4e3a\u5ba2\u6237\u7aef&#xff0c;\u4e0d\u8981\u5f04\u9519<\/p>\n<p>\u5148\u53bb\u5b89\u88c5nfs-utils(\u6ce8\u610f\u5305\u540d&#xff0c;\u4e0d\u662fnfs)\u548crpcbind(\u5148\u88c5&#xff0c;\u9ed8\u8ba4\u4e00\u822c\u81ea\u5e26)<\/p>\n<p>\u518d\u53bb\u672c\u5730\u7684nfs\u7aef\u65b0\u5efa\u6587\u4ef6\u5939nfsfile<\/p>\n<p>\u600e\u4e48\u8bc1\u660e\u6587\u4ef6\u5171\u4eab\u6210\u529f&#xff0c;\u5199\u4e00\u4e2a\u6587\u4ef6&#xff0c;\u5982\u679c\u5728web\u7aef\u53ef\u4ee5\u770b\u5230\u6b64\u6587\u4ef6&#xff0c;\u8bc1\u660e\u5171\u4eab\u670d\u52a1\u5668\u642d\u597d<\/p>\n<p>\u518d\u8fdb\u884c\u6743\u9650\u4fee\u6539,\u7ed9nfsfile\u6587\u4ef6\u5939\u4e00\u4e2a\u5b8c\u6574\u6743\u9650(chmod -Rf 777 \/nfsfile)<\/p>\n<p>\u518d\u7f16\u5199nfs\u914d\u7f6e\u6587\u4ef6<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"29\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418220808-6802cd48e7d8e.png\" width=\"454\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"64\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418220809-6802cd490c37c.png\" width=\"706\" \/><\/p>\n<p>\u518d\u542f\u52a8\u670d\u52a1<\/p>\n<p>\u8bf7\u6ce8\u610f&#xff0c;\u542f\u52a8\u987a\u5e8f\u4e0d\u80fd\u6709\u4efb\u4f55\u6539\u53d8&#xff01;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"160\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418220809-6802cd49256ea.png\" width=\"1098\" \/><\/p>\n<p>\u5982\u679c\u542f\u52a8\u987a\u5e8f\u4e71\u4e86&#xff0c;\u4f1a\u8bbf\u95ee\u4e0d\u5230\u5ba2\u6237\u7aef<\/p>\n<p>\u542f\u52a8\u540e&#xff0c;\u8fd4\u56deweb01\u5ba2\u6237\u7aef\u67e5\u770b\u662f\u5426\u53ef\u4ee5\u8bbf\u95ee\u5230&#xff0c;\u600e\u4e48\u67e5\u770b&#xff1f;<\/p>\n<p>\u6302\u8f7d,\u5c06\u5bf9\u65b9\u7684\u76ee\u5f55\u6302\u8f7d\u5230\u672c\u5730 \u6240\u4ee5\u6211\u4eec\u9700\u8981\u5efa\u7acb\u4e00\u4e2a\u672c\u5730\u6302\u8f7d\u670d\u52a1<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"136\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418220809-6802cd494fe5e.png\" width=\"831\" \/><\/p>\n<p>\u5efa\u7acb\u4e4b\u540e\u67e5\u770b\u662f\u5426\u6709\u201creadme\u201d&#xff0c;\u80fd\u770b\u5230\u8bc1\u660e\u6210\u529f<\/p>\n<p>\u8f93\u5165mount\u53ef\u4ee5\u67e5\u770b\u6302\u8f7d\u4fe1\u606f&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"89\" src=\"2025-04-19ne3h0ghg4rn.png\" width=\"1090\" \/><\/p>\n<p>\u82e5\u6709\u9519\u6216\u672a\u6210\u529f\u8bf7\u6309\u7167\u6211\u7684\u987a\u5e8f\u6267\u884c&#xff0c;\u67e5\u770b\u542f\u52a8\u987a\u5e8f\u4ee5\u53ca\u6743\u9650\u6709\u9519\u5426<\/p>\n<p>\u5230\u6b64nfs\u670d\u52a1\u5668\u5904\u7406\u5b8c\u6bd5<\/p>\n<p>\u63a5\u4e0b\u6765\u67e5\u770bbackup\u670d\u52a1\u5668<\/p>\n<h4>3.1.3 backup\u670d\u52a1\u5668\u73af\u5883\u642d\u5efa<\/h4>\n<p>\u524d\u9762\u7684\u73af\u5883\u914d\u7f6e\u76f8\u540c<\/p>\n<p>\u5b89\u88c5Centos7.9\u7cfb\u7edf&#xff0c;\u66ff\u6362yum\u6e90&#xff0c;\u8fde\u63a5xshell<\/p>\n<p>\u5173\u95ed\u9632\u706b\u5899\u548cselinux&#xff0c;\u8bbe\u7f6e\u4e3b\u673a\u540d<\/p>\n<p>\u8bbe\u7f6e\u9759\u6001ip<\/p>\n<p>\u5b89\u88c5\u5e38\u7528\u8f6f\u4ef6(vim \u00a0tree tar net-tools rsync mailx)<\/p>\n<p>\u672c\u673a\u9700\u8981\u4fee\u6539rsync\u7684\u914d\u7f6e\u6587\u4ef6&#xff0c;\u6240\u4ee5\u63a5\u4e0b\u6765\u4fee\u6539\u914d\u7f6e<\/p>\n<p>\u9996\u5148\u4f7f\u7528\u00a0 \u00a0 vim \/etc\/rsyncd.conf(rsyncd\u662frsync\u670d\u52a1\u540d\u79f0&#xff0c;\u8bf7\u6ce8\u610f&#xff01;&#xff01;) \u6253\u5f00\u540e\u5c06\u5907\u6ce8\u5168\u90e8\u5220\u53bb&#xff0c;\u6539\u4e3a\u6211\u7ed9\u51fa\u7684\u5982\u4e0b\u4ee3\u7801&#xff1a;<\/p>\n<p>uid &#061; rsync# \u7528\u6237<br \/>\ngid &#061; rsync# \u7ec4<br \/>\nuse chroot &#061; no# \u7a0b\u5e8f\u5b89\u5168\u8bbe\u7f6e<br \/>\nmax connections &#061; 200# \u5ba2\u6237\u7aef\u8fde\u63a5\u6570<br \/>\ntimeout &#061; 300# \u8d85\u65f6\u65f6\u95f4<br \/>\npid file &#061; \/var\/run\/rsyncd.pid# \u8fdb\u7a0b\u53f7\u6587\u4ef6\u4f4d\u7f6e<br \/>\nlock file &#061; \/var\/run\/rsync.lock# \u8fdb\u7a0b\u9501<br \/>\nlog file &#061; \/var\/log\/rsyncd.log# \u65e5\u5fd7\u6587\u4ef6<br \/>\nfake super &#061; yes # \u65e0\u9700rsync\u4ee5root\u8eab\u4efd\u8fd0\u884c&#xff0c;\u5141\u8bb8\u63a5\u53d7\u6570\u636e<\/p>\n<p>[backup]<br \/>\n        path &#061; \/backup# \u76ee\u5f55<br \/>\n        ignore errors# \u6709\u9519\u8bef\u65f6\u5ffd\u7565<br \/>\n        read only &#061; false# \u53ef\u8bfb\u53ef\u5199<br \/>\n        list &#061; false            # \u963b\u6b62\u8fdc\u7a0b\u5217\u8868<br \/>\n        hosts allow &#061; 192.168.88.0\/24# \u5141\u8bb8IP<br \/>\n        hosts deny &#061; 0.0.0.0\/32# \u7981\u6b62IP<br \/>\n        auth users &#061; rsync# \u7528\u4e8e\u8ba4\u8bc1\u7684\u8d26\u6237<br \/>\n        secrets file &#061; \/etc\/rsync.password# \u5b58\u653e\u7528\u6237\u548c\u5bc6\u7801\u7684\u6587\u4ef6 <\/p>\n<p>\u4f7f\u7528\u65f6\u5c06\u7ed9\u51fa\u7684\u5907\u6ce8\u5220\u9664&#xff01;&#xff01;&#xff01;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"629\" src=\"2025-04-19qaif2kyjduy.png\" width=\"775\" \/><\/p>\n<p>\u63a5\u4e0b\u6765\u6839\u636e\u7ed9\u51fa\u7684\u914d\u7f6e\u6587\u4ef6\u8bbe\u7f6e&#xff1a;\u521b\u5efarsync\u8d26\u6237\u53ca\u5171\u4eab\u76ee\u5f55\u5e76\u4fee\u6539\u76ee\u5f55\u5c5e\u4e3b\u4e3arsync<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"241\" src=\"2025-04-19blprd5oonyj.png\" width=\"829\" \/><\/p>\n<p>\u901a\u8fc7ll\u53ef\u4ee5\u67e5\u770b\u76ee\u524dbackup\u5f52\u5c5e\u7684\u662f\u7ba1\u7406\u5458&#xff08;root&#xff09;&#xff0c;\u6240\u4ee5\u9700\u8981\u5c06\u5176\u5f52\u5c5e\u4e0ersync<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"556\" src=\"2025-04-19csnvvgpr0oe.png\" width=\"883\" \/><\/p>\n<p>\u4f7f\u7528\u5982\u4e0b\u8fdb\u884c\u5f52\u5c5e&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"136\" src=\"2025-04-19gwwh2gui3pd.png\" width=\"811\" \/><\/p>\n<p>\u63a5\u4e0b\u6765\u5f00\u673a\u5e76\u542f\u52a8\u670d\u52a1<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"229\" src=\"2025-04-19swtedkxqyhy.png\" width=\"1125\" \/><\/p>\n<p>\u5f00\u673a\u542f\u52a8\u540e\u67e5\u770b\u8fd0\u884c\u5426<\/p>\n<p>\u5176\u6b21\u521b\u5efarsync\u865a\u62df\u8d26\u6237\u540d\u548c\u5bc6\u7801,\u5e76\u8d4b\u4e88\u5bc6\u7801\u6587\u4ef6600&#xff08;\u8bfb\u548c\u5199&#xff09;\u6743\u9650<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"111\" src=\"2025-04-193nnyavy2h21.png\" width=\"901\" \/><\/p>\n<p>backup\u7684\u914d\u7f6e\u5230\u6b64\u7ed3\u675f<\/p>\n<h3>3.2\u914d\u7f6e\u5907\u4efd\u811a\u672c<\/h3>\n<h5>3.2.1\u914d\u7f6eweb01\u5ba2\u6237\u7aef\u672c\u5730\u5907\u4efd\u811a\u672c<\/h5>\n<p>web01\u5ba2\u6237\u7aef\u4e3b\u673a\u9700\u8981\u6253\u5305\u5907\u4efd\u7684\u5185\u5bb9\u6709 nginx\u65e5\u5fd7 \u7f51\u7ad9\u4e3b\u6570\u636e\u00a0\u5b9a\u65f6\u4efb\u52a1\u548c\u5907\u4efd\u811a\u672c\u6e90\u6587\u4ef6<\/p>\n<p>\u5f00\u59cb\u7f16\u5199\u5907\u4efdweb01\u670d\u52a1\u5668\u7684\u811a\u672c<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"55\" src=\"2025-04-19cj2b5dglr5n.png\" width=\"551\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"24\" src=\"2025-04-19cz0g1i5t51q.png\" width=\"635\" \/><\/p>\n<p>vim\u540e&#xff0c;\u8f93\u5165\u811a\u672c&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"925\" src=\"2025-04-19h1xikaaeuqo.png\" width=\"1457\" \/><\/p>\n<p>\u811a\u672c\u8f93\u5165\u540e\u53ef\u4ee5\u5728nfs\u7aef\u8fdb\u884c\u6d4b\u8bd5<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"132\" src=\"2025-04-19fleaxtgdb42.png\" width=\"799\" \/><\/p>\n<p>\u811a\u672c\u65e0\u8bef<\/p>\n<p>\u7136\u540e\u5728web\u5ba2\u6237\u7aef\u5efa\u7acb\u8ba4\u8bc1\u7684\u6587\u4ef6\u5bc6\u7801 \u5ba2\u6237\u7aef\u53ea\u9700\u8f93\u5165\u5bc6\u7801&#xff0c;\u4e0d\u9700\u8981\u7528\u6237\u540d<\/p>\n<p>\u7ed9\u4e88\u5bc6\u7801\u8ba4\u8bc1\u6587\u4ef6\u6743\u9650600<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"59\" src=\"2025-04-19ssrosdkiaxn.png\" width=\"645\" \/><\/p>\n<p>\u6d4b\u8bd5\u811a\u672c&#xff0c;\u901a\u8fc7web\u7aef\u548cbackup\u67e5\u770b\u662f\u5426\u6709\u8bef<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"82\" src=\"2025-04-19uozauf21k1t.png\" width=\"1048\" \/><\/p>\n<p>web\u6267\u884c\u6210\u529f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"181\" src=\"2025-04-19hjla1axktqi.png\" width=\"985\" \/><\/p>\n<p>backup\u5907\u4efd\u65e0\u8bef<\/p>\n<h4>3.2.2 \u914d\u7f6enfs01\u5ba2\u6237\u7aef\u672c\u5730\u5907\u4efd\u811a\u672c<\/h4>\n<p>nfs01\u5ba2\u6237\u7aef\u4e3b\u673a\u9700\u8981\u6253\u5305\u5907\u4efd\u7684\u5185\u5bb9:\u00a0\u5171\u4eab\u76ee\u5f55\u6570\u636e\u00a0\u4ee5\u53ca\/var\/log\/message\u6587\u4ef6\u3001mount \u00a0-l \u00a0\u6302\u8f7d\u4fe1\u606f<\/p>\n<p>\u5f00\u59cb\u7f16\u5199\u5907\u4efdnfs01\u670d\u52a1\u5668\u7684\u811a\u672c<\/p>\n<p>\u811a\u672c\u6b65\u9aa4\u540cweb01\u7aef\u76f8\u540c&#xff0c;\u53ef\u53c2\u7167\u4e0a\u65b9,\u4ee3\u7801\u57fa\u672c\u76f8\u540c&#xff0c;\u6ce8\u610f\u6b64\u5904\u7684\u5907\u4efd\u670d\u52a1\u5668IP\u4ee5\u53ca\u6302\u8f7d\u65e5\u5fd7\u5373\u53ef\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"941\" src=\"2025-04-194lj0zzarl5z.png\" width=\"1396\" \/><\/p>\n<p>\u63a5\u4e0b\u6765\u5efa\u7acb\u8ba4\u8bc1\u7684\u6587\u4ef6\u5bc6\u7801 \u5ba2\u6237\u7aef\u53ea\u9700\u8f93\u5165\u5bc6\u7801&#xff0c;\u4e0d\u9700\u8981\u7528\u6237\u540d<\/p>\n<p>\u7ed9\u4e88\u5bc6\u7801\u8ba4\u8bc1\u6587\u4ef6\u6743\u9650600<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"106\" src=\"2025-04-19u2yl3zzdbbx.png\" width=\"764\" \/><\/p>\n<p>\u00a0\u8fdb\u884c\u811a\u672c\u6d4b\u8bd5<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"80\" src=\"2025-04-19p2tzbwuxkid.png\" width=\"1058\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"159\" src=\"2025-04-19xbnhh440qe0.png\" width=\"990\" \/><\/p>\n<p>\u6d4b\u8bd5\u65e0\u8bef<\/p>\n<h3>3.3 \u914d\u7f6e\u5b9a\u65f6\u4efb\u52a1<\/h3>\n<p>\u5148\u67e5\u770bcrond\u670d\u52a1\u72b6\u6001&#xff0c;\u4e00\u822c\u9ed8\u8ba4\u5df2\u5b89\u88c5<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"216\" src=\"2025-04-19oi2zodfokbx.png\" width=\"1116\" \/><\/p>\n<p>\u5982\u679c\u62a5\u9519\u6216\u8005\u7ea2\u7ebf\u5904\u663e\u793adead&#xff0c;\u91cd\u65b0\u5b89\u88c5\u5373\u53ef(yum \u00a0install \u00a0crontabs)<\/p>\n<p>\u5b9a\u4f4d\u5230web\u7aef&#xff0c;\u7f16\u8f91\u5b9a\u65f6\u4efb\u52a1<\/p>\n<p>crontab -e\u540e&#xff0c;\u8f93\u5165\u4ee5\u4e0b\u4fe1\u606f&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"61\" src=\"2025-04-19qvher3pwmdp.png\" width=\"841\" \/><\/p>\n<p>\u51fa\u73b0\u4ee5\u4e0b\u4fe1\u606f\u4e0d\u7528\u5904\u7406<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"80\" src=\"2025-04-194y5mhzwfqis.png\" width=\"552\" \/><\/p>\n<p>nfs\u7aef\u548cbackup\u7aef\u64cd\u4f5c\u4ee5\u53ca\u4fe1\u606f\u8f93\u5165\u76f8\u540c&#xff0c;\u6b64\u5904\u7565(\u6ce8\u610f\u4e0a\u65b9crond-id-\u7684001\u6539\u4e3anfs-002 backup-003)<\/p>\n<p>backup\u670d\u52a1\u5668\u7f16\u5199\u811a\u672c&#xff0c;\u5b9e\u73b0\u5220\u9664180\u5929\u524d\u7684\u6240\u6709\u5907\u4efd\u6570\u636e(\u7531\u4e8e\u78c1\u76d8\u7a7a\u95f4\u6709\u9650)&#xff0c;\u4f46\u4fdd\u5b58\u6bcf\u5468\u4e00\u7684<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"59\" src=\"2025-04-19w4scfvewfti.png\" width=\"764\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"346\" src=\"2025-04-191ouingyryqv.png\" width=\"1515\" \/><\/p>\n<h3>3.4 \u6570\u636e\u4f20\u8f93\u5b8c\u6574\u6027\u9a8c\u8bc1\u4e0e\u76d1\u63a7\u544a\u8b66<\/h3>\n<h4>3.4.1 \u9a8c\u8bc1\u6570\u636e\u5b8c\u6574\u6027<\/h4>\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<p>\u9996\u5148\u7f16\u8f91\u4e00\u4e2a\u53d1\u9001\u81f3mail\u7684\u811a\u672c<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"33\" src=\"2025-04-193y4p5dnnsvk.png\" width=\"463\" \/><\/p>\n<p>\u8bf7\u6ce8\u610f\u5176\u4e2d\u7684Mail\u9700\u8981\u6539\u6210\u81ea\u5df1\u7684&#xff01;&#xff01;&#xff01;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"584\" src=\"2025-04-19rej5enjc4pz.png\" width=\"1051\" \/><\/p>\n<h4>3.4.2 \u914d\u7f6e\u90ae\u4ef6\u544a\u8b66<\/h4>\n<p>\u5b89\u88c5\u90ae\u4ef6\u670d\u52a1<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"31\" src=\"2025-04-19knqch2su2fh.png\" width=\"575\" \/><\/p>\n<p>\u914d\u7f6eqq\u90ae\u7bb1ssl\u8bc1\u4e66<\/p>\n<p>\u7531\u4e8e\u662fqq\u63d0\u4f9b\u7684\u4ee3\u7801\u4fe1\u606f&#xff0c;\u6211\u76f4\u63a5\u5c06\u6e90\u7801\u8d34\u5230\u4e0b\u65b9<\/p>\n<p>[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>\u00a0\u914d\u7f6e\u90ae\u4ef6\u670d\u52a1<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"439\" src=\"2025-04-19ero0jucrrpq.png\" width=\"1168\" \/><\/p>\n<p>\u00a0\u7ea2\u7ebf\u548c\u5907\u6ce8\u9700\u8981\u5220\u9664&#xff0c;\u7136\u540e\u6388\u6743\u7801\u9700\u8981\u4ece\u81ea\u5df1\u7684\u90ae\u7bb1\u4e2d\u83b7\u53d6&#xff0c;\u9996\u5148\u767b\u9646\u90ae\u7bb1&#xff0c;\u518d\u8bbe\u7f6e<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"615\" src=\"2025-04-19euw30gvgfrn.png\" width=\"1861\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"237\" src=\"2025-04-194jisddsaxh2.png\" width=\"1308\" \/><\/p>\n<p>\u4e0b\u6ed1<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"864\" src=\"2025-04-19rnagxll00qm.png\" width=\"1793\" \/><\/p>\n<p>\u5f00\u542f\u8fd9\u4e2a\u670d\u52a1\u540e\u83b7\u53d6\u6388\u6743\u7801,\u56de\u5230\u865a\u62df\u673a\u4e2d\u914d\u7f6e\u597d\u4e86\u53d1\u9001\u4e00\u6761\u4fe1\u606f\u81f3\u81ea\u5df1\u90ae\u7bb1\u5f53\u4e2d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"159\" src=\"2025-04-19cgg5ndpe1o5.png\" width=\"1168\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"467\" src=\"2025-04-19fyylabszcik.png\" width=\"1177\" \/><\/p>\n<p>\u53d1\u9001\u6210\u529f\u00a0<\/p>\n<p>\u6700\u540e\u6d4b\u8bd5\u811a\u672c<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"89\" src=\"2025-04-192drku2spt5c.png\" width=\"839\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"551\" src=\"2025-04-19phcsxqabcxa.png\" width=\"1230\" \/><\/p>\n<p>\u00a0\u53d1\u9001\u6210\u529f<\/p>\n<p>\u9879\u76ee\u5230\u6b64\u7ed3\u675f\u3002<\/p>\n<p>\u6613\u51fa\u9519&#xff1a;<\/p>\n<p>rsync\u5bc6\u7801\u4ee5\u53ca\u7528\u6237\u540d<\/p>\n<p>\u90ae\u7bb1<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb924\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf30\u6b21\u3002\u6240\u6709\u670d\u52a1\u5668\u7684\u5907\u4efd\u76ee\u5f55\u5fc5\u987b\u90fd\u4e3a\/backup\u3002\u8981\u5907\u4efd\u7684\u7cfb\u7edf\u914d\u7f6e\u6587\u4ef6\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\uff1a\u5b9a\u65f6\u4efb\u52a1\u670d\u52a1\u7684\u914d\u7f6e\u6587\u4ef6\uff08\/var\/spool\/cron\/root\uff09 \uff08\u9002\u5408Web\u548cNFS\u670d\u52a1\u5668\uff09\u3002\u5f00\u673a\u81ea\u542f\u52a8\u7684\u914d\u7f6e\u6587\u4ef6\uff08\/etc\/rc.local\uff09 \uff08\u9002\u5408Web\u548cNFS\u670d\u52a1\u5668\uff09\u3002\u65e5\u5e38\u811a\u672c\u7684\u76ee\u5f55 \uff08\/server\/scripts\uff09\u3002Web\u670d\u52a1\u5668\u8981\u6c42Web\u7ad9\u70b9\u76ee\u5f55\u5047\u5b9a\u4e3a\/var\/html\/www\uff0c\u5982\u679c\u6ca1\u6709\uff0c\u53ef\u4ee5\u5148\u6a21\u62df\u521b\u5efa\u3002Web\u670d\u52a1\u5668\u8bbf\u95ee\u65e5\u5fd7\u8def\u5f84\u5047\u5b9a\u4e3a\/app\/logs\uff0c\u5982\u679c\u6ca1\u6709\uff0c\u53ef\u4ee5\u5148\u6a21\u62df\u521b\u5efa\u3002<\/p>\n","protected":false},"author":2,"featured_media":22549,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,395,44],"topic":[],"class_list":["post-22569","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-43","tag-395","tag-44"],"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\/22569.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\u8bfb924\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf30\u6b21\u3002\u6240\u6709\u670d\u52a1\u5668\u7684\u5907\u4efd\u76ee\u5f55\u5fc5\u987b\u90fd\u4e3a\/backup\u3002\u8981\u5907\u4efd\u7684\u7cfb\u7edf\u914d\u7f6e\u6587\u4ef6\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\uff1a\u5b9a\u65f6\u4efb\u52a1\u670d\u52a1\u7684\u914d\u7f6e\u6587\u4ef6\uff08\/var\/spool\/cron\/root\uff09 \uff08\u9002\u5408Web\u548cNFS\u670d\u52a1\u5668\uff09\u3002\u5f00\u673a\u81ea\u542f\u52a8\u7684\u914d\u7f6e\u6587\u4ef6\uff08\/etc\/rc.local\uff09 \uff08\u9002\u5408Web\u548cNFS\u670d\u52a1\u5668\uff09\u3002\u65e5\u5e38\u811a\u672c\u7684\u76ee\u5f55 \uff08\/server\/scripts\uff09\u3002Web\u670d\u52a1\u5668\u8981\u6c42Web\u7ad9\u70b9\u76ee\u5f55\u5047\u5b9a\u4e3a\/var\/html\/www\uff0c\u5982\u679c\u6ca1\u6709\uff0c\u53ef\u4ee5\u5148\u6a21\u62df\u521b\u5efa\u3002Web\u670d\u52a1\u5668\u8bbf\u95ee\u65e5\u5fd7\u8def\u5f84\u5047\u5b9a\u4e3a\/app\/logs\uff0c\u5982\u679c\u6ca1\u6709\uff0c\u53ef\u4ee5\u5148\u6a21\u62df\u521b\u5efa\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/22569.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-18T22:08:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418220801-6802cd4116c51.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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/22569.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/22569.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-18T22:08:10+00:00\",\"dateModified\":\"2025-04-18T22:08:10+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/22569.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/22569.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/22569.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\/22569.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\u8bfb924\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf30\u6b21\u3002\u6240\u6709\u670d\u52a1\u5668\u7684\u5907\u4efd\u76ee\u5f55\u5fc5\u987b\u90fd\u4e3a\/backup\u3002\u8981\u5907\u4efd\u7684\u7cfb\u7edf\u914d\u7f6e\u6587\u4ef6\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\uff1a\u5b9a\u65f6\u4efb\u52a1\u670d\u52a1\u7684\u914d\u7f6e\u6587\u4ef6\uff08\/var\/spool\/cron\/root\uff09 \uff08\u9002\u5408Web\u548cNFS\u670d\u52a1\u5668\uff09\u3002\u5f00\u673a\u81ea\u542f\u52a8\u7684\u914d\u7f6e\u6587\u4ef6\uff08\/etc\/rc.local\uff09 \uff08\u9002\u5408Web\u548cNFS\u670d\u52a1\u5668\uff09\u3002\u65e5\u5e38\u811a\u672c\u7684\u76ee\u5f55 \uff08\/server\/scripts\uff09\u3002Web\u670d\u52a1\u5668\u8981\u6c42Web\u7ad9\u70b9\u76ee\u5f55\u5047\u5b9a\u4e3a\/var\/html\/www\uff0c\u5982\u679c\u6ca1\u6709\uff0c\u53ef\u4ee5\u5148\u6a21\u62df\u521b\u5efa\u3002Web\u670d\u52a1\u5668\u8bbf\u95ee\u65e5\u5fd7\u8def\u5f84\u5047\u5b9a\u4e3a\/app\/logs\uff0c\u5982\u679c\u6ca1\u6709\uff0c\u53ef\u4ee5\u5148\u6a21\u62df\u521b\u5efa\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/22569.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T22:08:10+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418220801-6802cd4116c51.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/22569.html","url":"https:\/\/www.wsisp.com\/helps\/22569.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-18T22:08:10+00:00","dateModified":"2025-04-18T22:08:10+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/22569.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/22569.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/22569.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\/22569","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=22569"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/22569\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/22549"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=22569"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=22569"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=22569"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=22569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}