{"id":24357,"date":"2025-04-19T09:56:28","date_gmt":"2025-04-19T01:56:28","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/24357.html"},"modified":"2025-04-19T09:56:28","modified_gmt":"2025-04-19T01:56:28","slug":"%e5%9c%a8ubuntu%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8a%e5%a4%87%e4%bb%bd%e6%96%87%e4%bb%b6%e5%88%b0%e8%87%aa%e5%b7%b1%e7%9a%84%e7%99%be%e5%ba%a6%e7%bd%91%e7%9b%98","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/24357.html","title":{"rendered":"\u5728Ubuntu\u670d\u52a1\u5668\u4e0a\u5907\u4efd\u6587\u4ef6\u5230\u81ea\u5df1\u7684\u767e\u5ea6\u7f51\u76d8"},"content":{"rendered":"<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\u6982\u8ff0<\/li>\n<li>\u5b89\u88c5bypy<\/li>\n<li>\u540c\u6b65\u6587\u4ef6<\/li>\n<li>\u5b9a\u65f6\u4efb\u52a1\u811a\u672c<\/li>\n<\/ul>\n<h2>\u6982\u8ff0<\/h2>\n<p>\u4e4b\u524d\u81ea\u8d2d\u4e86\u4e00\u53f0\u963f\u91cc\u4e91\u670d\u52a1\u5668&#xff0c;\u7cfb\u7edf\u955c\u50cf\u4e3aUbuntu 22.04&#xff0c; \u5e76\u4e14\u642d\u5efa\u4e86LNMP\u5f00\u53d1\u73af\u5883&#xff08;\u53ef\u4ee5\u53c2\u8003&#xff1a;\u300aUbuntu\u642d\u5efaPHP\u5f00\u53d1\u73af\u5883\u64cd\u4f5c\u6b65\u9aa4(\u4fdd\u59c6\u7ea7\u6559\u7a0b)\u300b&#xff09;\u3002\u7531\u4e8e\u9879\u76ee\u8fd0\u884c\u4e2d\u4f1a\u4ea7\u751f\u9644\u4ef6&#xff08;\u6bd4\u5982\u56fe\u7247\u3001\u89c6\u9891\u7b49\u4e8c\u8fdb\u5236\u6587\u4ef6&#xff09;&#xff0c;\u4e00\u822c\u60c5\u51b5\u4e0b\u53ef\u4ee5\u628a\u7f51\u7ad9\u7684\u9644\u4ef6\u5b58\u50a8\u5230OSS\u4e0a&#xff0c;\u4f46\u662f&#xff0c;OSS\u9700\u8981\u82b1\u94b1&#xff0c;\u7531\u4e8e\u9879\u76ee\u6bd4\u8f83\u5c0f&#xff0c;\u800c\u4e14\u672c\u7740\u5c11\u82b1\u70b9\u94b1\u7684\u539f\u5219&#xff0c;\u8fd8\u662f\u628a\u9644\u4ef6\u5c31\u653e\u5728\u4e86\u7f51\u7ad9\u670d\u52a1\u5668\u4e0a\u3002\u90a3\u4e48&#xff0c;\u5c31\u9700\u8981\u8003\u8651\u4e00\u4e2a\u95ee\u9898&#xff0c;\u9644\u4ef6\u6587\u4ef6\u7684\u5907\u4efd\u95ee\u9898\u3002\u5982\u679c\u670d\u52a1\u5668\u906d\u53d7\u653b\u51fb&#xff0c;\u90a3\u4e48\u6709\u53ef\u80fd\u9644\u4ef6\u5c31\u627e\u4e0d\u56de\u6765\u4e86\u3002\u4e8e\u662f\u4e4e&#xff0c;\u6211\u5c31\u5728\u60f3&#xff0c;\u80fd\u4e0d\u80fd\u5728Ubuntu\u670d\u52a1\u5668\u4e0a\u514d\u8d39\u7684\u5b9e\u73b0\u6587\u4ef6\u5907\u4efd\u3002\u6700\u7ec8&#xff0c;\u6211\u53d1\u73b0\u4e86\u8fd9\u4e2a\u795e\u5668&#xff1a;bypy\u3002<\/p>\n<h2>\u5b89\u88c5bypy<\/h2>\n<p><span class=\"token comment\"># \u5207\u6362\u5230root\u7528\u6237<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token parameter variable\">-i<\/span><\/p>\n<p><span class=\"token comment\"># \u5b89\u88c5 pip3 (\u5982\u679c\u5df2\u5b89\u88c5&#xff0c;\u5219\u8df3\u8fc7\u6b64\u6b65\u9aa4)<\/span><br \/>\n<span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> python3-pip<\/p>\n<p><span class=\"token comment\"># \u5b89\u88c5\u4f9d\u8d56<\/span><br \/>\npip3 <span class=\"token function\">install<\/span> requests <span class=\"token punctuation\">(<\/span>\u5982\u679c\u5df2\u5b89\u88c5&#xff0c;\u5219\u8df3\u8fc7\u6b64\u6b65\u9aa4<span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># \u5b89\u88c5bypy<\/span><br \/>\npip3 <span class=\"token function\">install<\/span> bypy <span class=\"token comment\"># \u5982\u679c\u6700\u65b0\u7248\u4e0d\u80fd\u7528&#xff0c;\u53ef\u4ee5\u4f7f\u75281.6.10\u7248\u672c&#xff1a; pip3 install bypy&#061;&#061;1.6.10<\/span><\/p>\n<p><span class=\"token comment\"># \u83b7\u53d6\u767e\u5ea6\u7f51\u76d8\u7684\u6388\u6743<\/span><br \/>\nbypy info<\/p>\n<p>\u5982\u679c\u62a5\u9519&#xff1a;Command \u2018bypy\u2019 not found, did you mean &#xff0c;\u5e94\u8be5\u662f\u6ca1\u6709\u5207\u6362\u5230root\u7528\u6237<\/p>\n<p>\u6b63\u5e38\u60c5\u51b5\u7684\u8bdd&#xff0c;\u5c31\u4f1a\u51fa\u73b0\u4e0b\u9762\u7684\u5185\u5bb9&#xff1a;<\/p>\n<p>Please visit:<br \/>\nhttps:\/\/openapi.baidu.com\/oauth\/2.0\/authorize?client_id&#061;q8WE4EpCsau1oS0MplgMKNBn&#038;response_type&#061;code&#038;redirect_uri&#061;oob&#038;scope&#061;basic&#043;netdisk<br \/>\nAnd authorize this app<br \/>\nPaste the Authorization Code here within 10 minutes.<br \/>\nPress [Enter] when you are done<\/p>\n<p>\u8bbf\u95ee\u63d0\u793a\u7684\u94fe\u63a5&#xff0c;\u5c31\u4f1a\u6253\u5f00\u767e\u5ea6\u7f51\u76d8\u7684\u6388\u6743\u9875\u9762&#xff0c;\u767b\u5f55\u4f60\u7684\u767e\u5ea6\u7f51\u76d8\u8d26\u53f7&#xff0c;\u7136\u540e\u6388\u6743\u5373\u53ef\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419015626-680302ca01bdc.png\" alt=\"image-20241211144537997\" \/><\/p>\n<p>\u63a5\u4e0b\u6765&#xff0c;\u628a\u4e0a\u9762\u7684\u6388\u6743\u7801\u590d\u5236\u4e0b\u6765&#xff0c;\u7c98\u8d34\u5230\u670d\u52a1\u5668\u7684\u7ec8\u7aef&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419015626-680302ca4d06d.png\" alt=\"image-20241211144835477\" \/><\/p>\n<h2>\u540c\u6b65\u6587\u4ef6<\/h2>\n<p>\u57fa\u672c\u64cd\u4f5c\u7684\u547d\u4ee4\u5982\u4e0b&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u4e0a\u4f20\u670d\u52a1\u5668\u5f53\u524d\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u5230\u767e\u5ea6\u4e91\u76d8<\/span><br \/>\nbypy upload<\/p>\n<p><span class=\"token comment\"># \u4e0b\u8f7d\u767e\u5ea6\u7f51\u76d8\u4e0a\u7684\u5185\u5bb9\u5230\u670d\u52a1\u5668\u7684\u5f53\u524d\u76ee\u5f55<\/span><br \/>\nbypy downdir<\/p>\n<p><span class=\"token comment\"># \u6bd4\u8f83\u670d\u52a1\u5668\u5f53\u524d\u76ee\u5f55\u548c\u7f51\u76d8\u7684\u6587\u4ef6\u662f\u5426\u4e00\u81f4<\/span><br \/>\nbypy compare<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u7f51\u76d8\u7684\u6587\u4ef6\u5217\u8868<\/span><br \/>\nbypy list<\/p>\n<p><span class=\"token comment\"># \u8fd0\u884c\u65f6\u6dfb\u52a0-v\u53c2\u6570&#xff0c;\u4f1a\u663e\u793a\u8fdb\u5ea6\u8be6\u60c5\u3002<\/span><br \/>\n<span class=\"token comment\"># \u8fd0\u884c\u65f6\u6dfb\u52a0-d&#xff0c;\u4f1a\u663e\u793a\u4e00\u4e9b\u8c03\u8bd5\u4fe1\u606f\u3002<\/span><\/p>\n<p>\u5b9e\u9645\u6f14\u793a\u4e00\u4e0b&#xff1a;<\/p>\n<p>\u968f\u4fbf\u627e\u4e2a\u76ee\u5f55&#xff0c;\u521b\u5efa\u4e24\u4e2a\u6d4b\u8bd5\u6587\u4ef6&#xff0c;\u7136\u540e\u8fd0\u884c bypy upload&#xff0c;\u63a5\u4e0b\u6765&#xff0c;\u53bb\u5230 \u767e\u5ea6\u7f51\u76d8-\u6211\u7684\u5e94\u7528\u6570\u636e-bypy \u6587\u4ef6\u5939\u67e5\u770b&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419015626-680302cab3588.png\" alt=\"image-20241211145516635\" \/><\/p>\n<p>\u5207\u6362\u4e00\u4e2a\u76ee\u5f55&#xff0c;\u8fd0\u884c bypy downdir&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419015627-680302cb293da.png\" alt=\"image-20241211145655513\" \/> \u4e0a\u4f20\u5230\u7f51\u76d8\u7684\u6307\u5b9a\u76ee\u5f55&#xff1a;bypy upload .\/ 2024\/123\/456\/ \u4f1a\u5c06\u5f53\u524d\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u4e0a\u4f20\u5230\u7f51\u76d8\u7684 apps &gt;bypy &gt;2024&gt;123&gt;456\u76ee\u5f55\u4e0b&#xff0c;\u522b\u5fd8\u4e86456\/\u540e\u9762\u7684\/ <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419015627-680302cb5cdaf.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u7279\u522b\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>\u589e\u91cf\u5907\u4efd&#xff1a;\u5bf9\u4e8e\u7f51\u76d8\u5df2\u5b58\u5728\u7684\u6587\u4ef6&#xff0c;\u5982\u679c\u6587\u4ef6\u6ca1\u6709\u53d8\u5316&#xff0c;\u518d\u6b21\u540c\u6b65\u4f1a\u8df3\u8fc7\u3002<\/li>\n<li>\u5355\u5411\u5907\u4efd&#xff1a;\u5bf9\u4e8e\u5df2\u540c\u6b65\u8fc7\u7684\u6587\u4ef6&#xff0c;\u5982\u679c\u5220\u9664\u4e86\u670d\u52a1\u5668\u4e0a\u7684\u6587\u4ef6&#xff0c;\u5e76\u4e0d\u4f1a\u5220\u9664\u767e\u5ea6\u7f51\u76d8\u4e0a\u7684\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<h2>\u5b9a\u65f6\u4efb\u52a1\u811a\u672c<\/h2>\n<p>\u7136\u540e&#xff0c;\u901a\u8fc7crontab \u5199\u4e00\u4e2a\u5b9a\u65f6\u4efb\u52a1&#xff0c;\u5c31\u53ef\u4ee5\u5b9e\u73b0\u81ea\u52a8\u5907\u4efd\u670d\u52a1\u5668\u4e0a\u7684\u6587\u4ef6\u5230\u81ea\u5df1\u7684\u7f51\u76d8\u4e86&#xff0c;\u518d\u4e5f\u4e0d\u6015\u670d\u52a1\u5668\u7684\u5927\u5bb9\u91cf\u6587\u4ef6\u4e22\u5931\u4e86\u3002<\/p>\n<p>\u5907\u4efd\u6570\u636e\u5e93\u7684\u811a\u672c &#xff1a;<\/p>\n<p><span class=\"token comment\"># export_sql.sh<\/span><\/p>\n<p>mysqldump <span class=\"token parameter variable\">-u<\/span> root <span class=\"token parameter variable\">-p123456<\/span> dbname <span class=\"token operator\">&gt;<\/span> \/home\/admin\/www\/sql\/dbname.sql<\/p>\n<p>\u5907\u4efdSQL\u6587\u4ef6\u548c\u56fe\u7247\u6587\u4ef6\u7684\u811a\u672c&#xff0c;\u56fe\u7247\u6587\u4ef6\u6309\u7167\u5e74\/\u6708\/\u65e5 \u7684\u76ee\u5f55\u5b58\u653e&#xff0c;\u5907\u4efd\u6628\u5929\u7684&#xff1a;<\/p>\n<p><span class=\"token comment\"># upload_img_to_bdwp.sh<\/span><\/p>\n<p><span class=\"token assign-left variable\">sqlpath<\/span><span class=\"token operator\">&#061;<\/span>\/home\/admin\/www\/sql<br \/>\n<span class=\"token builtin class-name\">cd<\/span> <span class=\"token variable\">${sqlpath}<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token variable\">${sqlpath}<\/span><br \/>\n<span class=\"token function\">nohup<\/span> bypy upload .\/ sql <span class=\"token operator\">&gt;<\/span>\/dev\/null <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span><span class=\"token file-descriptor important\">&amp;1<\/span> <span class=\"token operator\">&amp;<\/span><\/p>\n<p><span class=\"token comment\"># \u83b7\u53d6\u6628\u5929\u7684\u65e5\u671f<\/span><br \/>\n<span class=\"token assign-left variable\">yesterday<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">date<\/span> <span class=\"token parameter variable\">-d<\/span> <span class=\"token string\">&#034;yesterday&#034;<\/span> &#043;<span class=\"token string\">&#034;%Y\/%m\/%d&#034;<\/span><span class=\"token variable\">)<\/span><\/span><br \/>\n<span class=\"token assign-left variable\">imgpath<\/span><span class=\"token operator\">&#061;<\/span>\/home\/admin\/www\/img\/file_<span class=\"token variable\">${yesterday}<\/span><br \/>\n<span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">[<\/span> <span class=\"token operator\">!<\/span> <span class=\"token parameter variable\">-d<\/span> <span class=\"token variable\">${imgpath}<\/span> <span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token keyword\">then<\/span><br \/>\n    <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;\u5f53\u524d\u65e5\u671f\u7684\u56fe\u7247\u6587\u4ef6\u76ee\u5f55\u4e0d\u5b58\u5728&#034;<\/span><br \/>\n    <span class=\"token builtin class-name\">exit<\/span> <span class=\"token number\">0<\/span><br \/>\n<span class=\"token keyword\">fi<\/span><\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> <span class=\"token variable\">${imgpath}<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token variable\">${imgpath}<\/span><br \/>\n<span class=\"token function\">nohup<\/span> bypy upload .\/ <span class=\"token variable\">${yesterday}<\/span> <span class=\"token operator\">&gt;<\/span>\/dev\/null <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span><span class=\"token file-descriptor important\">&amp;1<\/span> <span class=\"token operator\">&amp;<\/span><\/p>\n<p>\u5b9a\u65f6\u4efb\u52a1\u811a\u672ccrontab -e&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u6bcf\u592902:00 \u5907\u4efd\u6570\u636e\u5e93<\/span><br \/>\n<span class=\"token number\">0<\/span> <span class=\"token number\">2<\/span> * * * <span class=\"token function\">sh<\/span> \/root\/shell\/export_sql.sh<\/p>\n<p><span class=\"token comment\"># \u6bcf\u592903:00 \u5907\u4efd\u6587\u4ef6\u5230\u767e\u5ea6\u7f51\u76d8<\/span><br \/>\n<span class=\"token number\">0<\/span> <span class=\"token number\">3<\/span> * * * <span class=\"token function\">sh<\/span> \/root\/shell\/upload_img_to_bdwp.sh<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.2k\u6b21\uff0c\u70b9\u8d5e6\u6b21\uff0c\u6536\u85cf6\u6b21\u3002\u7531\u4e8e\u9879\u76ee\u8fd0\u884c\u4e2d\u4f1a\u4ea7\u751f\u9644\u4ef6\uff08\u6bd4\u5982\u56fe\u7247\u3001\u89c6\u9891\u7b49\u4e8c\u8fdb\u5236\u6587\u4ef6\uff09\uff0c\u4e00\u822c\u60c5\u51b5\u4e0b\u53ef\u4ee5\u628a\u7f51\u7ad9\u7684\u9644\u4ef6\u5b58\u50a8\u5230OSS\u4e0a\uff0c\u4f46\u662f\uff0cOSS\u9700\u8981\u82b1\u94b1\uff0c\u7531\u4e8e\u9879\u76ee\u6bd4\u8f83\u5c0f\uff0c\u800c\u4e14\u672c\u7740\u5c11\u82b1\u70b9\u94b1\u7684\u539f\u5219\uff0c\u8fd8\u662f\u628a\u9644\u4ef6\u5c31\u653e\u5728\u4e86\u7f51\u7ad9\u670d\u52a1\u5668\u4e0a\u3002\u90a3\u4e48\uff0c\u5c31\u9700\u8981\u8003\u8651\u4e00\u4e2a\u95ee\u9898\uff0c\u9644\u4ef6\u6587\u4ef6\u7684\u5907\u4efd\u95ee\u9898\u3002\u5982\u679c\u670d\u52a1\u5668\u906d\u53d7\u653b\u51fb\uff0c\u90a3\u4e48\u6709\u53ef\u80fd\u9644\u4ef6\u5c31\u627e\u4e0d\u56de\u6765\u4e86\u3002_ubuntu\u76f4\u63a5\u63a8\u9001\u6587\u4ef6\u5230\u767e\u5ea6\u4e91<\/p>\n","protected":false},"author":2,"featured_media":24352,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,103,43,326,44],"topic":[],"class_list":["post-24357","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux","tag-ubuntu","tag-43","tag-326","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728Ubuntu\u670d\u52a1\u5668\u4e0a\u5907\u4efd\u6587\u4ef6\u5230\u81ea\u5df1\u7684\u767e\u5ea6\u7f51\u76d8 - \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\/24357.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728Ubuntu\u670d\u52a1\u5668\u4e0a\u5907\u4efd\u6587\u4ef6\u5230\u81ea\u5df1\u7684\u767e\u5ea6\u7f51\u76d8 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.2k\u6b21\uff0c\u70b9\u8d5e6\u6b21\uff0c\u6536\u85cf6\u6b21\u3002\u7531\u4e8e\u9879\u76ee\u8fd0\u884c\u4e2d\u4f1a\u4ea7\u751f\u9644\u4ef6\uff08\u6bd4\u5982\u56fe\u7247\u3001\u89c6\u9891\u7b49\u4e8c\u8fdb\u5236\u6587\u4ef6\uff09\uff0c\u4e00\u822c\u60c5\u51b5\u4e0b\u53ef\u4ee5\u628a\u7f51\u7ad9\u7684\u9644\u4ef6\u5b58\u50a8\u5230OSS\u4e0a\uff0c\u4f46\u662f\uff0cOSS\u9700\u8981\u82b1\u94b1\uff0c\u7531\u4e8e\u9879\u76ee\u6bd4\u8f83\u5c0f\uff0c\u800c\u4e14\u672c\u7740\u5c11\u82b1\u70b9\u94b1\u7684\u539f\u5219\uff0c\u8fd8\u662f\u628a\u9644\u4ef6\u5c31\u653e\u5728\u4e86\u7f51\u7ad9\u670d\u52a1\u5668\u4e0a\u3002\u90a3\u4e48\uff0c\u5c31\u9700\u8981\u8003\u8651\u4e00\u4e2a\u95ee\u9898\uff0c\u9644\u4ef6\u6587\u4ef6\u7684\u5907\u4efd\u95ee\u9898\u3002\u5982\u679c\u670d\u52a1\u5668\u906d\u53d7\u653b\u51fb\uff0c\u90a3\u4e48\u6709\u53ef\u80fd\u9644\u4ef6\u5c31\u627e\u4e0d\u56de\u6765\u4e86\u3002_ubuntu\u76f4\u63a5\u63a8\u9001\u6587\u4ef6\u5230\u767e\u5ea6\u4e91\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/24357.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-19T01:56:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419015626-680302ca01bdc.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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/24357.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/24357.html\",\"name\":\"\u5728Ubuntu\u670d\u52a1\u5668\u4e0a\u5907\u4efd\u6587\u4ef6\u5230\u81ea\u5df1\u7684\u767e\u5ea6\u7f51\u76d8 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-19T01:56:28+00:00\",\"dateModified\":\"2025-04-19T01:56:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/24357.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/24357.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/24357.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728Ubuntu\u670d\u52a1\u5668\u4e0a\u5907\u4efd\u6587\u4ef6\u5230\u81ea\u5df1\u7684\u767e\u5ea6\u7f51\u76d8\"}]},{\"@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":"\u5728Ubuntu\u670d\u52a1\u5668\u4e0a\u5907\u4efd\u6587\u4ef6\u5230\u81ea\u5df1\u7684\u767e\u5ea6\u7f51\u76d8 - \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\/24357.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5728Ubuntu\u670d\u52a1\u5668\u4e0a\u5907\u4efd\u6587\u4ef6\u5230\u81ea\u5df1\u7684\u767e\u5ea6\u7f51\u76d8 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.2k\u6b21\uff0c\u70b9\u8d5e6\u6b21\uff0c\u6536\u85cf6\u6b21\u3002\u7531\u4e8e\u9879\u76ee\u8fd0\u884c\u4e2d\u4f1a\u4ea7\u751f\u9644\u4ef6\uff08\u6bd4\u5982\u56fe\u7247\u3001\u89c6\u9891\u7b49\u4e8c\u8fdb\u5236\u6587\u4ef6\uff09\uff0c\u4e00\u822c\u60c5\u51b5\u4e0b\u53ef\u4ee5\u628a\u7f51\u7ad9\u7684\u9644\u4ef6\u5b58\u50a8\u5230OSS\u4e0a\uff0c\u4f46\u662f\uff0cOSS\u9700\u8981\u82b1\u94b1\uff0c\u7531\u4e8e\u9879\u76ee\u6bd4\u8f83\u5c0f\uff0c\u800c\u4e14\u672c\u7740\u5c11\u82b1\u70b9\u94b1\u7684\u539f\u5219\uff0c\u8fd8\u662f\u628a\u9644\u4ef6\u5c31\u653e\u5728\u4e86\u7f51\u7ad9\u670d\u52a1\u5668\u4e0a\u3002\u90a3\u4e48\uff0c\u5c31\u9700\u8981\u8003\u8651\u4e00\u4e2a\u95ee\u9898\uff0c\u9644\u4ef6\u6587\u4ef6\u7684\u5907\u4efd\u95ee\u9898\u3002\u5982\u679c\u670d\u52a1\u5668\u906d\u53d7\u653b\u51fb\uff0c\u90a3\u4e48\u6709\u53ef\u80fd\u9644\u4ef6\u5c31\u627e\u4e0d\u56de\u6765\u4e86\u3002_ubuntu\u76f4\u63a5\u63a8\u9001\u6587\u4ef6\u5230\u767e\u5ea6\u4e91","og_url":"https:\/\/www.wsisp.com\/helps\/24357.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-19T01:56:28+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419015626-680302ca01bdc.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/24357.html","url":"https:\/\/www.wsisp.com\/helps\/24357.html","name":"\u5728Ubuntu\u670d\u52a1\u5668\u4e0a\u5907\u4efd\u6587\u4ef6\u5230\u81ea\u5df1\u7684\u767e\u5ea6\u7f51\u76d8 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-19T01:56:28+00:00","dateModified":"2025-04-19T01:56:28+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/24357.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/24357.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/24357.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5728Ubuntu\u670d\u52a1\u5668\u4e0a\u5907\u4efd\u6587\u4ef6\u5230\u81ea\u5df1\u7684\u767e\u5ea6\u7f51\u76d8"}]},{"@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\/24357","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=24357"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/24357\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/24352"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=24357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=24357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=24357"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=24357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}