{"id":36184,"date":"2025-05-08T07:45:53","date_gmt":"2025-05-07T23:45:53","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/36184.html"},"modified":"2025-05-08T07:45:53","modified_gmt":"2025-05-07T23:45:53","slug":"ubuntu18-04%e6%90%ad%e5%bb%basamda%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/36184.html","title":{"rendered":"Ubuntu18.04\u642d\u5efasamda\u670d\u52a1\u5668"},"content":{"rendered":"<h2>\u4e00.\u4ec0\u4e48\u662fSamba\u670d\u52a1\u5668&#xff1f;<\/h2>\n<p>Samba\u670d\u52a1\u5668\u662f\u4e00\u79cd\u57fa\u4e8e\u5f00\u6e90\u534f\u8bae\u5b9e\u73b0\u7684\u7f51\u7edc\u5171\u4eab\u670d\u52a1\u8f6f\u4ef6&#xff0c;\u4e3b\u8981\u7528\u4e8e\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf&#xff08;\u5982Windows\u3001Linux\u3001Unix&#xff09;\u4e4b\u95f4\u5b9e\u73b0\u6587\u4ef6\u548c\u6253\u5370\u673a\u5171\u4eab\u529f\u80fd\u3002\u5176\u6838\u5fc3\u76ee\u6807\u662f\u89e3\u51b3\u8de8\u5e73\u53f0\u8d44\u6e90\u5171\u4eab\u7684\u517c\u5bb9\u6027\u95ee\u9898&#xff0c;\u5c24\u5176\u662f\u5728\u6df7\u5408\u7f51\u7edc\u73af\u5883\u4e2d2\u3002<\/p>\n<h4>1.Samba\u670d\u52a1\u5668\u7684\u6838\u5fc3\u529f\u80fd<\/h4>\n<li>\n<p>\u8de8\u5e73\u53f0\u6587\u4ef6\u5171\u4eab \u901a\u8fc7\u5b9e\u73b0SMB\/CIFS\u534f\u8bae&#xff08;Windows\u7cfb\u7edf\u9ed8\u8ba4\u4f7f\u7528\u7684\u6587\u4ef6\u5171\u4eab\u534f\u8bae&#xff09;&#xff0c;Samba\u5141\u8bb8Linux\/Unix\u4e3b\u673a\u4e0eWindows\u4e3b\u673a\u5728\u5c40\u57df\u7f51\u5185\u76f4\u63a5\u5171\u4eab\u6587\u4ef6\u3002\u4f8b\u5982&#xff0c;\u7528\u6237\u53ef\u5728Windows\u8d44\u6e90\u7ba1\u7406\u5668\u4e2d\u76f4\u63a5\u8bbf\u95eeLinux\u670d\u52a1\u5668\u4e0a\u7684\u6587\u4ef612\u3002<\/p>\n<\/li>\n<li>\n<p>\u6253\u5370\u673a\u5171\u4eab Samba\u53ef\u5c06\u8fde\u63a5\u5230Linux\u4e3b\u673a\u7684\u6253\u5370\u673a\u5171\u4eab\u7ed9\u5c40\u57df\u7f51\u5185\u7684\u5176\u4ed6\u8bbe\u5907&#xff08;\u5305\u62ecWindows\u4e3b\u673a&#xff09;&#xff0c;\u5b9e\u73b0\u8de8\u5e73\u53f0\u6253\u5370\u670d\u52a11\u3002<\/p>\n<\/li>\n<li>\n<p>\u7528\u6237\u6743\u9650\u7ba1\u7406 \u652f\u6301\u57fa\u4e8e\u7528\u6237\u6216\u7ec4\u7684\u8bbf\u95ee\u63a7\u5236&#xff0c;\u53ef\u8bbe\u7f6e\u4e0d\u540c\u7528\u6237\u5bf9\u5171\u4eab\u8d44\u6e90\u7684\u8bfb\u5199\u6743\u9650\u3002\u4f8b\u5982&#xff1a;<\/p>\n<p> [shared_folder]<br \/>\npath &#061; \/home\/share<br \/>\nvalid users &#061; user1, user2<br \/>\nwritable &#061; yes <\/p>\n<\/li>\n<li>\n<p>\u57df\u540d\u670d\u52a1&#xff08;Domain Controller&#xff09; \u9ad8\u7ea7\u914d\u7f6e\u4e2d&#xff0c;Samba\u53ef\u5145\u5f53Windows\u57df\u63a7\u5236\u5668&#xff08;Active Directory&#xff09;&#xff0c;\u5b9e\u73b0\u7edf\u4e00\u7684\u7f51\u7edc\u8eab\u4efd\u8ba4\u8bc1\u548c\u7ba1\u74063\u3002<\/p>\n<\/li>\n<h4>2.\u4e3b\u8981\u7528\u9014<\/h4>\n<ul>\n<li>\n<p>\u6df7\u5408\u7f51\u7edc\u73af\u5883\u6574\u5408 \u5728\u540c\u65f6\u5b58\u5728Windows\u548cLinux\u8bbe\u5907\u7684\u7f51\u7edc\u4e2d&#xff0c;Samba\u89e3\u51b3\u4e86\u4f20\u7edf\u534f\u8bae&#xff08;\u5982NFS\u4ec5\u9002\u7528\u4e8eUnix&#xff0c;CIFS\u4ec5\u9002\u7528\u4e8eWindows&#xff09;\u7684\u5c40\u9650\u6027&#xff0c;\u6210\u4e3a\u8de8\u7cfb\u7edf\u534f\u4f5c\u7684\u6865\u68812\u3002<\/p>\n<\/li>\n<li>\n<p>\u7b80\u5316\u6587\u4ef6\u540c\u6b65 \u7528\u6237\u53ef\u76f4\u63a5\u4fee\u6539\u670d\u52a1\u5668\u4e0a\u7684\u6587\u4ef6&#xff0c;\u65e0\u9700\u53cd\u590d\u4e0b\u8f7d\u4e0a\u4f20&#xff0c;\u907f\u514d\u4e86\u7248\u672c\u51b2\u7a81\u95ee\u9898&#xff08;\u4f8b\u5982FTP\u7684\u5c40\u9650\u6027&#xff09;2\u3002<\/p>\n<\/li>\n<li>\n<p>\u4f4e\u6210\u672c\u89e3\u51b3\u65b9\u6848 \u4f5c\u4e3a\u5f00\u6e90\u8f6f\u4ef6&#xff0c;Samba\u964d\u4f4e\u4e86\u4f01\u4e1a\u90e8\u7f72\u5171\u4eab\u670d\u52a1\u7684\u6210\u672c&#xff0c;\u540c\u65f6\u63d0\u4f9b\u4e0e\u5546\u4e1a\u65b9\u6848&#xff08;\u5982Windows Server&#xff09;\u76f8\u8fd1\u7684\u529f\u80fd<\/p>\n<\/li>\n<li>\n<h4>\u6280\u672f\u539f\u7406<\/h4>\n<p>Samba\u901a\u8fc7\u6a21\u62dfSMB\u534f\u8bae\u7684\u5de5\u4f5c\u6d41\u7a0b\u5b9e\u73b0\u529f\u80fd&#xff1a;<\/p>\n<p>\u5ba2\u6237\u7aef\u8bf7\u6c42\u2192SMB\u534f\u8bae\u89e3\u6790\u2192Linux\u6587\u4ef6\u7cfb\u7edf\u64cd\u4f5c\u2192\u8fd4\u56de\u54cd\u5e94\u5ba2\u6237\u7aef\u8bf7\u6c42\u2192SMB\u534f\u8bae\u89e3\u6790\u2192Linux\u6587\u4ef6\u7cfb\u7edf\u64cd\u4f5c\u2192\u8fd4\u56de\u54cd\u5e94<\/p>\n<p>\u6b64\u8fc7\u7a0b\u5728\u5c40\u57df\u7f51\u5185\u5b8c\u6210&#xff0c;\u5ef6\u8fdf\u4f4e\u4e14\u6548\u7387\u9ad8<\/p>\n<\/li>\n<\/ul>\n<h2>\u4e8c.ubuntu\u642d\u5efasamda\u670d\u52a1\u5668<\/h2>\n<h3>1.\u5b89\u88c5samda\u8f6f\u4ef6<\/h3>\n<p>\u5148\u66f4\u65b0\u4e00\u4e0b&#xff1a;sudo apt update<\/p>\n<p>\u4e4b\u540e\u4e0b\u8f7d\u00a0 &#xff1a; sudo apt install samba -y<\/p>\n<p>\u4e0b\u8f7d\u65f6\u9047\u5230\u62a5\u9519&#xff1a;<\/p>\n<p>E: Could not get lock \/var\/lib\/dpkg\/lock-frontend &#8211; open (11: Resource temporarily unavailable)<br \/>\nE: Unable to acquire the dpkg frontend lock (\/var\/lib\/dpkg\/lock-frontend), is another process using it?<\/p>\n<p>\u8f93\u5165\u4e0b\u9762\u6307\u4ee4&#xff1a;<\/p>\n<p>sudo rm \/var\/lib\/dpkg\/lock-frontend<br \/>\nsudo rm \/var\/lib\/dpkg\/lock<\/p>\n<p>\u51fa\u73b0&#xff1a;E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.<\/p>\n<p>\u8f93\u5165\u4e0b\u9762\u6307\u4ee4&#xff1a;<\/p>\n<p>&#xff08;sudo apt update  \/\/\u66f4\u65b0\u8f6f\u4ef6\u6e90&#xff09;\u4e00\u822c\u4e0d\u7528\u8ddf\u65b0<br \/>\n\/\/\u5f3a\u5236\u4fee\u590d\u4f9d\u8d56\u94fe<br \/>\nsudo apt &#8211;fix-broken install<br \/>\nsudo apt install -f<br \/>\n\u624b\u52a8\u5904\u7406\u7248\u672c\u51b2\u7a81&#xff08;\u4ee5\u5f15\u7528[2]\u4e2d\u7684libgbm1\u4e3a\u4f8b&#xff09;<br \/>\nsudo apt install libgbm1&#061;22.0.1-1ubuntu2.1<\/p>\n<p>sudo apt-mark showhold  # \u67e5\u770b\u88ab\u9501\u5b9a\u7684\u5305<br \/>\nsudo apt-mark unhold \u5305\u540d  # \u89e3\u9664\u9501\u5b9a<\/p>\n<p>sudo apt install -f   \/\/\u6267\u884c\u8fd9\u4e2a\u6307\u4ee4\u540e\u5c31\u91cd\u65b0\u4e0b\u8f7dsamda&#xff0c;\u6211\u662f\u5230\u8fd9\u91cc\u5c31\u6ca1\u6709\u95ee\u9898\u4e86<\/p>\n<p>\u5982\u679c\u8fd8\u662f\u63d0\u793aE: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.<\/p>\n<p>\u53ef\u80fd\u662f\u955c\u50cf\u6e90\u6709\u95ee\u9898&#xff0c;<\/p>\n<p>1\u3001\u9996\u5148\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5907\u4efd\u73b0\u6709\u7684\u955c\u50cf\u6e90&#xff1a; cd \/etc\/apt sudo cp sources.list sources.list.bak\u00a0 2\u3001\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6253\u5f00\u955c\u50cf\u6e90\u6587\u4ef6&#xff1a; sudo vim \/etc\/apt\/sources.list \u00a0 3\u3001\u5728vim\u63d2\u5165\u6a21\u5f0f\u4e0b\u4f7f\u7528\u4ee5\u4e0b\u5185\u5bb9\u66ff\u6362\u6389\u539f\u955c\u50cf\u6e90\u6587\u4ef6sources.list\u4e2d\u7684\u5185\u5bb9&#xff1a;<\/p>\n<p>deb https:\/\/mirrors.tuna.tsinghua.edu.cn\/ubuntu\/ bionic main restricted universe multiverse<br \/>\ndeb-src https:\/\/mirrors.tuna.tsinghua.edu.cn\/ubuntu\/ bionic main restricted universe multiverse<br \/>\ndeb https:\/\/mirrors.tuna.tsinghua.edu.cn\/ubuntu\/ bionic-updates main restricted universe multiverse<br \/>\ndeb-src https:\/\/mirrors.tuna.tsinghua.edu.cn\/ubuntu\/ bionic-updates main restricted universe multiverse<br \/>\ndeb https:\/\/mirrors.tuna.tsinghua.edu.cn\/ubuntu\/ bionic-backports main restricted universe multiverse<br \/>\ndeb-src https:\/\/mirrors.tuna.tsinghua.edu.cn\/ubuntu\/ bionic-backports main restricted universe multiverse<br \/>\ndeb https:\/\/mirrors.tuna.tsinghua.edu.cn\/ubuntu\/ bionic-security main restricted universe multiverse<br \/>\ndeb-src https:\/\/mirrors.tuna.tsinghua.edu.cn\/ubuntu\/ bionic-security main restricted universe multiverse<br \/>\ndeb https:\/\/mirrors.tuna.tsinghua.edu.cn\/ubuntu\/ bionic-proposed main restricted universe multiverse<br \/>\ndeb-src https:\/\/mirrors.tuna.tsinghua.edu.cn\/ubuntu\/ bionic-proposed main restricted universe multiverse <\/p>\n<p>4\u3001\u4fdd\u5b58\u5e76\u9000\u51fa\u3002 5\u3001\u5728ubuntu\u80fd\u6b63\u5e38\u4e0a\u7f51\u7684\u524d\u63d0\u4e0b&#xff0c;\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u66f4\u65b0\u8f6f\u4ef6\u5217\u8868&#xff1a; sudo apt-get update sudo apt-get upgrade \u7ecf\u8fc7\u4ee5\u4e0a\u6d41\u7a0b&#xff0c;ubuntu\u4f7f\u7528\u7684\u955c\u50cf\u6e90\u5c31\u662f\u6e05\u534e\u7684\u955c\u50cf\u6e90\u4e86\u3002<\/p>\n<h3>2.\u521b\u5efa Samba \u5171\u4eab\u6587\u4ef6\u5939<\/h3>\n<p>\u7528\u6237\u521b\u5efa\u7684\u4efb\u4f55\u6587\u4ef6\u5939\u90fd\u53ef\u4ee5\u505a\u5171\u4eab\u6587\u4ef6\u5939&#xff08;\u53ea\u8981\u5f00\u653e\u8bfb\u5199\u6743\u9650&#xff09;&#xff0c;\u5982\u679c\u4e0d\u60f3\u521b\u5efa\u65b0\u7684\u6587\u4ef6\u5939&#xff0c;\u53ef\u4ee5\u8df3\u8fc7\u521b\u5efa\u7684\u6b65\u9aa4&#xff0c;\u5728\u73b0\u6709\u7684\u6587\u4ef6\u5939\u4e2d\u9009\u4e00\u4e2a\u8bbe\u7f6e\u6743\u9650\u5373\u53ef\u3002<\/p>\n<p>\u4f7f\u7528mkdir\u547d\u4ee4&#xff08;\u540e\u9762\u7684\u53c2\u6570-p\u662f\u7528\u4e8e\u521b\u5efa\u591a\u7ea7\u76ee\u5f55\u4f7f\u7528\u7684&#xff0c;\u53bb\u6389\u4e5f\u4e0d\u5f71\u54cd&#xff09;&#xff0c;\u65b0\u5efa\u4e00\u4e2a\u540d\u4e3a\u00a0<\/p>\n<p>mkdir -p Share&#xff0c;\u5efa\u7acb\u4e4b\u540e\u53bb\u5230share\u4e2d\u3002\u7528pwd\u67e5\u770b\u5176\u7edd\u5bf9\u8def\u5f84&#xff0c;\u4e4b\u540e\u7528\u5230<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"149\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507234550-681bf0ae66b17.png\" width=\"780\" \/><\/p>\n<p>\u8fd4\u56de\u4e0a\u4e00\u7ea7\u76ee\u5f55&#xff0c;\u7ed9\u5efa\u7acb\u7684share\u6587\u4ef6\u6dfb\u52a0777\u6743\u9650<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"121\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507234550-681bf0ae7944e.png\" width=\"557\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"116\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507234550-681bf0ae83af2.png\" width=\"788\" \/><\/p>\n<h3>3.\u914d\u7f6esamda\u6587\u4ef6\u548c\u8bbe\u7f6esamda\u5bc6\u7801<\/h3>\n<p>\u4e3a\u4fdd\u9669\u8d77\u89c1&#xff0c;\u5148\u5907\u4efd\u4e00\u4e0b\u539f\u6765\u7684 Samba \u914d\u7f6e\u6587\u4ef6\u3002\u540e\u9762\u51fa\u73b0\u64cd\u4f5c\u5931\u8bef\u7b49\u95ee\u9898\u5bfc\u81f4\u6587\u4ef6\u4e71\u4e86&#xff0c;\u8fd8\u6709\u5907\u4efd\u6765\u7528<\/p>\n<p>sudo cp \/etc\/samba\/smb.conf \/etc\/samba\/smb.conf.beifen<\/p>\n<p>\u7f16\u8f91\u914d\u7f6esmb.conf\u914d\u7f6e\u6587\u4ef6&#xff0c;\u6dfb\u52a0\u5171\u4eab\u76ee\u5f55\u3002<\/p>\n<p>sudo vim \/etc\/samba\/smb.conf<\/p>\n<p>\u8fdb\u6765\u4e4b\u540e&#xff0c;\u76f4\u63a5\u6309\u7ec4\u5408\u952eShift&#043;g\u8df3\u5230\u7ed3\u5c3e\u5904&#xff0c;\u5728\u7ed3\u5c3e\u5904\u628a\u4e0b\u9762\u7684\u6587\u672c\u6dfb\u52a0\u8fdb\u53bb&#xff0c;\u8981\u6ce8\u610f\u6839\u636e\u81ea\u5df1\u7684\u60c5\u51b5\u4fee\u6539\u3002<\/p>\n<p>[Ubuntu_18.04]        \/\/\u8fd9\u662f\u5171\u4eab\u7684\u540d\u79f0&#xff0c;\u4f60\u53ef\u4ee5\u5728\u7f51\u7edc\u4e0a\u8bbf\u95ee\u8be5\u5171\u4eab\u65f6\u4f7f\u7528\u3002<br \/>\n        comment &#061; Samba      \/\/\u8fd9\u662f\u5173\u4e8e\u5171\u4eab\u7684\u63cf\u8ff0\u6216\u6ce8\u91ca&#xff0c;\u663e\u793a\u7ed9\u7528\u6237\u770b\u3002<br \/>\n        path &#061; \/home\/www\/Share     \/\/\u8fd9\u662f\u5171\u4eab\u7684\u5b9e\u9645\u8def\u5f84\u3002<br \/>\n        public &#061; yes     \/\/\u8fd9\u8868\u793a\u8be5\u5171\u4eab\u662f\u5426\u4e3a\u516c\u5171\u5171\u4eab&#xff0c;\u5373\u662f\u5426\u5141\u8bb8\u533f\u540d\u7528\u6237\u8bbf\u95ee\u3002<br \/>\n        writable &#061; yes   \/\/\u8868\u793a\u662f\u5426\u5141\u8bb8\u7528\u6237\u5728\u5171\u4eab\u4e2d\u521b\u5efa\u3001\u7f16\u8f91\u548c\u5220\u9664\u6587\u4ef6\u3002<br \/>\n        available &#061; yes   \/\/\u8868\u793a\u8be5\u5171\u4eab\u662f\u5426\u53ef\u7528\u3002<br \/>\n        browseable &#061; yes   \/\/\u8868\u793a\u8be5\u5171\u4eab\u662f\u5426\u5728\u7f51\u7edc\u4e0a\u53ef\u4ee5\u6d4f\u89c8\u3002<br \/>\n        valid users &#061; www   \u5f53\u524d Ubuntu \u7cfb\u7edf\u7684\u7528\u6237\u540d\u3002 www\u6539\u6210\u4f60\u7684\u7528\u6237\u540d <\/p>\n<p>\u7136\u540e\u4fdd\u5b58\u9000\u51fa&#xff0c;\u63a5\u7740\u7ed9 Samba \u7528\u6237\u8bbe\u7f6e\u5bc6\u7801&#xff1a;<\/p>\n<p>sudo smbpasswd -a www\u00a0 \u00a0 &#xff08;www\u662f\u6211\u7684\u7528\u6237\u540d&#xff0c;\u8fd9\u91cc\u5199\u4f60\u81ea\u5df1\u7684&#xff09; <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"242\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507234550-681bf0ae928ca.png\" width=\"876\" \/><\/p>\n<h3>4.\u91cd\u542f Samba \u670d\u52a1\u5668<\/h3>\n<p>\u91cd\u542f Samba \u670d\u52a1\u5668\u53ef\u4ee5\u76f4\u63a5\u8f93\u5165\u4e0b\u5217\u547d\u4ee4&#xff1a;<\/p>\n<p>systemctl restart smbd.service   \/\/\u91cd\u542f<br \/>\nsystemctl enable smbd.service   \/\/\u80fd\u4f7f <\/p>\n<p>\u8f93\u5165\u7b2c\u4e00\u6761\u547d\u4ee4\u7684\u65f6\u5019\u4f1a\u51fa\u73b0\u4e00\u6b21\u4e0b\u9762\u8fd9\u4e2a&#xff0c;\u8fd9\u4e2a\u5c31\u662f\u4f60\u7684\u767b\u5165\u7528\u6237\u7684\u5bc6\u7801&#xff0c;\u4e0d\u662f\u521a\u624d\u8bbe\u7f6e\u7684\u5bc6\u7801<\/p>\n<p>\u8f93\u5165\u7b2c\u4e8c\u4e2a\u6267\u884c\u4f1a\u51fa\u73b0\u4e09\u6b21&#xff0c;\u8f93\u5165\u5bc6\u7801\u5c31\u597d\u4e86<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"655\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507234550-681bf0aea8818.png\" width=\"811\" \/><\/p>\n<p>\u5b8c\u6210\u4e4b\u540e\u67e5\u770b\u8fd0\u884c\u60c5\u51b5&#xff1a; systemctl status smbd.service&#xff0c;\u770b\u7eff\u8272\u7684running&#xff0c;\u8fd9\u8868\u793a\u6b63\u5728\u8fd0\u884c<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"378\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507234550-681bf0aed9daa.png\" width=\"773\" \/><\/p>\n<h3>5.\u8bbe\u7f6e\u9759\u6001IP\u5730\u5740<\/h3>\n<h4>1.\u67e5\u770bIP \u5730\u5740\u4e86<\/h4>\n<p>\u8f93\u5165ifconfig\u4fbf\u53ef\u67e5\u770b IP \u5730\u5740\u4e86&#xff0c;\u5982\u56fe\u4e2d\u7ea2\u6846\u6240\u6807\u4f4d\u7f6e\u5c31\u662f\u672c\u53f0 Ubuntu \u7684 IP \u5730\u5740\u3002\u5728\u4e0d\u786e\u5b9a\u5176\u5b83 IP \u5730\u5740\u662f\u5426\u88ab\u5176\u5b83\u8bbe\u5907\u5360\u7528\u7684\u60c5\u51b5\u4e0b&#xff0c;\u76f4\u63a5\u628a\u5f53\u524d\u7684 IP \u5730\u5740\u8bbe\u7f6e\u4e3a\u9759\u6001 IP \u6700\u4e3a\u59a5\u5f53<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"375\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507234551-681bf0af04431.png\" width=\"715\" \/><\/p>\n<h4>2. \u67e5\u770b\u7f51\u5173<\/h4>\n<p>\u8bbe\u7f6e\u9759\u6001 IP \u7684\u524d\u7f6e\u6761\u4ef6\u662f&#xff0c;\u6211\u4eec\u9700\u8981\u5148\u77e5\u9053\u5c40\u57df\u7f51\u7684\u9ed8\u8ba4\u7f51\u5173\u548c\u5b50\u7f51\u63a9\u7801\u5206\u522b\u662f\u4ec0\u4e48\u3002\u53ef\u4ee5\u5148\u901a\u8fc7\u8f93\u5165\u8fd9\u4e2aroute -n\u547d\u4ee4\u6765\u83b7\u5f97\u9ed8\u8ba4\u7f51\u5173\u548c\u5b50\u7f51\u63a9\u7801\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"151\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507234551-681bf0af14a0c.png\" width=\"756\" \/><\/p>\n<p>\u5176\u4e2d\u7684 Gateway \u7684\u5730\u5740\u5c31\u662f\u7f51\u5173\u5730\u5740&#xff0c;\u90fd\u662f 192.168.168.2<\/p>\n<p>\u800c Genmask \u4e3a\u5b50\u7f51\u63a9\u7801\u3002\u7531\u4e8e IPv4 \u5730\u5740\u662f\u7531 32 \u4f4d\u4e8c\u8fdb\u5236\u6570\u6784\u6210\u7684&#xff0c;\u5176\u4e2d\u524d 24 \u4f4d\u88ab\u7528\u6765\u8868\u793a\u7f51\u7edc\u90e8\u5206&#xff0c;\u6240\u4ee5\u5b50\u7f51\u63a9\u7801 255.255.255.0 \u7684\u7f51\u7edc\u90e8\u5206\u5360\u636e\u4e86 24 \u4f4d&#xff0c;\u90a3\u4e48\u5728 IP \u5730\u5740\u540e\u9762\u5c31\u8981\u5199 24\u3002&#xff08;\u4e00\u5171\u56db\u6bb5&#xff0c;\u6bcf\u6bb5 8 \u4e2a\u4f4d&#xff0c;\u524d\u4e09\u6bb5\u90fd\u662f 255&#xff0c;\u7b2c\u56db\u6bb5\u662f 0\u3002255 \u8f6c\u4e3a\u4e8c\u8fdb\u5236\u6570\u662f 8 \u4e2a 1&#xff0c;\u4e09\u6bb5 255 \u5c31\u6709 24 \u4e2a 1\u3002&#xff09;<\/p>\n<h4>3. DNS \u670d\u52a1\u5668&#xff08;\u57df\u540d\u670d\u52a1\u5668&#xff09;<\/h4>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u7684\u56fd\u5185\u53ef\u7528 DNS \u670d\u52a1\u5668&#xff0c;\u4ee5\u4e0b\u4fe1\u606f\u786e\u8ba4\u540e&#xff0c;\u5c31\u53ef\u4ee5\u5f00\u59cb\u914d\u7f6e\u9759\u6001 IP \u5730\u5740\u4e86\u3002<\/p>\n<p>#114 DNS&#xff1a;<br \/>\nIPv4&#xff1a;114.114.114.114\u3001114.114.115.115<\/p>\n<p>#\u963f\u91cc\u4e91 DNS&#xff1a;<br \/>\nIPv4&#xff1a;223.5.5.5\u3001223.6.6.6<\/p>\n<p>#\u817e\u8baf\u4e91 DNS&#xff1a;<br \/>\nIPv4&#xff1a;119.29.29.29\u3001119.28.28.28<\/p>\n<p>#CNNIC DNS&#xff1a;<br \/>\nIPv4&#xff1a;1.2.4.8\u3001210.2.4.8<\/p>\n<p>#\u767e\u5ea6 DNS&#xff1a;<br \/>\nIPv4&#xff1a;180.76.76.76<\/p>\n<p>#Google DNS&#xff1a;<br \/>\nIPv4&#xff1a;8.8.8.8\u30018.8.4.4<\/p>\n<h4>4.\u901a\u8fc7\u7f51\u7edc\u7ba1\u7406\u5de5\u5177\u8bbe\u7f6e\u9759\u6001 IP&#xff08;NetworkManager TUI&#xff09;<\/h4>\n<p>\u5728\u547d\u4ee4\u884c\u8f93\u5165&#xff1a;nmtui<\/p>\n<p>\u6309\u56de\u8f66\u8fdb\u5165Edit a connection<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"679\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507234551-681bf0af207d0.png\" width=\"825\" \/><\/p>\n<p>\u8fde\u7eed\u6309\u4e24\u6b21Tab\u952e&#xff0c;\u9009\u4e2d&lt;Edit&#8230;&gt;&#xff0c;\u6309\u56de\u8f66\u8fdb\u5165<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"746\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507234551-681bf0af4c727.png\" width=\"817\" \/><\/p>\n<p>\u6309\u2b07\u65b9\u5411\u952e\u628a\u5149\u6807\u4e0b\u79fb\u5230\u201cIPv4 CONFIGURATION\u201d\u540e\u9762\u7684&lt;Automatic&gt;\u6309\u56de\u8f66\u5f39\u51fa\u83dc\u5355<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"725\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507234551-681bf0af7c1af.png\" width=\"826\" \/><\/p>\n<p>\u6309\u2b07\u65b9\u5411\u952e\u9009\u62e9Manual&#xff0c;\u6309\u56de\u8f66<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"729\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507234551-681bf0afab5ab.png\" width=\"824\" \/><\/p>\n<p>\u6309\u27a1\u952e\u9009\u62e9&lt;Show&gt;&#xff0c;\u6309\u56de\u8f66<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"734\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507234551-681bf0afdac6f.png\" width=\"838\" \/><\/p>\n<p>\u7136\u540e\u9010\u4e00\u8f93\u5165 IP \u5730\u5740\u3001\u7f51\u5173\u548c DNS&#xff0c;DNS \u5c31\u662f\u4e0a\u9762\u7ed9\u51fa\u7684DNS\u670d\u52a1\u5668&#xff0c;\u4f60\u4eec\u53ef\u4ee5\u4eba\u9009\u51e0\u4e2a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"653\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507234552-681bf0b016e05.png\" width=\"787\" \/><\/p>\n<p>192.168.168.2\u5c31\u662f\u4f60\u4eecifconfig\u5f97\u5230\u7684&#xff0c;\/24\u662f\u56fa\u5b9a\u52a0\u7684<\/p>\n<p>\u5176\u4e2d\u7684 Gateway \u7684\u5730\u5740\u5c31\u662f\u7f51\u5173\u5730\u5740&#xff0c;\u90fd\u662f 192.168.168.2&#xff08;\u4e0a\u9762\u67e5\u770b\u7684&#xff09;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"478\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507234552-681bf0b0437f0.png\" width=\"697\" \/><\/p>\n<p>\u2b07\u5230\u4e0b\u9762\u9009\u62e9ok\u6309\u56de\u8f66<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"583\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507234552-681bf0b056ef9.png\" width=\"749\" \/><\/p>\n<p>\u9009\u62e9back\u56de\u8f66<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"732\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507234552-681bf0b06cc3f.png\" width=\"806\" \/><\/p>\n<p>\u9009\u62e9Quit\u56de\u8f66&#xff0c;\u9000\u51fa<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"629\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507234552-681bf0b09b2a5.png\" width=\"764\" \/><\/p>\n<p>\u9000\u51fa\u540e\u8f93\u5165reboot\u91cd\u542f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"135\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507234552-681bf0b0b16ad.png\" width=\"735\" \/><\/p>\n<h4 style=\"background-color:transparent\">6.Windows \u7cfb\u7edf\u8bbf\u95ee\u00a0Ubuntu\u00a0\u5171\u4eab\u6587\u4ef6\u5939<\/h4>\n<p>\u8bbe\u7f6e\u597d\u9759\u6001 IP \u540e&#xff0c;\u56de\u5230 Windows \u7cfb\u7edf\u4e3b\u673a&#xff0c;\u6309\u7ec4\u5408\u952eWin&#043;R&#xff0c;\u8f93\u5165 Ubuntu \u7cfb\u7edf\u7684 IPv4 \u5730\u5740&#xff0c;\u7136\u540e\u56de\u8f66&#xff0c;\u5177\u4f53\u5982\u4e0b\u56fe&#xff08;\u6ce8\u610f\u524d\u9762\u8981\u8f93\u5165\u4e24\u4e2a\u53cd\u659c\u6760&#xff09;&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"456\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507234552-681bf0b0bc01f.png\" width=\"690\" \/><\/p>\n<p>\u5728\u968f\u540e\u7684\u5f39\u7a97\u4e2d\u8f93\u5165 Ubuntu \u7684 Samba \u670d\u52a1\u5668\u8d26\u53f7\u548c\u5bc6\u7801&#xff0c;\u52fe\u4e0a\u201c\u8bb0\u4f4f\u6211\u7684\u51ed\u8bc1\u201d&#xff0c;\u518d\u70b9\u786e\u5b9a\u5373\u53ef\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"628\" src=\"2025-05-080nhvfeynacq.png\" width=\"725\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"617\" src=\"2025-05-08gcgmdflmy1o.png\" width=\"728\" \/><\/p>\n<p>\u70b9\u51fb\u786e\u8ba4\u540e\u5f39\u51fa\u4e0b\u9762\u8fd9\u6837\u6587\u4ef6\u5939\u8bf4\u660e\u5c31\u6210\u529f\u4e86<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"392\" src=\"2025-05-08i0ua24x24pw.png\" width=\"828\" \/><\/p>\n<p>\u4e3a\u4e86\u4e4b\u540e\u8bbf\u95ee\u66f4\u65b9\u4fbf&#xff0c;\u53ef\u4ee5\u53f3\u952e\u5355\u51fb\u6587\u4ef6\u5939&#xff0c;\u9009\u62e9\u201c\u6620\u5c04\u7f51\u7edc\u9a71\u52a8\u5668\u201d\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"420\" src=\"2025-05-08apoo5sw0ucv.png\" width=\"430\" \/><\/p>\n<p>\u76d8\u7b26\u53ef\u4ee5\u6307\u5b9a&#xff0c;\u4e5f\u53ef\u4ee5\u9ed8\u8ba4&#xff0c;\u5168\u51ed\u4e2a\u4eba\u559c\u597d&#xff0c;\u5355\u51fb\u201c\u5b8c\u6210\u201d\u6309\u94ae\u5373\u53ef<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"716\" src=\"2025-05-081hcnnq05ujk.png\" width=\"966\" \/><\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u7535\u8111\u591a\u4e86\u4e2a\u76d8\u7b26&#xff0c;\u4ee5\u540e\u53ea\u8981\u6253\u5f00 Ubuntu \u7cfb\u7edf&#xff0c;\u90fd\u53ef\u4ee5\u76f4\u63a5\u4ece Windows \u7684\u6587\u4ef6\u7ba1\u7406\u5668\u8bbf\u95ee Ubuntu \u7cfb\u7edf\u4e86\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"703\" src=\"2025-05-080ynz1rovpgw.png\" width=\"1237\" \/><\/p>\n<h4>7\u3001\u6d4b\u8bd5<\/h4>\n<p>\u76ee\u524d\u6211\u4eec\u786e\u5b9a&#xff0c;\u6b64\u65f6\u7684 Ubuntu \u7cfb\u7edf\u4e2d\u7684 Share \u6587\u4ef6\u5939\u662f\u7a7a\u7684&#xff0c;\u5982\u4e0b\u56fe&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"90\" src=\"2025-05-08m4e0lra520p.png\" width=\"722\" \/><\/p>\n<p>\u540c\u65f6&#xff0c;\u5728 Windows \u7cfb\u7edf\u7684\u6587\u4ef6\u7ba1\u7406\u5668\u67e5\u770b\u4e5f\u662f\u5982\u6b64\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"465\" src=\"2025-05-08d5f1nis3o1j.png\" width=\"1190\" \/><\/p>\n<p>\u53ef\u4ee5\u5728windows\u4e2d\u65b0\u5efa\u4e00\u4e2a\u6587\u672c<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"305\" src=\"2025-05-082tvhhnzbx0d.png\" width=\"1174\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"363\" src=\"2025-05-08ewsinc3t1je.png\" width=\"947\" \/><\/p>\n<h4 style=\"background-color:transparent\">\u4fdd\u5b58\u597d\u9000\u51fa&#xff0c;\u5728ubuntu\u4e2d\u53bb\u67e5\u770b&#xff0c;\u53ef\u4ee5\u770b\u5230\u662f\u4e00\u6478\u4e00\u6837\u7684<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"113\" src=\"2025-05-08iyypar3o5bq.png\" width=\"761\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"170\" src=\"2025-05-08kbag3a12ds3.png\" width=\"780\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e31\u6b21\uff0c\u6536\u85cf18\u6b21\u3002\u662f\u4e00\u79cd\u57fa\u4e8e\u5f00\u6e90\u534f\u8bae\u5b9e\u73b0\u7684\u7f51\u7edc\u5171\u4eab\u670d\u52a1\u8f6f\u4ef6\uff0c\u4e3b\u8981\u7528\u4e8e\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\uff08\u5982Windows\u3001Linux\u3001Unix\uff09\u4e4b\u95f4\u5b9e\u73b0\u529f\u80fd\u3002\u5176\u6838\u5fc3\u76ee\u6807\u662f\u89e3\u51b3\u8de8\u5e73\u53f0\u8d44\u6e90\u5171\u4eab\u7684\u517c\u5bb9\u6027\u95ee\u9898\uff0c\u5c24\u5176\u662f\u5728\u6df7\u5408\u7f51\u7edc\u73af\u5883\u4e2d2\u3002<\/p>\n","protected":false},"author":2,"featured_media":36164,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3109,43,44],"topic":[],"class_list":["post-36184","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ubuntu18.04\u642d\u5efasamda\u670d\u52a1\u5668 - \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\/36184.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ubuntu18.04\u642d\u5efasamda\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e31\u6b21\uff0c\u6536\u85cf18\u6b21\u3002\u662f\u4e00\u79cd\u57fa\u4e8e\u5f00\u6e90\u534f\u8bae\u5b9e\u73b0\u7684\u7f51\u7edc\u5171\u4eab\u670d\u52a1\u8f6f\u4ef6\uff0c\u4e3b\u8981\u7528\u4e8e\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\uff08\u5982Windows\u3001Linux\u3001Unix\uff09\u4e4b\u95f4\u5b9e\u73b0\u529f\u80fd\u3002\u5176\u6838\u5fc3\u76ee\u6807\u662f\u89e3\u51b3\u8de8\u5e73\u53f0\u8d44\u6e90\u5171\u4eab\u7684\u517c\u5bb9\u6027\u95ee\u9898\uff0c\u5c24\u5176\u662f\u5728\u6df7\u5408\u7f51\u7edc\u73af\u5883\u4e2d2\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/36184.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-07T23:45:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507234550-681bf0ae66b17.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=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/36184.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/36184.html\",\"name\":\"Ubuntu18.04\u642d\u5efasamda\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-07T23:45:53+00:00\",\"dateModified\":\"2025-05-07T23:45:53+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/36184.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/36184.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/36184.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ubuntu18.04\u642d\u5efasamda\u670d\u52a1\u5668\"}]},{\"@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":"Ubuntu18.04\u642d\u5efasamda\u670d\u52a1\u5668 - \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\/36184.html","og_locale":"zh_CN","og_type":"article","og_title":"Ubuntu18.04\u642d\u5efasamda\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e31\u6b21\uff0c\u6536\u85cf18\u6b21\u3002\u662f\u4e00\u79cd\u57fa\u4e8e\u5f00\u6e90\u534f\u8bae\u5b9e\u73b0\u7684\u7f51\u7edc\u5171\u4eab\u670d\u52a1\u8f6f\u4ef6\uff0c\u4e3b\u8981\u7528\u4e8e\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\uff08\u5982Windows\u3001Linux\u3001Unix\uff09\u4e4b\u95f4\u5b9e\u73b0\u529f\u80fd\u3002\u5176\u6838\u5fc3\u76ee\u6807\u662f\u89e3\u51b3\u8de8\u5e73\u53f0\u8d44\u6e90\u5171\u4eab\u7684\u517c\u5bb9\u6027\u95ee\u9898\uff0c\u5c24\u5176\u662f\u5728\u6df7\u5408\u7f51\u7edc\u73af\u5883\u4e2d2\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/36184.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-07T23:45:53+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250507234550-681bf0ae66b17.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/36184.html","url":"https:\/\/www.wsisp.com\/helps\/36184.html","name":"Ubuntu18.04\u642d\u5efasamda\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-07T23:45:53+00:00","dateModified":"2025-05-07T23:45:53+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/36184.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/36184.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/36184.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Ubuntu18.04\u642d\u5efasamda\u670d\u52a1\u5668"}]},{"@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\/36184","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=36184"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/36184\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/36164"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=36184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=36184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=36184"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=36184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}