{"id":55886,"date":"2025-08-14T09:25:00","date_gmt":"2025-08-14T01:25:00","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/55886.html"},"modified":"2025-08-14T09:25:00","modified_gmt":"2025-08-14T01:25:00","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-13","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/55886.html","title":{"rendered":"\u81ea\u52a8\u5316\u5907\u4efd\u5168\u7f51\u670d\u52a1\u5668\u6570\u636e\u5e73\u53f0"},"content":{"rendered":"<h2>\u4e00\u3001\u9879\u76ee\u80cc\u666f<\/h2>\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<h4>1\u3001\u5907\u4efd\u8981\u6c42<\/h4>\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<h4>2\u3001\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<h2>\u4e8c\u3001\u8f6f\u786c\u4ef6\u73af\u5883\u6e05\u5355<\/h2>\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<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"width:500px\">\n<tbody>\n<tr>\n<td>\u4e3b\u673a\u540d<\/td>\n<td>IP<\/td>\n<td>\u786c\u4ef6<\/td>\n<td>\u8f6f\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>web<\/td>\n<td>192.168.188.131<\/td>\n<td>cpu:1\u98972\u6838 \u5185 \u5b58&#xff1a;2GB HDD&#xff1a;20GB \u7f51 \u7edc&#xff1a;NAT<\/td>\n<td>VmWare17 Centos7.9 nginx1.20 rsync3.1.2<\/td>\n<\/tr>\n<tr>\n<td>backup<\/td>\n<td>192.168.188.132<\/td>\n<td>cpu:1\u98972\u6838 \u5185 \u5b58&#xff1a;2GB HDD&#xff1a;20GB \u7f51 \u7edc&#xff1a;NAT<\/td>\n<td>VmWare17 Centos7.9 nfs rpcbind rsync3.1.2<\/td>\n<\/tr>\n<tr>\n<td>nfs<\/td>\n<td>192.168.188.133<\/td>\n<td>cpu:1\u98972\u6838 \u5185 \u5b58&#xff1a;2GB HDD&#xff1a;20GB \u7f51 \u7edc&#xff1a;NAT<\/td>\n<td>VmWare17 Centos7.9 mailx12.5 rsync3.1.2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 style=\"background-color:transparent\">\u4e09\u3001\u9879\u76ee\u51c6\u5907<\/h2>\n<h4 style=\"background-color:transparent\">1\u3001\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\u3002<\/p>\n<\/li>\n<li>\n<p>\u4ee5web\u670d\u52a1\u5668\u4e3a\u4f8b&#xff0c;\u5176\u4ed6\u4e24\u53f0\u66f4\u6539\u4e3b\u673a\u540d\u5373\u53ef<\/p>\n<\/li>\n<li>\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<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"360\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814012455-689d3ae707db2.png\" width=\"663\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"547\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814012455-689d3ae71e715.png\" width=\"563\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"544\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814012455-689d3ae737b3e.png\" width=\"562\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"544\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814012455-689d3ae758a35.png\" width=\"564\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"550\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814012455-689d3ae77e9d7.png\" width=\"569\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"548\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814012455-689d3ae79d400.png\" width=\"564\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"549\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814012455-689d3ae7bd5cf.png\" width=\"566\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"385\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814012455-689d3ae7db89a.png\" width=\"855\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"345\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814012456-689d3ae809c6b.png\" width=\"851\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"385\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814012456-689d3ae8296ff.png\" width=\"848\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"419\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814012456-689d3ae84d179.png\" width=\"846\" \/><\/p>\n<p>\u642d\u5efa\u5b8c\u6210\u540e\u6211\u4eec\u83b7\u5f97\u4e09\u53f0\u4e3b\u673a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"385\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814012456-689d3ae877b8a.png\" width=\"360\" \/><\/p>\n<h4>2\u3001CentOS 7 \u5b89\u88c5<\/h4>\n<p>\u5b89\u88c5\u914d\u7f6e<\/p>\n<p>\u9009\u62e9\u8bed\u8a00\u548c\u533a\u57df\u8bbe\u7f6e&#xff0c;\u9ed8\u8ba4\u82f1\u8bed&#xff08;\u53ef\u540e\u7eed\u8c03\u6574&#xff09;\u3002\u8fdb\u5165\u00a0INSTALLATION SUMMARY\u00a0\u754c\u9762\u540e\u914d\u7f6e\u4ee5\u4e0b\u9009\u9879&#xff1a;<\/p>\n<ul>\n<li>\n<p>DATE &amp; TIME&#xff1a;\u8bbe\u7f6e\u65f6\u533a&#xff08;\u5982 Asia\/Shanghai&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>KEYBOARD&#xff1a;\u786e\u8ba4\u952e\u76d8\u5e03\u5c40\u3002<\/p>\n<\/li>\n<li>\n<p>INSTALLATION SOURCE&#xff1a;\u9ed8\u8ba4\u9009\u62e9\u672c\u5730\u4ecb\u8d28&#xff0c;\u5982\u9700\u7f51\u7edc\u5b89\u88c5\u53ef\u6307\u5b9a URL\u3002<\/p>\n<\/li>\n<li>\n<p>SOFTWARE SELECTION&#xff1a;\u9009\u62e9\u5b89\u88c5\u73af\u5883&#xff08;\u5982 Minimal Install\u3001GNOME Desktop&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>INSTALLATION DESTINATION&#xff1a;\u5206\u533a\u8bbe\u7f6e\u3002\u9009\u62e9\u81ea\u52a8\u5206\u533a\u6216\u624b\u52a8\u914d\u7f6e&#xff08;\u63a8\u8350\u624b\u52a8\u5212\u5206\u00a0\/\u3001\/boot\u3001swap\u00a0\u7b49&#xff09;\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u5206\u533a\u5efa\u8bae<\/p>\n<p>\u624b\u52a8\u5206\u533a\u65f6&#xff0c;\u5efa\u8bae\u4ee5\u4e0b\u914d\u7f6e&#xff08;\u4ee5 20GB \u786c\u76d8\u4e3a\u4f8b&#xff09;&#xff1a;<\/p>\n<ul>\n<li>\n<p>\/boot&#xff1a;1GB&#xff08;ext4&#xff09;<\/p>\n<\/li>\n<li>\n<p>swap&#xff1a;4GB&#xff08;\u6839\u636e\u5185\u5b58\u5927\u5c0f\u8c03\u6574&#xff09;<\/p>\n<\/li>\n<li>\n<p>\/&#xff1a;\u5269\u4f59\u7a7a\u95f4&#xff08;\u00a0xfs&#xff09;<\/p>\n<\/li>\n<\/ul>\n<p>\u5f00\u59cb\u5b89\u88c5<\/p>\n<p>\u70b9\u51fb\u00a0Begin Installation&#xff0c;\u8bbe\u7f6e root \u5bc6\u7801\u5e76\u521b\u5efa\u666e\u901a\u7528\u6237&#xff08;\u53ef\u9009&#xff09;\u3002\u7b49\u5f85\u5b89\u88c5\u5b8c\u6210&#xff0c;\u91cd\u542f\u540e\u79fb\u9664\u5b89\u88c5\u4ecb\u8d28\u3002<\/p>\n<h4>3\u3001\u5f00\u673a&#xff0c;\u5173\u95ed\u9632\u706b\u5899&#xff0c;\u7981\u7528SELinux&#xff0c;\u786e\u4fdd\u80fd\u591f\u8054\u7f51<\/h4>\n<p>[root&#064;web ~]# systemctl stop firewalld<br \/>\n[root&#064;web ~]# systemctl disable firewalld<br \/>\n[root&#064;web ~]# vim \/etc\/selinux\/config <\/p>\n<p># This file controls the state of SELinux on the system.<br \/>\n# SELINUX&#061; can take one of these three values:<br \/>\n#     enforcing &#8211; SELinux security policy is enforced.<br \/>\n#     permissive &#8211; SELinux prints warnings instead of enforcing.<br \/>\n#     disabled &#8211; No SELinux policy is loaded.<br \/>\nSELINUX&#061;disabled<br \/>\n# SELINUXTYPE&#061; can take one of three values:<br \/>\n#     targeted &#8211; Targeted processes are protected,<br \/>\n#     minimum &#8211; Modification of targeted policy. Only selected processes are protected.<br \/>\n#     mls &#8211; Multi Level Security protection.<br \/>\nSELINUXTYPE&#061;targeted<\/p>\n<p>nfs\u4e3b\u673a&#xff0c;backup\u4e3b\u673a\u540c\u4e0a<\/p>\n<h4>4\u3001\u8bbe\u7f6e\u9759\u6001IP<\/h4>\n<p>[root&#064;web~]#vi  \/etc\/sysconfig\/network-scripts\/ifcfg-ens32<br \/>\n# Generated by dracut initrd<br \/>\nNAME&#061;&#034;ens32&#034;<br \/>\nDEVICE&#061;&#034;ens32&#034;<br \/>\nONBOOT&#061;yes<br \/>\nNETBOOT&#061;yes<br \/>\nUUID&#061;&#034;7e65296d-c761-4002-80ab-0543cee4f60d&#034;<br \/>\nIPV6INIT&#061;yes<br \/>\nBOOTPROTO&#061;none<br \/>\nIPADDR&#061;&#034;192.168.188.131&#034;<br \/>\nNETMASK&#061;&#034;255.255.255.0&#034;<br \/>\nGATEWAY&#061;&#034;192.168.188.2&#034;<br \/>\nDNS1&#061;&#034;114.114.114.114&#034;<br \/>\nTYPE&#061;Ethernet<\/p>\n<p>[root&#064;web01 ~]# systemctl restart network <\/p>\n<p>nfs\u4e3b\u673a&#xff0c;backup\u4e3b\u673a\u540c\u4e0a&#xff0c;\u4ec5\u4fee\u6539IP<\/p>\n<h4>5\u3001\u914d\u7f6eyum\u6e90&#xff0c;\u4e0b\u8f7d\u6240\u9700\u8f6f\u4ef6<\/h4>\n<p>\u5207\u5230yum\u6e90\u76ee\u5f55\u4e0b&#xff0c;\u5220\u9664\u539fyum\u6e90&#xff0c;\u6253\u5f00xftp\u5c06Centos-7yum\u6e90\u5bfc\u5165<\/p>\n<p>[root&#064;web ~]# cd \/etc\/yum.repos.d\/<br \/>\n[root&#064;web yum.repos.d]# rm -f *<br \/>\n[root&#064;web~]# wget -O \/etc\/yum.repos.d\/epel.repo https:\/\/mirrors.aliyun.com\/repo\/epel-7.repo <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"155\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814012456-689d3ae88e803.png\" width=\"940\" \/><\/p>\n<h5>web\u7aef\u73af\u5883\u642d\u5efa<\/h5>\n<p>[root&#064;web~]# yum  makecache<br \/>\n[root&#064;web~]# yum  install  nginx  -y<br \/>\n[root&#064;web~]# mkdir  -p  \/www\/sczl<br \/>\n[root&#064;web~]# cd  \/www\/sczl<\/p>\n<p>\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=\"315\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814012456-689d3ae8abadc.png\" width=\"930\" \/><\/p>\n<p>\u4fee\u6539nginx\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>[root&#064;web~]# vim  \/etc\/nginx\/nginx.conf<br \/>\n42         root         \/www\/sczl;<br \/>\n[root&#064;web~]# systemctl start nginx<br \/>\n[root&#064;web~]# 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=\"980\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814012456-689d3ae8d142f.png\" width=\"1905\" \/><\/p>\n<h5>nfs\u7aef\u73af\u5883\u642d\u5efa<\/h5>\n<p>[root&#064;nfs ~]# yum  install  rpcbind  -y<br \/>\n[root&#064;nfs ~]# yum  install  nfs-utils  -y<br \/>\n[root&#064;nfs ~]# mkdir  \/nfsfile<br \/>\n[root&#064;nfs ~]# echo  &#034;welcome to www.openlab.com&#034; &gt; \/nfsfile\/readme<br \/>\n[root&#064;nfs ~]# chmod  -Rf  777  \/nfsfile<\/p>\n<p>\u7f16\u8f91nfs\u914d\u7f6e\u6587\u4ef6&#xff0c;\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9<\/p>\n<p>[root&#064;nfs ~]# vim  \/etc\/exports<br \/>\n\/nfsfile        192.168.188.131\/24(rw,sync,all_squash)<\/p>\n<p>[root&#064;nfs ~]# systemctl start  rpcbind<br \/>\n[root&#064;nfs ~]# systemctl enable  rpcbind<br \/>\n[root&#064;nfs ~]# systemctl start  nfs-server<br \/>\n[root&#064;nfs ~]# 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<h5>backup\u7aef\u73af\u5883\u642d\u5efa<\/h5>\n<p>\u4fee\u6539rsync\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>[root&#064;backup ~]# vim \/etc\/rsyncd.conf<br \/>\nuid &#061; rsync<br \/>\ngid &#061; rsync<br \/>\nuse chroot &#061; no<br \/>\nmax connections &#061; 200<br \/>\ntimeout &#061; 300<br \/>\npid file &#061; \/var\/run\/rsyncd.pid<br \/>\nlock file &#061; \/var\/run\/rsync.lock<br \/>\nlog file &#061; \/var\/log\/rsyncd.log<br \/>\nfake super &#061; yes<\/p>\n<p>[backup]<br \/>\n        path &#061; \/backup<br \/>\n        ignore errors<br \/>\n        read only &#061; false<br \/>\n        list &#061; false<br \/>\n        hosts allow &#061; 192.168.188.131\/24  192.168.188.133\/24<br \/>\n        hosts deny &#061; 0.0.0.0\/32<br \/>\n        auth users &#061; rsync<br \/>\n        secrets file &#061; \/etc\/rsync.password<\/p>\n<p>\u521b\u5efarsync\u8d26\u6237\u53ca\u5171\u4eab\u76ee\u5f55\u5e76\u4fee\u6539\u76ee\u5f55\u5c5e\u4e3b\u4e3arsync<\/p>\n<p>[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>[root&#064;backup ~]# systemctl enable &#8211;now rsyncd<br \/>\n[root&#064;backup ~]# ps -ef | grep rsync<br \/>\nroot  1333   1  0 15:09 ?      00:00:00 \/usr\/bin\/rsync &#8211;daemon &#8211;no-detach<br \/>\nroot  1335   1261  0 15:09 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>6\u3001\u5c06nfs\u7aef\u4e0b\u7684nfsfile\u76ee\u5f55\u6302\u8f7d\u5230web\u5ba2\u6237\u7aef<\/p>\n<p>[root&#064;web web_nfs]# vim  \/etc\/fstab<br \/>\n192.168.88.201:\/nfsfile   \/web_nfs   nfs    defaults    0    0<\/p>\n<p>[root&#064;web01 web_nfs]# mount  -a<br \/>\n[root&#064;web01 web_nfs]# 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.88.201:\/nfsfile   17G  1.6G   16G   9% \/web_nfs <\/p>\n<h2>\u56db\u3001\u914d\u7f6e\u5907\u4efd\u811a\u672c<\/h2>\n<h4>1\u3001\u914d\u7f6eweb\u5ba2\u6237\u7aef\u672c\u5730\u5907\u4efd\u811a\u672c<\/h4>\n<p>[root&#064;web ~]# mkdir  \/backup<br \/>\n[root&#064;web ~]# mkdir -p  \/server\/scripts<br \/>\n#!\/bin\/bash<br \/>\n#Date:2025-8-7<br \/>\n#Author:lipengyuan<br \/>\n#Mail:2984909618&#064;qq.com<br \/>\n#Function:Regularly backup data from web servers<br \/>\n#Version:V1.0<\/p>\n<p>Date&#061;$(date &#043;%F_Week0%w)<br \/>\nHost_IP&#061;$(ifconfig ens32 | awk &#039;NR&#061;&#061;2{print $2}&#039;)<br \/>\nBackup_Dir&#061;&#034;\/backup\/&#034;<br \/>\nBackup_Server_IP&#061;192.168.188.132<br \/>\nmount -l &gt; \/var\/log\/mount.log<\/p>\n<p>[ ! -d $Backup_Dir\/$Host_IP ] &amp;&amp; mkdir -p $Backup_Dir\/$Host_IP<\/p>\n<p>echo ${Date} ${Host_IP} start backup &#8230;&#8230;<\/p>\n<p>cd \/ &amp;&amp;\\\\<br \/>\ntar -cf ${Backup_Dir}${Host_IP}\/sys_file_bak_${Date}_tar.gz var\/spool\/cron &amp;&amp;\\\\<br \/>\ntar -rf ${Backup_Dir}${Host_IP}\/sys_file_bak_${Date}_tar.gz etc\/rc.d\/rc.local &amp;&amp;\\\\<br \/>\ntar -rf ${Backup_Dir}${Host_IP}\/sys_file_bak_${Date}_tar.gz server\/scripts\/ &amp;&amp;\\\\<br \/>\ntar -zcf $Backup_Dir$Host_IP\/www_${Date}_tar.gz www\/ &amp;&amp;\\\\<br \/>\ntar -zcf $Backup_Dir$Host_IP\/nginx_logs_${Date}_tar.gz var\/log\/nginx\/ &amp;&amp;\\\\<\/p>\n<p>find ${Backup_Dir:-\/tmp} -type f -name &#034;*${Date}_tar.gz&#034; | xargs md5sum &gt; $Backup_Dir\/$Host_IP\/${Date}.flag<\/p>\n<p>rsync -az $Backup_Dir rsync&#064;${Backup_Server_IP}::backup &#8211;password-file&#061;\/etc\/rsync.password<\/p>\n<p>find ${Backup_Dir:-\/tmp} -type f -name &#034;*.tar.gz&#034; -a -name &#034;*flag*&#034; -mtime &#043;7 | xargs rm -f<\/p>\n<p>echo &#034;Local backup successful,the backup files have been pushed to the backup server&#034;<br \/>\n[root&#064;web ~]# 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;web ~]# chmod 600 \/etc\/rsync.password   # \u5bc6\u7801\u8ba4\u8bc1\u6587\u4ef6\u5fc5\u987b\u4e3a600 <\/p>\n<h4>2\u3001\u914d\u7f6enfs\u5ba2\u6237\u7aef\u672c\u5730\u5907\u4efd\u811a\u672c<\/h4>\n<p>[root&#064;nfs ~]# mkdir  \/backup<br \/>\n[root&#064;nfs ~]# mkdir -p  \/server\/scripts<\/p>\n<p>#!\/bin\/bash<br \/>\n#Date:2025-8-7<br \/>\n#Author:lipengyuan<br \/>\n#Mail:2984909618&#064;qq.com<br \/>\n#Function:Regularly backup data from web servers<br \/>\n#Version:V1.0<\/p>\n<p>Date&#061;$(date &#043;%F_Week0%w)<br \/>\nHost_IP&#061;$(ifconfig ens32 | awk &#039;NR&#061;&#061;2{print $2}&#039;)<br \/>\nBackup_Dir&#061;&#034;\/backup\/&#034;<br \/>\nBackup_Server_IP&#061;192.168.188.132<br \/>\nmount -l &gt; \/var\/log\/mount.log<\/p>\n<p>[ ! -d $Backup_Dir\/$Host_IP ] &amp;&amp; mkdir -p $Backup_Dir\/$Host_IP<\/p>\n<p>echo ${Date} ${Host_IP} start backup &#8230;&#8230;<\/p>\n<p>cd \/ &amp;&amp;\\\\<br \/>\ntar -cf ${Backup_Dir}${Host_IP}\/sys_file_bak_${Date}_tar.gz var\/spool\/cron &amp;&amp;\\\\<br \/>\ntar -rf ${Backup_Dir}${Host_IP}\/sys_file_bak_${Date}_tar.gz etc\/rc.d\/rc.local &amp;&amp;\\\\<br \/>\ntar -rf ${Backup_Dir}${Host_IP}\/sys_file_bak_${Date}_tar.gz server\/scripts\/ &amp;&amp;\\\\<br \/>\ntar -zcf $Backup_Dir$Host_IP\/nfs_${Date}_tar.gz nfsfile\/ &amp;&amp;\\\\<br \/>\ntar -zcf $Backup_Dir$Host_IP\/mount_logs_${Date}_tar.gz var\/log\/mount.log\/ &amp;&amp;\\\\<\/p>\n<p>find ${Backup_Dir:-\/tmp} -type f -name &#034;*${Date}_tar.gz&#034; | xargs md5sum &gt; $Backup_Dir\/$Host_IP\/${Date}.flag<\/p>\n<p>rsync -az $Backup_Dir rsync&#064;${Backup_Server_IP}::backup &#8211;password-file&#061;\/etc\/rsync.password<\/p>\n<p>find ${Backup_Dir:-\/tmp} -type f -name &#034;*.tar.gz&#034; -a -name &#034;*flag*&#034; -mtime &#043;7 | xargs rm -f<\/p>\n<p>echo &#034;Local backup successful,the backup files have been pushed to the backup server&#034; <\/p>\n<h4 style=\"background-color:transparent\">3\u3001\u6d4b\u8bd5&#xff08;\u5728backup\u670d\u52a1\u5668\u4e2d\u53ef\u4ee5\u770b\u5230\u63a8\u9001\u7684\u6570\u636e&#xff09;<\/h4>\n<p>[root&#064;nfs ~]# bash  \/server\/scripts\/backup.sh<br \/>\n[root&#064;backup ~]# ls  \/backup\/<br \/>\n192.168.88.200  192.168.88.201 <\/p>\n<h2>\u4e94\u3001\u914d\u7f6e\u5b9a\u65f6\u4efb\u52a1<\/h2>\n<h4>1\u3001web01\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;web ~]# crontab -l<br \/>\n00 00 * * * \/bin\/sh \/server\/scripts\/backup.sh &gt;\/dev\/null 2&gt;&amp;1<br \/>\n[root&#064;web ~]# crontab -e<\/p>\n<p>00 00 * * * \/bin\/sh \/server\/scripts\/backup.sh &gt;\/dev\/null 2&gt;&amp;1 <\/p>\n<h4>2\u3001nfs01\u670d\u52a1\u5668\u8fc7\u7a0b\u540c\u4e0a<\/h4>\n<h4>3\u3001backup\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<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>#!\/bin\/bash<br \/>\n# Date:2025-8-8<br \/>\n# Author:lpy<br \/>\n# Mail:2984909618&#064;qq.com<br \/>\n# Function: Delete all backup data from 180 days ago, but save every Monday<br \/>\n# Version: V1.0<\/p>\n<p>Backup_Dir&#061;&#034;\/backup\/&#034;<br \/>\nfind ${Backup_Dir:-\/tmp} -type f  -name &#034;*tar.gz*&#034; ! -name &#034;*Week01*&#034; -o -name &#034;*flag*&#034; -mtime &#043;7|xargs rm -f<\/p>\n<p>find ${Backup_Dir:-\/tmp} -type f -name &#034;*tar.gz*&#034; -name &#034;*flag*&#034; -mtime &#043;180|xargs rm -f<\/p>\n<h4>4\u3001backup\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># crond-id-003:data backup<br \/>\n00 00 * * * \/bin\/sh \/server\/scripts\/del_bak_data.sh &gt;\/dev\/null 2&gt;&amp;1 <\/p>\n<h2>\u516d\u3001\u6570\u636e\u4f20\u8f93\u5b8c\u6574\u6027\u9a8c\u8bc1\u4e0e\u76d1\u63a7\u544a\u8b66<\/h2>\n<h4>1\u3001\u9a8c\u8bc1\u6570\u636e\u5b8c\u6574\u6027<\/h4>\n<p>[root&#064;backup ~]# vim \/server\/scripts\/send_mail.sh<br \/>\n#!\/bin\/bash<br \/>\nDate&#061;$(date &#043;%F_Week0%w)<br \/>\nBackup_Dir&#061;&#034;\/backup\/&#034;<br \/>\nCheck_Log&#061;&#034;\/tmp\/bak.log_$(date &#043;%F)&#034;<br \/>\nAdmin_Mail&#061;2984909618&#064;qq.com<\/p>\n<p>find $Backup_Dir -type f -name &#034;${Date}.flag&#034; | xargs md5sum -c &gt;&gt; $Check_Log<\/p>\n<p>if [ -n &#034;cat $Check_Log&#034;  ]<br \/>\nthen<br \/>\n        mail -s &#034;$Date backup data info&#034; $Admin_Mail &lt; $Check_Log<br \/>\nelse<br \/>\n        echo &#034;$Date backup data error,please check it&#034; &gt; $Check_Log<br \/>\n        mail -s &#034;$Date backup data info&#034; $Admin_Mail &lt; $Check_Log<br \/>\nfi<br \/>\ncp $Check_Log{,.ori} &amp;&amp; &gt; $Check_Log<\/p>\n<h4>2\u3001\u914d\u7f6e\u90ae\u4ef6\u544a\u8b66<\/h4>\n<p>[root&#064;backup ~]# yum  install  mailx  -y<br \/>\n[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<h4>3\u3001\u914d\u7f6e\u90ae\u4ef6\u670d\u52a1<\/h4>\n<p>[root&#064;backup ~]# cd  \/root\/.certs<br \/>\n[root&#064;backup .certs]# vim  \/etc\/mail.rc<\/p>\n<p>set showto<\/p>\n<p># Automatically check for new messages at each prompt, but avoid polling<br \/>\n# of IMAP servers or maildir folders.<br \/>\nset newmail&#061;nopoll<\/p>\n<p># If threaded mode is activated, automatically collapse thread.<br \/>\nset autocollapse<\/p>\n<p># Mark messages that have been answered.<br \/>\nset markanswered<\/p>\n<p># Hide some header fields which are uninteresting for most human readers.<br \/>\nignore received in-reply-to message-id references<br \/>\nignore mime-version content-transfer-encoding<\/p>\n<p># Only include selected header fields when forwarding messages.<br \/>\nfwdretain subject date from to<\/p>\n<p># For Linux and BSD, this should be set.<br \/>\nset bsdcompat<\/p>\n<p>set from&#061;2984909618&#064;qq.com<br \/>\nset smtp&#061;smtps:\/\/smtp.qq.com:465<br \/>\nset smtp-auth-user&#061;2984909618&#064;qq.com<br \/>\nset smtp-auth-password&#061;xrxncmkbbxywddjh<br \/>\nset smtp-auth&#061;login<br \/>\nset nss-config-dir&#061;\/root\/.certs\/<br \/>\nset ssl-verify&#061;ignore <\/p>\n<h4 style=\"background-color:transparent\">4\u3001\u6d4b\u8bd5\u90ae\u4ef6\u670d\u52a1<\/h4>\n<p>[root&#064;backup ~]# echo  &#034;lpy&#034;  |  mail  -s  &#034;ll&#034;  2984909618&#064;qq.com<\/p>\n<p>[root&#064;backup ~]# bash \/server\/scripts\/send_mail.sh <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"746\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814012458-689d3aeae4a7c.png\" width=\"1392\" \/><\/p>\n<h2 style=\"background-color:transparent\">\u4e03\u3001\u9879\u76ee\u5c0f\u7ed3<\/h2>\n<p>\u8be5\u9879\u76ee\u56f4\u7ed5\u4f01\u4e1a Web \u670d\u52a1\u5668\u6570\u636e\u5907\u4efd\u5c55\u5f00&#xff0c;\u901a\u8fc7 web01\u3001backup\u3001nfs01 \u4e09\u53f0\u670d\u52a1\u5668\u534f\u4f5c\u5b9e\u73b0\u3002\u5148\u642d\u5efa\u73af\u5883&#xff0c;\u5305\u62ec\u5b89\u88c5\u7cfb\u7edf\u3001\u914d\u7f6e\u7f51\u7edc\u3001\u5173\u95ed\u9632\u706b\u5899\u3001\u8bbe\u7f6e yum \u6e90\u53ca\u90e8\u7f72\u76f8\u5173\u8f6f\u4ef6\u3002\u63a5\u7740\u4e3a web \u548c nfs \u670d\u52a1\u5668\u914d\u7f6e\u672c\u5730\u5907\u4efd\u811a\u672c&#xff0c;\u5b9a\u65f6\u6253\u5305\u5173\u952e\u6570\u636e\u5e76\u751f\u6210\u6821\u9a8c\u6587\u4ef6&#xff0c;\u901a\u8fc7 rsync \u63a8\u81f3 backup \u670d\u52a1\u5668&#xff0c;\u672c\u5730\u4fdd\u7559 7 \u5929\u6570\u636e\u3002backup \u670d\u52a1\u5668\u5219\u914d\u7f6e\u811a\u672c\u5220\u9664 180 \u5929\u524d\u6570\u636e\u4f46\u4fdd\u7559\u6bcf\u5468\u4e00\u5907\u4efd&#xff0c;\u5e76\u8bbe\u5b9a\u65f6\u4efb\u52a1\u81ea\u52a8\u6267\u884c\u3002\u540c\u65f6&#xff0c;\u901a\u8fc7\u6821\u9a8c\u5907\u4efd\u6587\u4ef6\u5b8c\u6574\u6027&#xff0c;\u7ed3\u5408 mailx \u914d\u7f6e\u90ae\u4ef6\u670d\u52a1\u5b9e\u73b0\u544a\u8b66\u3002\u65b9\u6848\u5b9e\u73b0\u4e86\u6570\u636e\u81ea\u52a8\u5907\u4efd\u3001\u6e05\u7406\u53ca\u76d1\u63a7&#xff0c;\u4fdd\u969c\u6570\u636e\u5b89\u5168\u4e0e\u53ef\u6062\u590d\u6027\u3002<\/p>\n<p>\u4ece\u8be5\u9879\u76ee\u4e2d&#xff0c;\u6211\u5b66\u5230\u4f01\u4e1a\u6570\u636e\u5907\u4efd\u7684\u7cfb\u7edf\u601d\u8def&#xff1a;\u9700\u660e\u786e\u591a\u670d\u52a1\u5668\u5206\u5de5&#xff0c;\u901a\u8fc7\u5206\u79bb\u6e90\u6570\u636e\u4e0e\u5907\u4efd\u5b58\u50a8\u964d\u4f4e\u98ce\u9669\u3002\u638c\u63e1\u4e86\u73af\u5883\u642d\u5efa\u7684\u57fa\u7840\u64cd\u4f5c&#xff0c;\u5982\u914d\u7f6e\u7f51\u7edc\u3001\u5173\u95ed\u4e0d\u5fc5\u8981\u5b89\u5168\u7ec4\u4ef6\u3001\u90e8\u7f72\u6240\u9700\u8f6f\u4ef6\u3002\u5b66\u4f1a\u7f16\u5199\u5907\u4efd\u811a\u672c&#xff0c;\u5b9e\u73b0\u6570\u636e\u6253\u5305\u3001\u6821\u9a8c\u53ca\u8fdc\u7a0b\u4f20\u8f93&#xff0c;\u5e76\u7ed3\u5408\u5b9a\u65f6\u4efb\u52a1\u5b9e\u73b0\u81ea\u52a8\u5316\u3002\u8fd8\u4e86\u89e3\u5230\u5206\u5c42\u5907\u4efd\u7b56\u7565&#xff0c;\u672c\u5730\u77ed\u671f\u7559\u5b58\u4e0e\u8fdc\u7a0b\u957f\u671f\u5f52\u6863\u7ed3\u5408&#xff0c;\u4ee5\u53ca\u7528\u6821\u9a8c\u673a\u5236\u548c\u90ae\u4ef6\u544a\u8b66\u4fdd\u969c\u5907\u4efd\u6709\u6548\u6027\u3002\u8fd9\u4e9b\u5185\u5bb9\u5c55\u73b0\u4e86\u4ece\u73af\u5883\u51c6\u5907\u5230\u81ea\u52a8\u5316\u8fd0\u7ef4\u3001\u76d1\u63a7\u544a\u8b66\u7684\u5b8c\u6574\u6570\u636e\u5b89\u5168\u95ed\u73af\u601d\u7ef4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.5k\u6b21\uff0c\u70b9\u8d5e61\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u4f01\u4e1aWeb\u670d\u52a1\u5668\u6570\u636e\u5907\u4efd\u65b9\u6848\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u65bd\u8fc7\u7a0b\u3002\u65b9\u6848\u91c7\u7528rsync\u5b9e\u73b0Web\u670d\u52a1\u5668\uff08web01\uff09\u4e0e\u5907\u4efd\u670d\u52a1\u5668\uff08backup\uff09\u95f4\u7684\u6570\u636e\u540c\u6b65\uff0c\u5305\u542b\u4ee5\u4e0b\u6838\u5fc3\u5185\u5bb9\uff1a1\uff09\u642d\u5efa\u4e09\u53f0CentOS7.9\u670d\u52a1\u5668\u73af\u5883\uff1b2\uff09\u914d\u7f6e\u5b9a\u65f6\u5907\u4efd\u811a\u672c\uff0c\u6bcf\u65e500:00\u6253\u5305\u7cfb\u7edf\u914d\u7f6e\u6587\u4ef6\u3001\u7f51\u7ad9\u76ee\u5f55\u53ca\u65e5\u5fd7\u6587\u4ef6\uff1b3\uff09\u8bbe\u7f6e\u5907\u4efd\u4fdd\u7559\u7b56\u7565\uff08\u672c\u57307\u5929\uff0c\u5907\u4efd\u670d\u52a1\u56687\u5929\u5e38\u89c4+6\u4e2a\u6708\u5468\u4e00\u6570\u636e\uff09\uff1b4\uff09\u5b9e\u73b0\u90ae\u4ef6\u544a\u8b66\u529f\u80fd<\/p>\n","protected":false},"author":2,"featured_media":55870,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,43,395,44],"topic":[],"class_list":["post-55886","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux","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\/55886.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\u8bfb1.5k\u6b21\uff0c\u70b9\u8d5e61\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u4f01\u4e1aWeb\u670d\u52a1\u5668\u6570\u636e\u5907\u4efd\u65b9\u6848\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u65bd\u8fc7\u7a0b\u3002\u65b9\u6848\u91c7\u7528rsync\u5b9e\u73b0Web\u670d\u52a1\u5668\uff08web01\uff09\u4e0e\u5907\u4efd\u670d\u52a1\u5668\uff08backup\uff09\u95f4\u7684\u6570\u636e\u540c\u6b65\uff0c\u5305\u542b\u4ee5\u4e0b\u6838\u5fc3\u5185\u5bb9\uff1a1\uff09\u642d\u5efa\u4e09\u53f0CentOS7.9\u670d\u52a1\u5668\u73af\u5883\uff1b2\uff09\u914d\u7f6e\u5b9a\u65f6\u5907\u4efd\u811a\u672c\uff0c\u6bcf\u65e500:00\u6253\u5305\u7cfb\u7edf\u914d\u7f6e\u6587\u4ef6\u3001\u7f51\u7ad9\u76ee\u5f55\u53ca\u65e5\u5fd7\u6587\u4ef6\uff1b3\uff09\u8bbe\u7f6e\u5907\u4efd\u4fdd\u7559\u7b56\u7565\uff08\u672c\u57307\u5929\uff0c\u5907\u4efd\u670d\u52a1\u56687\u5929\u5e38\u89c4+6\u4e2a\u6708\u5468\u4e00\u6570\u636e\uff09\uff1b4\uff09\u5b9e\u73b0\u90ae\u4ef6\u544a\u8b66\u529f\u80fd\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/55886.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-14T01:25:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814012455-689d3ae707db2.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=\"9 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/55886.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/55886.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-08-14T01:25:00+00:00\",\"dateModified\":\"2025-08-14T01:25:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/55886.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/55886.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/55886.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\/55886.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\u8bfb1.5k\u6b21\uff0c\u70b9\u8d5e61\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u4f01\u4e1aWeb\u670d\u52a1\u5668\u6570\u636e\u5907\u4efd\u65b9\u6848\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u65bd\u8fc7\u7a0b\u3002\u65b9\u6848\u91c7\u7528rsync\u5b9e\u73b0Web\u670d\u52a1\u5668\uff08web01\uff09\u4e0e\u5907\u4efd\u670d\u52a1\u5668\uff08backup\uff09\u95f4\u7684\u6570\u636e\u540c\u6b65\uff0c\u5305\u542b\u4ee5\u4e0b\u6838\u5fc3\u5185\u5bb9\uff1a1\uff09\u642d\u5efa\u4e09\u53f0CentOS7.9\u670d\u52a1\u5668\u73af\u5883\uff1b2\uff09\u914d\u7f6e\u5b9a\u65f6\u5907\u4efd\u811a\u672c\uff0c\u6bcf\u65e500:00\u6253\u5305\u7cfb\u7edf\u914d\u7f6e\u6587\u4ef6\u3001\u7f51\u7ad9\u76ee\u5f55\u53ca\u65e5\u5fd7\u6587\u4ef6\uff1b3\uff09\u8bbe\u7f6e\u5907\u4efd\u4fdd\u7559\u7b56\u7565\uff08\u672c\u57307\u5929\uff0c\u5907\u4efd\u670d\u52a1\u56687\u5929\u5e38\u89c4+6\u4e2a\u6708\u5468\u4e00\u6570\u636e\uff09\uff1b4\uff09\u5b9e\u73b0\u90ae\u4ef6\u544a\u8b66\u529f\u80fd","og_url":"https:\/\/www.wsisp.com\/helps\/55886.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-14T01:25:00+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814012455-689d3ae707db2.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"9 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/55886.html","url":"https:\/\/www.wsisp.com\/helps\/55886.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-08-14T01:25:00+00:00","dateModified":"2025-08-14T01:25:00+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/55886.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/55886.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/55886.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\/55886","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=55886"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/55886\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/55870"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=55886"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=55886"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=55886"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=55886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}