{"id":57034,"date":"2025-08-15T07:10:20","date_gmt":"2025-08-14T23:10:20","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/57034.html"},"modified":"2025-08-15T07:10:20","modified_gmt":"2025-08-14T23:10:20","slug":"linux%e9%a1%b9%e7%9b%ae-%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\/57034.html","title":{"rendered":"Linux\u9879\u76ee\u2014\u2014\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\u6709\u4e00\u53f0Web\u670d\u52a1\u5668&#xff0c;\u91cc\u9762\u50a8\u5b58\u6709\u91cd\u8981\u6570\u636e&#xff0c;\u4e3a\u9632\u6b62\u56e0\u8bbe\u5907\u635f\u574f\u5bfc\u81f4\u7684\u6570\u636e\u4e22\u5931&#xff0c;\u73b0\u5728\u9700\u8981\u4e3a\u6570\u636e\u5236\u4f5c\u5907\u4efd&#xff0c;\u4ee5\u5728\u6570\u636e\u4e22\u5931\u540e\u6062\u590d\u6570\u636e\u3002<\/p>\n<hr \/>\n<h3 style=\"background-color:transparent\">1\u3001\u9879\u76ee\u8981\u6c42<\/h3>\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<hr \/>\n<h3>2\u3001\u5907\u4efd\u9700\u6c42<\/h3>\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<hr \/>\n<h3 style=\"background-color:transparent\">3\u3001\u8bbe\u5907\u8bf4\u660e<\/h3>\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<table>\n<tr>\u4e3b\u673a\u540dIP\u5730\u5740\u786c\u4ef6\u8f6f\u4ef6<\/tr>\n<tbody>\n<tr>\n<td style=\"text-align:center\">web01<\/td>\n<td style=\"text-align:center\">192.168.86.200<\/td>\n<td>\n<p style=\"text-align:center\">cpu:1\u98972\u6838<\/p>\n<p style=\"text-align:center\">\u5185 \u5b58&#xff1a;2GB<\/p>\n<p style=\"text-align:center\">HDD&#xff1a;20GB<\/p>\n<p style=\"text-align:center\">\u7f51 \u7edc&#xff1a;NAT<\/p>\n<\/td>\n<td>\n<p style=\"text-align:center\">VmWare17<\/p>\n<p style=\"text-align:center\">Centos7.9<\/p>\n<p style=\"text-align:center\">nginx1.20<\/p>\n<p style=\"text-align:center\">rsync3.1.2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center\">nfs01<\/td>\n<td style=\"text-align:center\">192.168.86.201<\/td>\n<td>\n<p style=\"text-align:center\">cpu:1\u98972\u6838<\/p>\n<p style=\"text-align:center\">\u5185 \u5b58&#xff1a;2GB<\/p>\n<p style=\"text-align:center\">HDD&#xff1a;20GB<\/p>\n<p style=\"text-align:center\">\u7f51 \u7edc&#xff1a;NAT<\/p>\n<\/td>\n<td>\n<p style=\"text-align:center\">VmWare17<\/p>\n<p style=\"text-align:center\">Centos7.9<\/p>\n<p style=\"text-align:center\">nfs<\/p>\n<p style=\"text-align:center\">rpcbind<\/p>\n<p style=\"text-align:center\">rsync3.1.2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center\">backup<\/td>\n<td style=\"text-align:center\">192.168.86.202<\/td>\n<td>\n<p style=\"text-align:center\">cpu:1\u98972\u6838<\/p>\n<p style=\"text-align:center\">\u5185 \u5b58&#xff1a;2GB<\/p>\n<p style=\"text-align:center\">HDD&#xff1a;20GB<\/p>\n<p style=\"text-align:center\">\u7f51 \u7edc&#xff1a;NAT<\/p>\n<\/td>\n<td>\n<p style=\"text-align:center\">VmWare17<\/p>\n<p style=\"text-align:center\">Centos7.9<\/p>\n<p style=\"text-align:center\">mailx12.5<\/p>\n<p style=\"text-align:center\">rsync3.1.2<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e3b\u673a\u4f7f\u7528Centos7.9\u64cd\u4f5c\u7cfb\u7edf&#xff0c;\u4e0b\u8f7d\u94fe\u63a5\u5982\u4e0b&#xff1a;https:\/\/mirrors.aliyun.com\/centos\/7.9.2009\/isos\/x86_64\/CentOS-7-x86_64-DVD-2207-02.iso<\/p>\n<hr \/>\n<h2 style=\"background-color:transparent\">\u4e8c\u3001\u9879\u76ee\u73af\u5883\u642d\u5efa<\/h2>\n<h3>1\u3001web01\u670d\u52a1\u5668\u73af\u5883\u642d\u5efa<\/h3>\n<p>\u521b\u5efa\u865a\u62df\u673a\u4e0e\u5b89\u88c5\u64cd\u4f5c\u7cfb\u7edf\u6b65\u9aa4\u7701\u7565<\/p>\n<h5>\u524d\u671f\u914d\u7f6e<\/h5>\n<p>nmtui\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u914d\u7f6e\u9759\u6001ip<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"476\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814231016-689e6cd8b61f6.png\" width=\"603\" \/><\/p>\n<p>systemctl stop firewalld\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u5173\u95ed\u9632\u706b\u5899 systemctl disable firewalld\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u7981\u6b62\u9632\u706b\u5899\u5f00\u673a\u542f\u52a8 vi \/etc\/selinux\/config\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u5173\u95edselinux hostnamectl set-hostname web01\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u4fee\u6539\u4e3b\u673a\u540d\u4e3aweb01 reboot\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u91cd\u542f<\/p>\n<p>\u8fde\u63a5Xshell<\/p>\n<hr \/>\n<h5>\u914d\u7f6eyum\u6e90\u5e76\u5b89\u88c5\u8f6f\u4ef6<\/h5>\n<p>curl -o \/etc\/yum.repos.d\/CentOS-Base.repo https:\/\/mirrors.aliyun.com\/repo\/Centos-7.repo\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u5b89\u88c5\u963f\u91ccyum\u6e90<\/p>\n<p>yum clean all\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u6e05\u7406 yum \u7f13\u5b58<\/p>\n<p>yum makecache\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u751f\u6210\u65b0\u7684 yum \u7f13\u5b58<\/p>\n<p>yum install vim \u00a0tree tar net-tools rsync nfs-utils wget\u00a0nginx -y\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u5b89\u88c5\u6240\u9700\u8f6f\u4ef6<\/p>\n<hr \/>\n<h5 style=\"background-color:transparent\">\u90e8\u7f72\u793a\u4f8b\u7f51\u7ad9<\/h5>\n<p>wget -O \/etc\/yum.repos.d\/epel.repo https:\/\/mirrors.aliyun.com\/repo\/epel-7.repo\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u4e0b\u8f7d\u963f\u91cc\u4e91 EPEL \u6e90\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>yum makecache\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u751f\u6210\u65b0\u7684 yum \u7f13\u5b58 mkdir \u00a0-p \u00a0\/www\/sczl\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u521b\u5efa\u65b0\u76ee\u5f55 cd \u00a0\/www\/sczl\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u8f6c\u5165sczl\u76ee\u5f55 \u4f7f\u7528xftp\u5c06web\u6e90\u6587\u4ef6\u4e0a\u4f20\u81f3\/www\/sczl<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"70\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814231016-689e6cd8d6653.png\" width=\"466\" \/><\/p>\n<p>vim \u00a0\/etc\/nginx\/nginx.conf\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u4fee\u6539nginx\u914d\u7f6e\u6587\u4ef6<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"119\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814231016-689e6cd8e62c8.png\" width=\"377\" \/><\/p>\n<p>systemctl start nginx\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u5f00\u542fnginx\u670d\u52a1<\/p>\n<p>systemctl enable nginx\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u5f00\u673a\u81ea\u542f\u52a8nginx\u670d\u52a1<\/p>\n<p>\u4e8e\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165web01ip 192.168.86.200&#xff0c;\u7ed3\u679c\u5982\u4e0b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"959\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814231017-689e6cd906873.png\" width=\"1905\" \/><\/p>\n<p>\u6210\u529f\u642d\u5efaweb01\u670d\u52a1\u5668<\/p>\n<h3 style=\"background-color:transparent\">2\u3001nfs01\u670d\u52a1\u5668\u73af\u5883\u642d\u5efa<\/h3>\n<p>\u521b\u5efa\u865a\u62df\u673a\u4e0e\u5b89\u88c5\u64cd\u4f5c\u7cfb\u7edf\u6b65\u9aa4\u7701\u7565<\/p>\n<h5 style=\"background-color:transparent\">\u524d\u671f\u914d\u7f6e<\/h5>\n<p>nmtui\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u914d\u7f6e\u9759\u6001ip<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"469\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814231017-689e6cd9d9d46.png\" width=\"598\" \/><\/p>\n<p>systemctl stop firewalld\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u5173\u95ed\u9632\u706b\u5899 systemctl disable firewalld\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u7981\u6b62\u9632\u706b\u5899\u5f00\u673a\u542f\u52a8 vi \/etc\/selinux\/config\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u5173\u95edselinux hostnamectl set-hostname nfs01\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u4fee\u6539\u4e3b\u673a\u540d\u4e3aweb01 reboot\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u91cd\u542f<\/p>\n<p>\u8fde\u63a5Xshell<\/p>\n<hr \/>\n<h5>\u914d\u7f6eyum\u6e90\u5e76\u5b89\u88c5\u8f6f\u4ef6<\/h5>\n<p>curl -o \/etc\/yum.repos.d\/CentOS-Base.repo https:\/\/mirrors.aliyun.com\/repo\/Centos-7.repo\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u5b89\u88c5\u963f\u91ccyum\u6e90<\/p>\n<p>yum clean all\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u6e05\u7406 yum \u7f13\u5b58<\/p>\n<p>yum makecache\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u751f\u6210\u65b0\u7684 yum \u7f13\u5b58<\/p>\n<p>yum install vim \u00a0tree tar net-tools rsync\u00a0rpcbind\u00a0nfs-utils -y\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u5b89\u88c5\u6240\u9700\u8f6f\u4ef6<\/p>\n<hr \/>\n<h5>\u90e8\u7f72\u5171\u4eab\u50a8\u5b58<\/h5>\n<p>mkdir \u00a0\/nfsfile\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u521b\u5efa NFS \u5171\u4eab\u76ee\u5f55 echo \u00a0&#034;welcome to www.openlab.com&#034; &gt; \/nfsfile\/readme\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u5199\u5165\u6d4b\u8bd5\u6587\u4ef6 chmod \u00a0-Rf \u00a0777 \u00a0\/nfsfile\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u8bbe\u7f6e\u5f00\u653e\u6743\u9650 vim \u00a0\/etc\/exports\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u7f16\u8f91nfs\u914d\u7f6e\u6587\u4ef6<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"77\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814231018-689e6cda0cc6c.png\" width=\"377\" \/> systemctl enable&#8211;now\u00a0 rpcbind\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u542f\u52a8\u5e76\u5f00\u673a\u81ea\u542frpcbind\u670d\u52a1 systemctl enable&#8211;now\u00a0 nfs-server\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u542f\u52a8\u5e76\u5f00\u673a\u81ea\u542fnfs\u670d\u52a1<\/p>\n<hr \/>\n<h5 style=\"background-color:transparent\">\u4e8eweb01\u8fdb\u884c\u64cd\u4f5c<\/h5>\n<p>showmount \u00a0-e \u00a0192.168.86.201\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u68c0\u67e5 NFS \u670d\u52a1\u7aef\u7684\u5171\u4eab\u5217\u8868<\/p>\n<p>mkdir \u00a0\/web_nfs\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u5728\u5ba2\u6237\u7aef\u521b\u5efa\u672c\u5730\u6302\u8f7d\u70b9<\/p>\n<p>mount -t nfs\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u6302\u8f7dnfs\u7cfb\u7edf<\/p>\n<p>ls \/web-nfs\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u67e5\u770b\u76ee\u5f55\u5185\u5bb9<\/p>\n<p>vim \u00a0\/etc\/fstab\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u914d\u7f6efstab\u6587\u4ef6\u5b9e\u73b0\u6c38\u4e45\u6302\u8f7d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"49\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814231018-689e6cda22ce7.png\" width=\"690\" \/><\/p>\n<p>mount \u00a0-a\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u52a0\u8f7d\u6240\u6709\u6302\u8f7d\u914d\u7f6e<\/p>\n<p>df \u00a0-h\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u663e\u793a\u6240\u6709\u5df2\u6302\u8f7d\u6587\u4ef6<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"213\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814231018-689e6cda35de2.png\" width=\"627\" \/><\/p>\n<p>\u6210\u529f\u642d\u5efanfs01\u670d\u52a1\u5668<\/p>\n<h3>3\u3001backup\u670d\u52a1\u5668\u73af\u5883\u642d\u5efa<\/h3>\n<p>\u521b\u5efa\u865a\u62df\u673a\u4e0e\u5b89\u88c5\u64cd\u4f5c\u7cfb\u7edf\u6b65\u9aa4\u7701\u7565<\/p>\n<h5 style=\"background-color:transparent\">\u524d\u671f\u914d\u7f6e<\/h5>\n<p>nmtui\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u914d\u7f6e\u9759\u6001ip<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"478\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814231018-689e6cda4cfc0.png\" width=\"600\" \/><\/p>\n<\/p>\n<p>systemctl stop firewalld\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u5173\u95ed\u9632\u706b\u5899 systemctl disable firewalld\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u7981\u6b62\u9632\u706b\u5899\u5f00\u673a\u542f\u52a8 vi \/etc\/selinux\/config\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u5173\u95edselinux hostnamectl set-hostname backup\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u4fee\u6539\u4e3b\u673a\u540d\u4e3aweb01 reboot\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u91cd\u542f<\/p>\n<p>\u8fde\u63a5Xshell<\/p>\n<hr \/>\n<h5>\u914d\u7f6eyum\u6e90\u5e76\u5b89\u88c5\u8f6f\u4ef6<\/h5>\n<p>curl -o \/etc\/yum.repos.d\/CentOS-Base.repo https:\/\/mirrors.aliyun.com\/repo\/Centos-7.repo\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u5b89\u88c5\u963f\u91ccyum\u6e90<\/p>\n<p>yum clean all\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u6e05\u7406 yum \u7f13\u5b58<\/p>\n<p>yum makecache\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u751f\u6210\u65b0\u7684 yum \u7f13\u5b58<\/p>\n<p>yum install vim \u00a0tree tar net-tools rsync mailx -y\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u5b89\u88c5\u6240\u9700\u8f6f\u4ef6<\/p>\n<hr \/>\n<h5>\u4fee\u6539rsync\u914d\u7f6e\u6587\u4ef6<\/h5>\n<p>vim \/etc\/rsyncd.conf\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u4fee\u6539rsync \u914d\u7f6e\u6587\u4ef6\u5982\u4e0b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"416\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814231018-689e6cda68537.png\" width=\"511\" \/><\/p>\n<p>useradd -M -s \/sbin\/nologin rsync\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u521b\u5efa\u4e13\u7528\u65e0\u767b\u5f55\u6743\u9650\u7684\u00a0rsync\u00a0\u7528\u6237 mkdir \/backup\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u521b\u5efa\u5907\u4efd\u76ee\u5f55 chown -R rsync \/backup\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u5206\u914d\u6743\u9650 systemctl enable &#8211;now rsyncd\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u542f\u52a8\u5e76\u5f00\u673a\u81ea\u542frsync\u670d\u52a1 ps -ef | grep rsync\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u9a8c\u8bc1\u670d\u52a1\u662f\u5426\u8fd0\u884c echo &#034;rsync:rsync123&#034; &gt; \/etc\/rsync.password\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u751f\u6210\u5bc6\u7801\u6587\u4ef6 chmod 600 \/etc\/rsync.password\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u4fdd\u62a4\u5bc6\u7801\u6587\u4ef6\u6743\u9650<\/p>\n<p>\u6210\u529f\u642d\u5efabackup\u670d\u52a1\u5668<\/p>\n<hr \/>\n<h2 style=\"background-color:transparent\">\u4e09\u3001\u914d\u7f6e\u5907\u4efd\u811a\u672c<\/h2>\n<h3>1\u3001\u914d\u7f6eweb01\u670d\u52a1\u5668\u672c\u5730\u5907\u4efd\u811a\u672c<\/h3>\n<p>tree \u00a0\/var\/log\/nginx\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u67e5\u770b\u6240\u8981\u5907\u4efd\u7684\u6587\u4ef6<\/p>\n<p>tree \/www\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u67e5\u770b\u6240\u8981\u5907\u4efd\u7684\u6587\u4ef6<\/p>\n<p>mkdir \u00a0\/backup\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u521b\u5efa\u672c\u5730\u5907\u4efd\u76ee\u5f55<\/p>\n<p>mkdir -p \u00a0\/server\/scripts\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u521b\u5efa\u672c\u5730\u5907\u4efd\u76ee\u5f55<\/p>\n<p>vim \u00a0\/server\/scripts\/backup.sh\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u7f16\u5199\u5907\u4efd\u811a\u672c<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"506\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814231018-689e6cda809af.png\" width=\"1089\" \/><\/p>\n<p>vim \/etc\/rsync.password\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u7f16\u5199\u5bc6\u7801\u8ba4\u8bc1\u6587\u4ef6<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"45\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814231018-689e6cdac1e3a.png\" width=\"125\" \/><\/p>\n<p>chmod 600 \/etc\/rsync.password\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u8bbe\u7f6e\u6743\u9650<\/p>\n<p>\u6d4b\u8bd5<\/p>\n<p>\u4e8eweb01\u670d\u52a1\u5668\u4e2d\u8f93\u5165bash \u00a0\/server\/scripts\/backup.sh\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u6267\u884c\u811a\u672c<\/p>\n<p>\u4e8ebackup\u670d\u52a1\u5668\u4e2d\u8f93\u5165ls \u00a0\/backup\/192.168.86.200\/\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u67e5\u770b\u5907\u4efd\u6587\u4ef6<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"95\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814231018-689e6cdaccacb.png\" width=\"776\" \/><\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u6210\u529f\u5907\u4efd\u6587\u4ef6<\/p>\n<hr \/>\n<h3 style=\"background-color:transparent\">2\u3001\u914d\u7f6enfs01\u670d\u52a1\u5668\u672c\u5730\u5907\u4efd\u811a\u672c<\/h3>\n<p>tree \u00a0\/var\/log\/nginx\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u67e5\u770b\u6240\u8981\u5907\u4efd\u7684\u6587\u4ef6<\/p>\n<p>tree \/www\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u67e5\u770b\u6240\u8981\u5907\u4efd\u7684\u6587\u4ef6<\/p>\n<p>mkdir \u00a0\/backup\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u521b\u5efa\u672c\u5730\u5907\u4efd\u76ee\u5f55<\/p>\n<p>mkdir -p \u00a0\/server\/scripts\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u521b\u5efa\u672c\u5730\u5907\u4efd\u76ee\u5f55<\/p>\n<p>vim \u00a0\/server\/scripts\/backup.sh\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u7f16\u5199\u5907\u4efd\u811a\u672c<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"520\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814231018-689e6cdae220f.png\" width=\"1079\" \/><\/p>\n<\/p>\n<p>vim \/etc\/rsync.password\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u7f16\u5199\u5bc6\u7801\u8ba4\u8bc1\u6587\u4ef6<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"45\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814231018-689e6cdac1e3a.png\" width=\"125\" \/><\/p>\n<p>chmod 600 \/etc\/rsync.password\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u8bbe\u7f6e\u6743\u9650<\/p>\n<p>\u6d4b\u8bd5<\/p>\n<p>\u4e8enfs01\u670d\u52a1\u5668\u4e2d\u8f93\u5165bash \u00a0\/server\/scripts\/backup.sh\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u6267\u884c\u811a\u672c<\/p>\n<p>\u4e8ebackup\u670d\u52a1\u5668\u4e2d\u8f93\u5165ls \u00a0\/backup\/192.168.86.201\/\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u67e5\u770b\u5907\u4efd\u6587\u4ef6<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"97\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814231019-689e6cdb40175.png\" width=\"834\" \/><\/p>\n<\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u6210\u529f\u5907\u4efd\u6587\u4ef6<\/p>\n<hr \/>\n<h2>\u56db\u3001\u914d\u7f6e\u5b9a\u65f6\u4efb\u52a1<\/h2>\n<h3>1\u3001\u914d\u7f6eweb01\u670d\u52a1\u5668\u5b9a\u65f6\u5907\u4efd\u4efb\u52a1<\/h3>\n<p>crontab \u00a0-e\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u8bbe\u7f6e\u5b9a\u65f6\u5907\u4efd\u4efb\u52a1<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"82\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814231019-689e6cdb56d9b.png\" width=\"677\" \/><\/p>\n<hr \/>\n<h3>\u00a02\u3001\u914d\u7f6enfs01\u670d\u52a1\u5668\u5b9a\u65f6\u5907\u4efd\u4efb\u52a1<\/h3>\n<p>crontab \u00a0-e\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u8bbe\u7f6e\u5b9a\u65f6\u5907\u4efd\u4efb\u52a1<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"81\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814231019-689e6cdb67d14.png\" width=\"628\" \/><\/p>\n<hr \/>\n<h3>3\u3001\u914d\u7f6ebackup\u670d\u52a1\u5668\u81ea\u52a8\u5220\u9664\u811a\u672c<\/h3>\n<p>mkdir -p \/server\/scripts\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u521b\u5efa\u811a\u672c\u76ee\u5f55<\/p>\n<p>vim \/server\/scripts\/del_bak_data.sh\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u521b\u5efa\u5907\u4efd\u6e05\u7406\u811a\u672c<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"126\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814231019-689e6cdb793aa.png\" width=\"1115\" \/><\/p>\n<p>crontab \u00a0-e\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u8bbe\u7f6e\u5b9a\u65f6\u5907\u4efd\u4efb\u52a1<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"84\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814231019-689e6cdb9523f.png\" width=\"692\" \/><\/p>\n<hr \/>\n<h2>\u4e94\u3001\u6570\u636e\u4f20\u8f93\u5b8c\u6574\u6027\u9a8c\u8bc1\u548c\u76d1\u63a7\u8b66\u544a<\/h2>\n<h3>1\u3001backup\u670d\u52a1\u5668\u6570\u636e\u4f20\u8f93\u5b8c\u6574\u6027\u9a8c\u8bc1<\/h3>\n<p>vim send_mail.sh\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u7f16\u5199\u6570\u636e\u4f20\u8f93\u5b8c\u6574\u6027\u9a8c\u8bc1\u811a\u672c<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"388\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814231019-689e6cdba4ca3.png\" width=\"770\" \/><\/p>\n<hr \/>\n<h3 style=\"background-color:transparent\">2\u3001\u914d\u7f6e\u90ae\u4ef6\u544a\u8b66<\/h3>\n<p>mkdir -p \/root\/.certs<\/p>\n<p>cd \u00a0\/root\/.certs<\/p>\n<p>echo -n | openssl s_client -connect smtp.qq.com:465 | sed -ne &#039;\/-BEGIN CERTIFICATE-\/,\/-END CERTIFICATE-\/p&#039; &gt; ~\/.certs\/qq.crt\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u4e0b\u8f7d QQ \u90ae\u7bb1 SMTP \u8bc1\u4e66<\/p>\n<p>certutil -A -n &#034;GeoTrust SSL CA&#034; -t &#034;C,,&#034; -d ~\/.certs -i ~\/.certs\/qq.crt\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u5bfc\u5165\u8bc1\u4e66<\/p>\n<p>vim \u00a0\/etc\/mail.rc\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u914d\u7f6e\u7cfb\u7edf\u90ae\u4ef6\u5ba2\u6237\u7aef<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"191\" src=\"2025-08-15dfukkpq0pyx.png\" width=\"480\" \/><\/p>\n<p>echo \u00a0&#034;testmail&#034; \u00a0| \u00a0mail \u00a0-s \u00a0&#034;testmail&#034; \u00a02352471241&#064;qq.com\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u6d4b\u8bd5\u90ae\u4ef6\u53d1\u9001<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"265\" src=\"2025-08-15ieh2cx2xqtz.png\" width=\"504\" \/><\/p>\n<p>bash \/server\/scripts\/send_mail.sh\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u4f7f\u7528\u811a\u672c\u53d1\u9001<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"389\" src=\"2025-08-15xrewvdrqebe.png\" width=\"709\" \/><\/p>\n<hr \/>\n<p>\u81f3\u6b64\u9879\u76ee\u7ed3\u675f<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb832\u6b21\uff0c\u70b9\u8d5e25\u6b21\uff0c\u6536\u85cf17\u6b21\u3002\u672c\u6587\u6863\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u4f01\u4e1aWeb\u670d\u52a1\u5668\u6570\u636e\u5907\u4efd\u65b9\u6848\u7684\u5b9e\u65bd\u8fc7\u7a0b\u3002\u9879\u76ee\u8981\u6c42\u5728Web\u670d\u52a1\u5668\u4e0a\u6bcf\u65e5\u5b9a\u65f6\u5907\u4efd\u7cfb\u7edf\u914d\u7f6e\u6587\u4ef6\u3001\u7f51\u7ad9\u7a0b\u5e8f\u53ca\u8bbf\u95ee\u65e5\u5fd7\uff0c\u901a\u8fc7rsync\u63a8\u9001\u5230\u5907\u4efd\u670d\u52a1\u5668\uff0c\u5e76\u914d\u7f6e\u90ae\u4ef6\u544a\u8b66\u529f\u80fd\u3002\u4e3b\u8981\u5185\u5bb9\u5305\u62ec\uff1a1\uff09\u4e09\u53f0\u670d\u52a1\u5668\uff08Web01\u3001NFS01\u3001Backup\uff09\u7684\u73af\u5883\u642d\u5efa\u4e0e\u57fa\u7840\u914d\u7f6e\uff1b2\uff09\u5907\u4efd\u811a\u672c\u7684\u7f16\u5199\u4e0e\u6d4b\u8bd5\uff1b3\uff09\u5b9a\u65f6\u4efb\u52a1\u7684\u8bbe\u7f6e\uff1b4\uff09\u6570\u636e\u4f20\u8f93\u5b8c\u6574\u6027\u9a8c\u8bc1\u548c\u90ae\u4ef6\u544a\u8b66\u7cfb\u7edf\u7684\u90e8\u7f72\u3002\u65b9\u6848\u5b9e\u73b0\u4e86\u672c\u5730\u4fdd\u75597\u5929\u5907\u4efd\u3001\u5907\u4efd\u670d\u52a1\u5668\u4fdd\u75597\u5929\u6570\u636e\u53ca6\u4e2a\u6708\u5185\u6bcf\u5468\u4e00\u5907\u4efd\u7684\u5b58\u50a8\u7b56\u7565\uff0c\u786e\u4fdd\u6570\u636e\u5b89\u5168\u53ef\u9760\u3002\u901a\u8fc7\u5b8c\u6574\u7684\u5b9e\u65bd\u6d41\u7a0b\uff0c\u6784\u5efa\u4e86\u81ea\u52a8\u5316\u3001\u89c4\u8303\u5316\u7684\u6570\u636e\u5907\u4efd\u7cfb\u7edf<\/p>\n","protected":false},"author":2,"featured_media":57014,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,395,44],"topic":[],"class_list":["post-57034","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>Linux\u9879\u76ee\u2014\u2014\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\/57034.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux\u9879\u76ee\u2014\u2014\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\u8bfb832\u6b21\uff0c\u70b9\u8d5e25\u6b21\uff0c\u6536\u85cf17\u6b21\u3002\u672c\u6587\u6863\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u4f01\u4e1aWeb\u670d\u52a1\u5668\u6570\u636e\u5907\u4efd\u65b9\u6848\u7684\u5b9e\u65bd\u8fc7\u7a0b\u3002\u9879\u76ee\u8981\u6c42\u5728Web\u670d\u52a1\u5668\u4e0a\u6bcf\u65e5\u5b9a\u65f6\u5907\u4efd\u7cfb\u7edf\u914d\u7f6e\u6587\u4ef6\u3001\u7f51\u7ad9\u7a0b\u5e8f\u53ca\u8bbf\u95ee\u65e5\u5fd7\uff0c\u901a\u8fc7rsync\u63a8\u9001\u5230\u5907\u4efd\u670d\u52a1\u5668\uff0c\u5e76\u914d\u7f6e\u90ae\u4ef6\u544a\u8b66\u529f\u80fd\u3002\u4e3b\u8981\u5185\u5bb9\u5305\u62ec\uff1a1\uff09\u4e09\u53f0\u670d\u52a1\u5668\uff08Web01\u3001NFS01\u3001Backup\uff09\u7684\u73af\u5883\u642d\u5efa\u4e0e\u57fa\u7840\u914d\u7f6e\uff1b2\uff09\u5907\u4efd\u811a\u672c\u7684\u7f16\u5199\u4e0e\u6d4b\u8bd5\uff1b3\uff09\u5b9a\u65f6\u4efb\u52a1\u7684\u8bbe\u7f6e\uff1b4\uff09\u6570\u636e\u4f20\u8f93\u5b8c\u6574\u6027\u9a8c\u8bc1\u548c\u90ae\u4ef6\u544a\u8b66\u7cfb\u7edf\u7684\u90e8\u7f72\u3002\u65b9\u6848\u5b9e\u73b0\u4e86\u672c\u5730\u4fdd\u75597\u5929\u5907\u4efd\u3001\u5907\u4efd\u670d\u52a1\u5668\u4fdd\u75597\u5929\u6570\u636e\u53ca6\u4e2a\u6708\u5185\u6bcf\u5468\u4e00\u5907\u4efd\u7684\u5b58\u50a8\u7b56\u7565\uff0c\u786e\u4fdd\u6570\u636e\u5b89\u5168\u53ef\u9760\u3002\u901a\u8fc7\u5b8c\u6574\u7684\u5b9e\u65bd\u6d41\u7a0b\uff0c\u6784\u5efa\u4e86\u81ea\u52a8\u5316\u3001\u89c4\u8303\u5316\u7684\u6570\u636e\u5907\u4efd\u7cfb\u7edf\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/57034.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-14T23:10:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814231016-689e6cd8b61f6.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\/57034.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/57034.html\",\"name\":\"Linux\u9879\u76ee\u2014\u2014\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-14T23:10:20+00:00\",\"dateModified\":\"2025-08-14T23:10:20+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/57034.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/57034.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/57034.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\u9879\u76ee\u2014\u2014\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":"Linux\u9879\u76ee\u2014\u2014\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\/57034.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux\u9879\u76ee\u2014\u2014\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\u8bfb832\u6b21\uff0c\u70b9\u8d5e25\u6b21\uff0c\u6536\u85cf17\u6b21\u3002\u672c\u6587\u6863\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u4f01\u4e1aWeb\u670d\u52a1\u5668\u6570\u636e\u5907\u4efd\u65b9\u6848\u7684\u5b9e\u65bd\u8fc7\u7a0b\u3002\u9879\u76ee\u8981\u6c42\u5728Web\u670d\u52a1\u5668\u4e0a\u6bcf\u65e5\u5b9a\u65f6\u5907\u4efd\u7cfb\u7edf\u914d\u7f6e\u6587\u4ef6\u3001\u7f51\u7ad9\u7a0b\u5e8f\u53ca\u8bbf\u95ee\u65e5\u5fd7\uff0c\u901a\u8fc7rsync\u63a8\u9001\u5230\u5907\u4efd\u670d\u52a1\u5668\uff0c\u5e76\u914d\u7f6e\u90ae\u4ef6\u544a\u8b66\u529f\u80fd\u3002\u4e3b\u8981\u5185\u5bb9\u5305\u62ec\uff1a1\uff09\u4e09\u53f0\u670d\u52a1\u5668\uff08Web01\u3001NFS01\u3001Backup\uff09\u7684\u73af\u5883\u642d\u5efa\u4e0e\u57fa\u7840\u914d\u7f6e\uff1b2\uff09\u5907\u4efd\u811a\u672c\u7684\u7f16\u5199\u4e0e\u6d4b\u8bd5\uff1b3\uff09\u5b9a\u65f6\u4efb\u52a1\u7684\u8bbe\u7f6e\uff1b4\uff09\u6570\u636e\u4f20\u8f93\u5b8c\u6574\u6027\u9a8c\u8bc1\u548c\u90ae\u4ef6\u544a\u8b66\u7cfb\u7edf\u7684\u90e8\u7f72\u3002\u65b9\u6848\u5b9e\u73b0\u4e86\u672c\u5730\u4fdd\u75597\u5929\u5907\u4efd\u3001\u5907\u4efd\u670d\u52a1\u5668\u4fdd\u75597\u5929\u6570\u636e\u53ca6\u4e2a\u6708\u5185\u6bcf\u5468\u4e00\u5907\u4efd\u7684\u5b58\u50a8\u7b56\u7565\uff0c\u786e\u4fdd\u6570\u636e\u5b89\u5168\u53ef\u9760\u3002\u901a\u8fc7\u5b8c\u6574\u7684\u5b9e\u65bd\u6d41\u7a0b\uff0c\u6784\u5efa\u4e86\u81ea\u52a8\u5316\u3001\u89c4\u8303\u5316\u7684\u6570\u636e\u5907\u4efd\u7cfb\u7edf","og_url":"https:\/\/www.wsisp.com\/helps\/57034.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-14T23:10:20+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814231016-689e6cd8b61f6.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\/57034.html","url":"https:\/\/www.wsisp.com\/helps\/57034.html","name":"Linux\u9879\u76ee\u2014\u2014\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-14T23:10:20+00:00","dateModified":"2025-08-14T23:10:20+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/57034.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/57034.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/57034.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux\u9879\u76ee\u2014\u2014\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\/57034","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=57034"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/57034\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/57014"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=57034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=57034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=57034"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=57034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}