{"id":90,"date":"2025-07-23T11:22:04","date_gmt":"2025-07-23T03:22:04","guid":{"rendered":"https:\/\/caoxunyi.cn\/?p=90"},"modified":"2025-07-23T11:44:22","modified_gmt":"2025-07-23T03:44:22","slug":"linux%e5%ad%a6%e4%b9%a0","status":"publish","type":"post","link":"https:\/\/caoxunyi.cn\/index.php\/90\/","title":{"rendered":"Linux\u5b66\u4e60"},"content":{"rendered":"<h1>\u5199\u5728\u524d\u9762<\/h1>\n<blockquote>\n<p>\u672c\u6587\u4e3a\u65e9\u671f\u7248\u672c\uff0c\u53ef\u80fd\u6709\u4e9b\u8bb8\u8c2c\u8bef\uff0c\u9605\u8bfb\u65f6\u8bf7\u6ce8\u610f\u7504\u522b\u3002<\/p>\n<\/blockquote>\n<p>\u4eb2\u7231\u7684\u63a2\u7d22\u8005\u4eec\uff1a<\/p>\n<p>\u6b22\u8fce\u8e0f\u4e0aLinux\u5b9e\u8df5\u5f81\u9014\uff01\u5728\u542f\u7a0b\u4e4b\u524d\uff0c\u8bf7\u4ed4\u7ec6\u9605\u8bfb\u8fd9\u4efd\u5bfc\u822a\u624b\u518c\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u77e5\u8bc6\u50a8\u5907<\/strong><\/p>\n<ul>\n<li>\u2705 \u5b8c\u6574\u9605\u8bfb\u300aLinux\u5b66\u4e60\u5efa\u8bae\u300b<\/li>\n<li>\u2705 \u638c\u63e1\u300aLinux\u57f9\u8bad\u300b\u6838\u5fc3\u77e5\u8bc6<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u5b9e\u8df5\u4ef7\u503c<\/strong>\n\u6bcf\u4e2a\u4efb\u52a1\u90fd\u662f\u771f\u5b9e\u573a\u666f\u7684\u5fae\u7f29\u666f\u89c2\uff0c\u5b8c\u6210\u672c\u4f5c\u4e1a\u4f60\u5c06\u6536\u83b7\uff1a<\/p>\n<ul>\n<li>\ud83d\udee0\ufe0f Linux\u73af\u5883\u642d\u5efa\u4e0e\u8fd0\u7ef4\u7684\u5de5\u7a0b\u5316\u601d\u7ef4<\/li>\n<li>\ud83d\udcdd \u6280\u672f\u6587\u6863\u5199\u4f5c\u7684\u89c4\u8303\u5316\u80fd\u529b<\/li>\n<li>\ud83d\udd0d \u4ece\u62a5\u9519\u4fe1\u606f\u4e2d\u5b9a\u4f4d\u95ee\u9898\u7684\u706b\u773c\u91d1\u775b<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u5b66\u672f\u51c6\u5219<\/strong>\n\u5141\u8bb8\u4f7f\u7528AI\u5de5\u5177\u8f85\u52a9\u5b66\u4e60\uff0c\u4f46\u5fc5\u987b\u9075\u5b88\uff1a<\/p>\n<ul>\n<li>\ud83e\udd16 \u6240\u6709AI\u751f\u6210\u5185\u5bb9\u5fc5\u987b\u7ecf\u8fc7<strong>\u7ec8\u7aef\u9a8c\u8bc1<\/strong><\/li>\n<li>\ud83d\udeab \u7981\u6b62\u76f4\u63a5\u590d\u5236\u6a21\u578b\u8f93\u51fa\u4f5c\u4e3a\u7b54\u6848<\/li>\n<li>\ud83d\udcda \u5f15\u7528\u7b2c\u4e09\u65b9\u8d44\u6e90\u9700\u6309<strong>\u76f8\u5173\u7f51\u7ad9\u534f\u8bae\u8981\u6c42\u6807\u6ce8\u51fa\u5904\u548c\u4f5c\u8005<\/strong>\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<blockquote>\n<p><strong>\u7279\u522b\u63d0\u793a<\/strong>\uff1a\u5b9e\u9a8c\u5ba4\u5c06\u4f7f\u7528\u4ee3\u7801\u67e5\u91cd\u5de5\u5177\u5bf9\u6240\u6709\u63d0\u4ea4\u5185\u5bb9\u8fdb\u884c\u4ea4\u53c9\u9a8c\u8bc1\uff0c\u8bf7\u786e\u4fdd\u4f5c\u4e1a\u7684\u539f\u521b\u6027\u3002<\/p>\n<\/blockquote>\n<h1>\u7b2c\u96f6\u7ae0<\/h1>\n<h3>Level 1<\/h3>\n<ul>\n<li>\u638c\u63e1\u6807\u51c6\u8bed\u6cd5\uff08\u6807\u9898\/\u5217\u8868\/\u4ee3\u7801\u5757\/\u8868\u683c\uff09<\/li>\n<li>\u719f\u7ec3\u4f7f\u7528\u6269\u5c55\u8bed\u6cd5\uff08\u6d41\u7a0b\u56fe\/\u65f6\u5e8f\u56fe\/LaTeX\u516c\u5f0f\uff09<\/li>\n<li>\u5b9e\u8df5Typora\/VSCode\u7b49\u7f16\u8f91\u5668\u7684\u8fdb\u9636\u529f\u80fd\uff08\u76ee\u5f55\u751f\u6210\/\u6587\u6863\u5bfc\u51fa PDF\/HTML\/\u7248\u672c\u63a7\u5236\uff09<\/li>\n<\/ul>\n<h3>Level 2<\/h3>\n<p>\u9664\u4e86\u9898\u76ee\u7684\u7b54\u6848\uff0c\u63a8\u8350\u4f7f\u7528 Markdown \u8be6\u7ec6\u8bb0\u5f55\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<ol>\n<li><strong>\u64cd\u4f5c\u65e5\u5fd7<\/strong>\uff1a\u5305\u542b\u5b8c\u6574\u7ec8\u7aef\u547d\u4ee4\u4e0e\u8f93\u51fa<\/li>\n<li><strong>\u77e5\u8bc6\u6ce8\u89e3<\/strong>\uff1a\u5bf9\u5173\u952e\u6b65\u9aa4\u6dfb\u52a0\u539f\u7406\u8bf4\u660e<\/li>\n<li><strong>\u95ee\u9898\u6863\u6848<\/strong>\uff1a\u8bb0\u5f55\u9047\u5230\u7684\u9519\u8bef\u53ca\u89e3\u51b3\u8def\u5f84<em>\uff08\u5efa\u8bae\u4f7f\u7528\u4ee3\u7801\u5757+\u6ce8\u91ca\u7684\u6df7\u5408\u6392\u7248\uff09<\/em><\/li>\n<\/ol>\n<p>P.S. \u4f18\u79c0\u7684\u7b14\u8bb0\u53ef\u4ee5\u589e\u52a0\u5370\u8c61\u5206\u54e6~<\/p>\n<h3>Level 3\uff08\u9009\u505a\uff09<\/h3>\n<p>\u5c06\u8bb0\u5f55\u7684 Markdown \u5185\u5bb9\u90e8\u7f72\u5230\u4e2a\u4eba\u535a\u5ba2\u7cfb\u7edf\uff08\u5982 Wordpress\u3001Typecho\u3001Ghost\u3001Hexo\u3001Hugo\u3001halo \u7b49\uff09\u3002<\/p>\n<p>\u5728\u7f16\u5199\u535a\u5ba2\u65f6\uff0c\u5982\u679c\u9700\u8981\u5f15\u7528\u5176\u4ed6\u8d44\u6599\uff0c<strong>\u8bf7\u6309\u7167\u76f8\u5173\u7f51\u7ad9\u534f\u8bae\u8981\u6c42\u6807\u6ce8\u51fa\u5904\u548c\u4f5c\u8005<\/strong>\u3002<\/p>\n<p><strong>\u89c4\u8303\u8981\u6c42<\/strong>\uff1a<\/p>\n<ul>\n<li>\u6dfb\u52a0CC-BY-NC-SA\u534f\u8bae\u58f0\u660e<\/li>\n<li>\u5f15\u7528\u7b2c\u4e09\u65b9\u5185\u5bb9\u65f6\uff0c\u68c0\u67e5\u7f51\u7ad9\u6388\u6743\u534f\u8bae\u6216\u8005\u5728\u6587\u672b\"\u53c2\u8003\u8d44\u6599\"\u89c4\u8303\u6807\u6ce8\n<em>\uff08\u793a\u4f8b\uff1a<\/em>[1] TUNA. Ubuntu\u955c\u50cf\u4f7f\u7528\u6307\u5357[EB\/OL]. <a href=\"https:\/\/mirrors.tuna.tsinghua.edu.cn\/help\/ubuntu\/\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/mirrors.tuna.tsinghua.edu.cn\/help\/ubuntu\/<\/a>, 2023\uff09<\/li>\n<\/ul>\n<p><strong>\u6f14\u793a\uff1a<\/strong><\/p>\n<p><a href=\"https:\/\/hs.cnies.org\/archives\/part0-level1\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/hs.cnies.org\/archives\/part0-level1<\/a><\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"mpMxs6qL2z\"><a href=\"http:\/\/youzicha-blog.top\/%e7%bc%96%e8%af%91%e9%93%be%e6%8e%a5\/\" target=\"_blank\"  rel=\"nofollow\" >\u7f16\u8bd1\u94fe\u63a5<\/a><\/blockquote>\n<iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"\u300a \u7f16\u8bd1\u94fe\u63a5 \u300b\u2014\u67da\u5b50\u8336\" src=\"http:\/\/youzicha-blog.top\/%e7%bc%96%e8%af%91%e9%93%be%e6%8e%a5\/embed\/#?secret=7uLoD3T3Z2#?secret=mpMxs6qL2z\" data-secret=\"mpMxs6qL2z\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<h3>\u4f5c\u4e1a\u63d0\u4ea4<\/h3>\n<p><strong>\u63d0\u4ea4\u5730\u5740<\/strong>\uff1a<a href=\"https:\/\/f.wps.cn\/g\/IF4Q9gbs\/\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/f.wps.cn\/g\/IF4Q9gbs\/<\/a><\/p>\n<p><strong>\u622a\u6b62\u65f6\u95f4<\/strong>\uff1a2025\u5e742\u670816\u65e5 23:59\uff0c\u8fc7\u65f6\u4e0d\u5019<\/p>\n<p>\u4f60\u9700\u8981\u586b\u5199\uff1a<\/p>\n<ol>\n<li><strong>\u59d3\u540d\u3001\u5b66\u53f7\u3001QQ\u53f7\u7b49\u4e2a\u4eba\u4fe1\u606f<\/strong><\/li>\n<li><strong>\u4f5c\u4e1a\u6587\u4ef6<\/strong>\uff1a\u5305\u542b\u4f5c\u4e1a\u7b54\u6848\u7684 Markdown \u6587\u4ef6\u3002\u8bf7\u786e\u4fdd\u56fe\u7247\u3001\u8d85\u94fe\u63a5\u7b49\u5143\u7d20\u94fe\u63a5\u51c6\u786e\u3001\u53ef\u88ab\u8bbf\u95ee\u3002\u4f60\u53ef\u4ee5\u5c06\u56fe\u7247\u4e0a\u4f20\u5230\u56fe\u5e8a\uff0c\u6216\u8005\u5c06\u56fe\u7247\u548c Markdown \u6587\u4ef6\u4e00\u8d77\u6253\u5305\u63d0\u4ea4\uff0c\u4e5f\u53ef\u4ee5\u5bfc\u51fa PDF \u63d0\u4ea4\u3002\u5982\u679c\u56fe\u7247\u65e0\u6cd5\u6b63\u5e38\u663e\u793a\u5c06\u89c6\u4e3a\u672a\u5b8c\u6210\u3002<\/li>\n<li><strong>\u535a\u5ba2\u5730\u5740<\/strong>\uff1a\u9009\u505a\u3002\u9700\u8981\u63d0\u4ea4\u6c38\u4e45\u53ef\u8bbf\u95ee\u7684\u90e8\u7f72\u94fe\u63a5\uff0c\u5982\u679c\u7b54\u6848\u4e0a\u4f20\u5230\u535a\u5ba2\u53ef\u4ee5\u53ea\u4e0a\u4f20\u535a\u5ba2\u5730\u5740\u3002<\/li>\n<li><strong>\u9898\u76ee\u5b8c\u6210\u60c5\u51b5<\/strong>\uff1a\u52fe\u9009\u4f60\u5b8c\u6210\u7684\u9898\u76ee<\/li>\n<\/ol>\n<h1>\u7b2c\u4e00\u7ae0<\/h1>\n<p>zht\u60f3\u5728\u81ea\u5df1\u7684\u5929\u9009\u59ec\u4e0a\u88c5\u4e00\u4e2alinux\u7cfb\u7edf\u3002<\/p>\n<p>zht\u67e5\u9605\u8d44\u6599\u540e\u53d1\u73b0Ubuntu\u662f\u751f\u6001\u8f83\u597d\u7684\u3010<strong>\u53d1\u884c\u7248<\/strong>\u3011\u4e4b\u4e00\uff0c<del>\u51fa\u4e8e\u5b66\u4e60\u76ee\u7684<\/del>\u51b3\u5b9a\u4f7f\u7528\u865a\u62df\u673a\u8fdb\u884c\u5b89\u88c5\u3002zht\u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u5728<a href=\"https:\/\/mirrors.tuna.tsinghua.edu.cn\/ubuntu-releases\/\" target=\"_blank\"  rel=\"nofollow\" >\u6e05\u534e\u5927\u5b66\u5f00\u6e90\u8f6f\u4ef6\u955c\u50cf\u7ad9 <\/a>\u4e0b\u8f7d\u4e86\u7cfb\u7edf\u6240\u9700\u8981\u7684iso\u6587\u4ef6\uff0c\u901a\u8fc7\u641c\u7d22\u3010\u865a\u62df\u673a\u8f6f\u4ef6\u3011\u5f97\u77e5VMware\u662f\u5176\u4e2d\u4e00\u6b3e\u4f7f\u7528\u5e7f\u6cdb\u7684\u8f6f\u4ef6\u3002\u7ecf\u8fc7\u7b80\u5355\u7684\u6559\u7a0b\u5b66\u4e60\u4e0e\u77ed\u6682\u7684\u8f7d\u5165\uff0czht\u6210\u529f\u7684\u5728\u865a\u62df\u673a\u4e0a\u5b89\u88c5\u4e86Ubuntu\uff01\u897f\u5361\u897f\uff0c\u684c\u9762\u7a7a\u7a7a\u5982\u4e5f\u3002zht\u901a\u8fc7<strong>\u5feb\u6377\u952e<\/strong>\u3010<strong>Ctrl + Alt + T<\/strong>\u3011\u6253\u5f00\u4e86\u7ec8\u7aef\uff0c\u6b63\u5f0f\u5f00\u542f\u4e86\u81ea\u5df1\u7684linux\u4e4b\u65c5\u3002<\/p>\n<hr \/>\n<p>1.\u5728\u5b89\u88c5\u865a\u62df\u673a\u65f6\uff0czht\u521b\u5efa\u4e86\u4e00\u4e2a\u540d\u4e3a\u201cyouzicha\u201d\u7684\u7528\u6237\u3002\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165<\/p>\n<pre><code>pwd<\/code><\/pre>\n<p>(\u4e5f\u5c31\u662fprint working directory)\u53ef\u4ee5\u67e5\u770b\u5f53\u524d\u6240\u5904\u7684\u6587\u4ef6\u5939\uff0c\u5982\u5728\u684c\u9762\u65f6\u4e3a <strong><em>\/home\/youzicha<\/em><\/strong>\uff1b<\/p>\n<p>2.\u4f7f\u7528\u547d\u4ee4<\/p>\n<pre><code>ls<\/code><\/pre>\n<p>\u53ef\u4ee5\u67e5\u770b\u5f53\u524d\u6587\u4ef6\u5939\u4e0b\u7684\u6587\u4ef6\u7b49\uff0c\u5982 <strong><em>Desktop Documents Downloads<\/em> etc.<\/strong>\uff1b\u70b9\u51fb\u56fe\u5f62\u5316\u684c\u9762\u4e0a\u7684Home\u6587\u4ef6\u5939\uff0c\u53ef\u4ee5\u53d1\u73b0\u662f\u4e00\u81f4\u7684\u3002<\/p>\n<p>3.\u6b64\u65f6\u4f7f\u7528<\/p>\n<pre><code>cd Desktop<\/code><\/pre>\n<p>\u547d\u4ee4\u53ef\u4ee5\u5207\u6362\u6587\u4ef6\u5939\u5230Desktop\u4e0b\u3002<\/p>\n<hr \/>\n<p>4.\u201c\u6211\u53ef\u662f\u8981\u6210\u4e3a<del>linus<\/del> linux\u7684\u7537\u4eba\uff01\u201d zht\u7acb\u9a6c\u5f00\u59cb\u7f16\u5199\u81ea\u5df1\u5728Ubuntu\u4e0a\u7684\u7b2c\u4e00\u4e2ac\u7a0b\u5e8f\u3002<\/p>\n<p>\u4ed6\u5728Desktop\u6587\u4ef6\u5939\u4e0b\u4f7f\u7528\u547d\u4ee4<\/p>\n<pre><code>mkdir firstStep<\/code><\/pre>\n<p>\u521b\u5efa\u4e86\u4e00\u4e2a\u540d\u4e3a\"firstStep\"\u7684\u65b0\u6587\u4ef6\u5939 \u3002<\/p>\n<p>5.zht\u65e9\u5c31\u542c\u8fc7\u6587\u672c\u7f16\u8f91\u5668Vim\u7684\u5927\u540d\uff0c\u4e8e\u662f\u4ed6\u5728\u7ec8\u7aef\u8f93\u5165 <\/p>\n<pre><code>vim hello211Lab.c<\/code><\/pre>\n<p>\u6253\u7b97\u4f7f\u7528vim\u521b\u5efa\u5e76\u6253\u5f00\u4e00\u4e2a\u540d\u53eb<code>hello211Lab.c<\/code>\u7684c\u6587\u4ef6\u3002<\/p>\n<p>6.\u53d1\u73b0\u51fa\u73b0\u5982\u4e0b\u4fe1\u606f\uff1a<strong><code>Command 'vim' not found, but can be installed with: &hellip;&hellip;<\/code><\/strong> \u201c\u53ef\u6076\uff0c\u539f\u6765\u8fd8\u8981\u4e0b\u8f7d\u5417\uff1fvi\u4f60\u8fd9\u5bb6\u4f19\u2026\u2026\u201d \u6839\u636e\u63d0\u793a\uff0czht\u8f93\u5165 <\/p>\n<pre><code>sudo apt install vim<\/code><\/pre>\n<p>\u4e0b\u8f7dvim\u5e76\u8fdb\u884c\u4e0b\u4e00\u6b65\u64cd\u4f5c\u3002<\/p>\n<p><del>ps\uff1avim\u7684\u4f7f\u7528<\/del><\/p>\n<hr \/>\n<p>\"\u7ec8\u4e8e\u53ef\u4ee5\u5f00\u59cb\u5199\u4ee3\u7801\u5566\uff01\"zht\u5728hello211Lab.c\u4e2d\u8f93\u5165<\/p>\n<pre><code>#include&lt;stdio.h&gt;\nint main(int argc, char *argv[])\n{\n    printf(&quot;Hello! My 211Lab!&quot;);\n    return 0;\n}<\/code><\/pre>\n<p>ps\uff1a<a href=\"https:\/\/blog.csdn.net\/xiangxianghehe\/article\/details\/122856771\" target=\"_blank\"  rel=\"nofollow\" >\u3010Ubuntu 22.04\u56fd\u5185\u6e90\u3011<\/a> <\/p>\n<p>\u5e76*<strong>\u9000\u51fa\u4fdd\u5b58<\/strong>\u3002\u201c\u4e0d\u5bf9\uff0c\u6211\u8be5\u600e\u4e48\u8fd0\u884c\u554a\uff1f\u201d<\/p>\n<p>7.\u7ecf\u8fc7\u8d44\u6599\u67e5\u9605\uff0czht\u77e5\u9053\u4e86.c\u6587\u4ef6\u9700\u8981\u7f16\u8bd1\u51fa\u53ef\u6267\u884c\u6587\u4ef6\u624d\u80fd\u8fd0\u884c\u3002<\/p>\n<p>\u5728\u5b89\u88c5\u597dgcc\u540e\uff0c\u7ec8\u7aef\u8f93\u5165 <\/p>\n<pre><code>gcc hello211Lab<\/code><\/pre>\n<p>\u53ef\u4ee5\u53d1\u73b0\u4ea7\u751f\u4e86\u65b0\u6587\u4ef6 <strong><em>hello211Lab<\/em><\/strong> <\/p>\n<p>8.\u518d\u6b21\u8f93\u5165 <\/p>\n<pre><code>.\/hello211Lab<\/code><\/pre>\n<p>\u5373\u53ef\u8fd0\u884c\u7a0b\u5e8f\u5f97\u5230\u7ed3\u679c <strong><em>Hello! My 211Lab!<\/em><\/strong><\/p>\n<p><del>ps\uff1a\u5173\u4e8emain\u51fd\u6570\u53c2\u6570\u201cint argc, char *argv[]\u201d<\/del><\/p>\n<p>\u6b64\u5916\uff0c\u547d\u4ee4\u3010<strong><em>echo<\/em><\/strong>\u3011\u4e5f\u53ef\u4ee5\u8fdb\u884c\u7a0b\u5e8f\u7f16\u5199\u3002\u8f93\u5165 <strong><em>echo\n<code> &gt;&gt; &lt;file&gt;&lt;\/em&gt;&lt;\/strong&gt; \u53ef\u4ee5\u5b9e\u73b0\u540c\u6837\u7684\u6548\u679c\uff0c\u8bf7\u6ce8\u610f\uff1a&lt;strong&gt;&gt;&lt;\/strong&gt; \u4f1a\u8986\u76d6\u6587\u4ef6\u4e2d\u7684\u5185\u5bb9 \uff1b\u800c &lt;strong&gt;&gt;&gt;&lt;\/strong&gt; \u5219\u5728\u6587\u4ef6\u672b\u5c3e\u8ffd\u52a0\u5185\u5bb9&lt;\/p&gt;\n&lt;p&gt;\u547d\u4ee4\u3010&lt;strong&gt;&lt;em&gt;cat&lt;\/em&gt;&lt;\/strong&gt;\u3011\u53ef\u4ee5\u8f93\u51fa\u6587\u4ef6\u4e2d\u7684\u4fe1\u606f\uff0c\u5982 &lt;strong&gt;&lt;em&gt;cat hello211Lab.c&lt;\/em&gt;&lt;\/strong&gt; \u4f1a\u76f4\u63a5\u5f97\u5230\u4e0a\u8ff0\u4ee3\u7801\u5757\u4e2d\u7684\u5185\u5bb9\u3002&lt;\/p&gt;\n&lt;hr \/&gt;\n&lt;p&gt;&hellip;&hellip;&hellip;&hellip;&lt;\/p&gt;\n&lt;p&gt;&lt;strong&gt;\u591a\u5e74\u4ee5\u540e\uff0c\u5f53\u9762\u5bf9\u773c\u524d\u7684\u7535\u8111\uff0czht\u4e66\u8bb0\u5c06\u4f1a\u60f3\u8d77\u7f16\u5199hello211Lab.c\u7684\u90a3\u4e2a\u4e0b\u5348\u3002&lt;\/strong&gt;&lt;\/p&gt;\n&lt;p&gt;9.zht\u4e66\u8bb0\u5728 &lt;strong&gt;\/home\/youzicha&lt;\/strong&gt; \u4e0b\u4f7f\u7528\u547d\u4ee4\u3010&lt;strong&gt;find&lt;\/strong&gt;\u3011\u67e5\u627e\u4ed6\u5728linux\u4e0a\u6240\u7f16\u5199\u7b2c\u4e00\u4e2ac\u7a0b\u5e8f\uff0c\u4e0d\u8fc7\u4ed6\u5df2\u8bb0\u4e0d\u6e05\u695a\u6587\u4ef6\u7684\u5168\u540d\uff0c\u53ea\u77e5\u9053\u662f\u4ee5Lab\u4e3a\u7ed3\u5c3e\u7684c\u7a0b\u5e8f\u3002&lt;\/p&gt;\n&lt;pre&gt;&lt;code&gt;find \/home\/youzicha f -name '*Lab.c'<\/code><\/pre>\n<p>\u5f97\u5230 <strong>.\/Desktop\/firstStep\/hello211Lab.c<\/strong> <\/p>\n<p>10.\u4ed6\u4f7f\u7528\u3010<strong>cp<\/strong>\u3011\u547d\u4ee4\u4e3a\u5176\u590d\u5236\u5efa\u7acb\u4e86\u4e00\u4e2a\u540e\u7f00\u540d\u4e3a.bak\u7684\u526f\u672c\uff1b<\/p>\n<pre><code>cp hello211Lab.c hello211Lab.bak<\/code><\/pre>\n<p>11.\u5728\/Desktop\u4e0b\u4f7f\u7528\u3010<strong>mv<\/strong>\u3011\u5373 *<strong>mv firstStep\/<em> .<\/em><\/strong> \u5c06\u6240\u6709\u7684\u6587\u4ef6\u79fb\u52a8\u5230\u6b64\u5904\uff0c\u5e76\u4f7f\u7528\u547d\u4ee4\u3010<strong>rm<\/strong>\u3011<\/p>\n<pre><code>rm -r firstStep<\/code><\/pre>\n<p>\u5220\u9664\u4e86\u81ea\u5df1\u5efa\u7acb\u7684\u7b2c\u4e00\u4e2a\u6587\u4ef6\u5939\u3002<\/p>\n<p>zht\u4e0d\u8bed\uff0c\u53ea\u662f\u4e00\u5473\u5730\u770b\u7740\u684c\u9762\u3002\u4ed6\u5728\u601d\u8003\u3001\u601d\u8003\u3002<\/p>\n<p>\u826f\u4e45\uff0c\u826f\u4e45\u3002<\/p>\n<p>\u4ed6\u8f93\u5165\u4e86\u3010touch\u3011(touch finale) \u5efa\u7acb\u4e86\u4e00\u4e2a\u540d\u4e3a\u201dfinale\u201c\u7684\u6587\u4ef6\u3002\u4ed6\u4f7f\u7528vim\u5728\u5176\u4e2d\u5199\u4e0b\uff1a<\/p>\n<pre><code>***\u4e07\u7269\u8fce\u6625\u9001\u6b8b\u814a\uff0c\u4e00\u5e74\u7ed3\u5c40\u5728\u4eca\u5bb5\u3002***<\/code><\/pre>\n<h1>\u7b2c\u4e8c\u7ae0<\/h1>\n<p>\u5171\u5305\u542b\u4e24\u9053\u65e5\u5e38\u4f7f\u7528\u573a\u666f\u7684\u9898\u76ee\uff0c\u6bcf\u9053\u9898\u76ee\u7ed9\u51fa\u4e86\u5f53\u524d\u7684\u7528\u6237\u548c\u8def\u5f84\u3002\u6bcf\u9053\u9898\u76ee\u53ef\u80fd\u6709\u4e00\u6761\u6216\u8005\u591a\u6761\u6307\u4ee4\u3002<\/p>\n<h2>Deepseek R1<\/h2>\n<p>\u8fd1\u671f\uff0cDeepseek \u4e0a\u7ebf\u4e86 V3 \u548c R1 \u6a21\u578b\u706b\u7206\u5168\u7f51\u3002\u9648\u8317\u7814\u5e08\u59d0\u60f3\u8981\u5728\u4ed6\u7684\u7535\u8111\u4e0a\u90e8\u7f72 Deepseek R1 \u6a21\u578b\uff0c\u4f7f\u7528 <a href=\"https:\/\/github.com\/ggerganov\/llama.cpp\" target=\"_blank\"  rel=\"nofollow\" >llama.cpp<\/a> \u6846\u67b6\u8fdb\u884c\u63a8\u7406\u3002<\/p>\n<p>\u9648\u8317\u7814\u5e08\u59d0\u7684\u7535\u8111\u914d\u7f6e\u5982\u4e0b\uff0c\u8bf7\u534f\u52a9\u5b8c\u6210\u4ee5\u4e0b\u64cd\u4f5c\uff1a<\/p>\n<img decoding=\"async\" src=\"https:\/\/s2.loli.net\/2025\/02\/06\/rEnAUNjuFxw5Y21.jpg\" alt=\"myggfetch_.png\" style=\"zoom:25%;\" \/>\n<h3>\u4e00\u3001\u5b89\u88c5 Docker<\/h3>\n<ol>\n<li>\n<p>\u9996\u5148\uff0c\u9648\u8317\u7814\u4ece\u6e05\u534e\u5927\u5b66\u955c\u50cf\u7ad9\u4e0b\u8f7d Docker 27.5.1 \u9759\u6001\u4e8c\u8fdb\u5236\u5305\uff08<a href=\"https:\/\/mirrors.tuna.tsinghua.edu.cn\/docker-ce\/linux\/static\/stable\/x86_64\/docker-27.5.1.tgz\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/mirrors.tuna.tsinghua.edu.cn\/docker-ce\/linux\/static\/stable\/x86_64\/docker-27.5.1.tgz<\/a>\uff09\uff1a<\/p>\n<pre><code class=\"lang-bash language-bash bash\">7uHeck@LAPTOP-114514:~$ wget https:\/\/mirrors.tuna.tsinghua.edu.cn\/docker-ce\/linux\/static\/stable\/x86_64\/docker-27.5.1.tgz<\/code><\/pre>\n<\/li>\n<li>\n<p>\u89e3\u538b\u6e90\u7801\u5305\u5230 <code>\/opt\/docker<\/code><\/p>\n<pre><code class=\"lang-bash language-bash bash\">7uHeck@LAPTOP-114514:~$ sudo mkdir -p \/opt\/docker \n7uHeck@LAPTOP-114514:~$ sudo tar -xvzf docker-27.5.1.tgz -C\/opt\/docker<\/code><\/pre>\n<\/li>\n<li>\n<p>\u4e3a\u4e86\u8ba9\u5f53\u524d\u7528\u6237\u5728\u4e0d\u5207 root\uff0c\u6216\u8005\u4e0d\u52a0 sudo \u7684\u60c5\u51b5\u4e0b\u6b63\u5e38\u4f7f\u7528 Docker \u547d\u4ee4\uff0c\u9648\u8317\u7814\u5e08\u59d0\u9996\u5148\u6dfb\u52a0\u4e86 Docker \u7528\u6237\u7ec4<\/p>\n<pre><code class=\"lang-bash language-bash bash\">7uHeck@LAPTOP-114514:~$ sudo groupadd docker<\/code><\/pre>\n<p>\u5c06\u5f53\u524d\u7528\u6237\u6dfb\u52a0\u5230\u7528\u6237\u7ec4<\/p>\n<pre><code class=\"lang-bash language-bash bash\">7uHeck@LAPTOP-114514:~$ sudo usermod -aG docker $USR<\/code><\/pre>\n<p>\u4f7f\u6743\u9650\u751f\u6548<\/p>\n<pre><code class=\"lang-bash language-bash bash\">7uHeck@LAPTOP-114514:~$ newgrp docker<\/code><\/pre>\n<p>\u68c0\u67e5\u662f\u5426\u751f\u6548<\/p>\n<pre><code class=\"lang-bash language-bash bash\">7uHeck@LAPTOP-114514:~$ docker --version<\/code><\/pre>\n<\/li>\n<li>\n<p>\u7f16\u8f91 <code>\/etc\/systemd\/system\/docker.service<\/code> \u52a0\u5165\u4e0b\u9762\u5185\u5bb9\uff0c\u7136\u540e\u901a\u8fc7 <code>_____<\/code> \u64cd\u4f5c\u5b8c\u6210\u4e86\u4fdd\u5b58\u5e76\u9000\u51fa\u3002\u6b64\u65f6\u5df2\u7ecf\u5c06 Docker \u6ce8\u518c\u4e3a service \u670d\u52a1\u3002<\/p>\n<pre><code class=\"lang-bash language-bash bash\">7uHeck@LAPTOP-114514:~$ vim \/etc\/systemd\/system\/docker.service\n\n# \u7136\u540e\u52a0\u5165\u4e86\u4e0b\u9762\u5185\u5bb9\n[Unit]\nDescription=Docker Application Container Engine\nDocumentation=https:\/\/docs.docker.com\nAfter=network-online.target firewalld.service\nWants=network-online.target\n\n[Service]\nType=notify\nExecStart=\/opt\/docker\/dockerd \nExecReload=\/bin\/kill -s HUP $MAINPID\nLimitNOFILE=infinity\nLimitNPROC=infinity\nLimitCORE=infinity\nTimeoutStartSec=0\nDelegate=yes\nKillMode=process\nRestart=on-failure\nStartLimitBurst=3\nStartLimitInterval=60s\n\n[Install]\nWantedBy=multi-user.target<\/code><\/pre>\n<\/li>\n<li>\n<p>\u6dfb\u52a0\u6267\u884c\u6743\u9650\u5e76\u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6<\/p>\n<pre><code class=\"lang-bash language-bash bash\">7uHeck@LAPTOP-114514:~$ sudo chmod +x \/opt\/docker\/dockerd<\/code><\/pre>\n<\/li>\n<li>\n<p>\u542f\u52a8 Docker<\/p>\n<pre><code class=\"lang-bash language-bash bash\">7uHeck@LAPTOP-114514:~$ sudo systemctl daemon-reload<\/code><\/pre>\n<\/li>\n<\/ol>\n<h3>\u4e8c\u3001\u4e0b\u8f7d\u6a21\u578b<\/h3>\n<p>\u5728 AI \u793e\u533a <a href=\"https:\/\/developer.aliyun.com\/modelscope\/\" target=\"_blank\"  rel=\"nofollow\" >ModelScope<\/a> \u4e2d\uff0cDeepSeek R1 \u6a21\u578b\u7684 GGUF \u683c\u5f0f\u6587\u4ef6\u5305\u542b\u4ee5\u4e0b\u91cf\u5316\u7248\u672c\u7684\u6a21\u578b<\/p>\n<ul>\n<li>DeepSeek-R1-Distill-Llama-8B-GGUF<\/li>\n<li>DeepSeek-R1-Distill-Qwen-1.5B-GGUF<\/li>\n<li>DeepSeek-R1-Distill-Qwen-7B-GGUF<\/li>\n<li>DeepSeek-R1-Distill-Qwen-14B-GGUF<\/li>\n<li>DeepSeek-R1-Distill-Qwen-32B-GGUF<\/li>\n<\/ul>\n<p>\u9648\u8317\u7814\u5e08\u59d0\u7684\u7535\u8111\u53ef\u4ee5\u8fd0\u884c <code>___<\/code> \u53c2\u6570\u7684\u6a21\u578b\u3002<\/p>\n<h3>\u4e09\u3001\u5728 Docker \u4e2d\u90e8\u7f72\u548c\u4f7f\u7528 llama.cpp<\/h3>\n<p>llama.cpp \u7684\u4ed3\u5e93\u94fe\u63a5\u4e3a <a href=\"https:\/\/github.com\/ggerganov\/llama.cpp.git\uff0c\u4ed6\u4f7f\u7528\u4e0b\u9762\u6307\u4ee4\u5c06\u4ed3\u5e93\u514b\u9686\u5230\u672c\u5730\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/github.com\/ggerganov\/llama.cpp.git\uff0c\u4ed6\u4f7f\u7528\u4e0b\u9762\u6307\u4ee4\u5c06\u4ed3\u5e93\u514b\u9686\u5230\u672c\u5730<\/a>\uff1a<\/p>\n<pre><code class=\"lang-bash language-bash bash\">7uHeck@LAPTOP-114514:~$ git clone https:\/\/github.com\/ggerganov\/llama.cpp.git<\/code><\/pre>\n<p>\u4ed6\u4f7f\u7528\u4e0b\u9762\u6307\u4ee4\u6784\u5efa\u4e86\u4f7f\u7528 CUDA \u7684 llama.cpp\uff1a<\/p>\n<pre><code class=\"lang-bash language-bash bash\">7uHeck@LAPTOP-114514:llama.cpp$ docker build -t local\/llama.cpp:full-cuda --target full -f .devops\/cuda.Dockerfile .\n7uHeck@LAPTOP-114514:llama.cpp$ docker run --gpus all -v ~\/models:\/models local\/llama.cpp:full-cuda --run -m \/models\/?B\/ggml-model-q4_0.gguf -p &quot;Building a website can be done in 10 simple steps:&quot; -n 512 --n-gpu-layers 1<\/code><\/pre>\n<h2>\u670d\u52a1\u5668\u8fd0\u7ef4\u65e5\u5e38<\/h2>\n<p>cjgg \u7684\u535a\u5ba2\u5b95\u673a\u4e86\uff0c\u4ed6\u60f3\u8981\u6536\u96c6\u5e76\u5206\u6790\u9519\u8bef\u4fe1\u606f\uff0c\u6574\u7406\u6587\u4ef6\u7ed3\u6784\uff0c\u540c\u65f6\u751f\u6210\u62a5\u544a\uff0c\u4f60\u4eec\u5e2e\u4ed6\u5b8c\u6210\u8fd9\u4e2a\u6311\u6218\u561b\uff1f<\/p>\n<ol>\n<li>\n<p>\u9996\u5148\uff0ccj \u9700\u8981\u4ece\u4ece\u8fdc\u7a0b\u670d\u52a1\u5668 <code>www.galaxry.top<\/code> \u7684 <code>114514<\/code> \u7aef\u53e3\u7528\u6237 <code>GalaxryX300<\/code> \u7684 <code>\/home\/GalaxryX300\/logs<\/code> \u76ee\u5f55\u4e0b\u8f7d\u538b\u7f29\u5305 <code>web_logs.tar.gz<\/code> \u5230\u672c\u5730 <code>\/home\/angel\/logs<\/code>\uff0c\u4ed6\u4f7f\u7528\u4e86\u4e0b\u9762\u6307\u4ee4\u521b\u5efa\u5e76\u5c06\u6587\u4ef6\u4f20\u8f93\u5230\u672c\u5730\uff1a<\/p>\n<pre><code class=\"lang-bash language-bash bash\">angel@LAPTOP-114514:~$ scp -P 114514 GalaxryX300@www.galaxry.top:\/home\/GalaxryX300\/logs\/web_logs.tar.gz \/home\/angel\/logs<\/code><\/pre>\n<\/li>\n<li>\n<p>\u89e3\u538b <code>web_logs.tar.gz<\/code>\uff0c\u751f\u6210\u76ee\u5f55 <code>web_logs<\/code>\uff0c\u5220\u9664\u539f\u538b\u7f29\u5305\uff1a<\/p>\n<pre><code class=\"lang-bash language-bash bash\">angel@LAPTOP-114514:~$ tar -xvzf \/home\/angel\/logs\/web_logs.far.gz -C \/home\/angel\/logs\nangel@LAPTOP-114514:~$ rm \/home\/angel\/logs\/web_logs.far.gz<\/code><\/pre>\n<\/li>\n<li>\n<p>\u4f7f\u7528\u4e0b\u9762\u547d\u4ee4\u5c06 <code>web_logs<\/code> \u76ee\u5f55\u7684\u6811\u72b6\u7ed3\u6784\u8f93\u51fa\u5230 <code>\/home\/angel\/logs\/dir_tree.txt<\/code>\uff1a<\/p>\n<pre><code class=\"lang-bash language-bash bash\">angel@LAPTOP-114514:~$ tree \/home\/angel\/logs\/web_logs &gt;\/home\/angel\/logs\/dir_tree.txt<\/code><\/pre>\n<\/li>\n<li>\n<p>\u67e5\u770b\u4e86 <code>web_logs<\/code> \u76ee\u5f55\u7ed3\u6784\uff0ccjgg \u51b3\u5b9a\u5728 <code>web_logs<\/code> \u76ee\u5f55\u4e2d\u67e5\u627e\u6240\u6709\u6269\u5c55\u540d\u4e3a <code>.log<\/code> \u7684\u6587\u4ef6\uff0c\u5e76\u4f7f\u7528 <code>file<\/code> \u547d\u4ee4\u786e\u8ba4\u5b83\u4eec\u7684\u7c7b\u578b\uff1a<\/p>\n<pre><code class=\"lang-bash language-bash bash\">angel@LAPTOP-114514:~$ find \/home\/angel\/logs\/web_logs f -name &quot;*.log&quot; file {} \\;<\/code><\/pre>\n<\/li>\n<li>\n<p>\u5728\u6240\u6709 <code>.log<\/code> \u6587\u4ef6\u4e2d\u641c\u7d22\u5305\u542b <code>ERROR<\/code> \u7684\u884c\uff0c\u5c06\u7ed3\u679c\u4fdd\u5b58\u5230 <code>\/opt\/logs\/error_summary.txt<\/code>\uff0c\u7136\u540e\u7edf\u8ba1 <code>error_summary.txt<\/code> \u7684\u603b\u884c\u6570\uff1a<\/p>\n<pre><code class=\"lang-bash language-bash bash\">angel@LAPTOP-114514:~$ grep -r &quot;ERROR&quot; \/home\/angel\/logs\/web_logs\/*.log &gt; \/opt\/logs\/error_summary.txt\nangel@LAPTOP-114514:~$ wc -l opt\/logs\/error_summary.txt<\/code><\/pre>\n<\/li>\n<li>\n<p>\u5bf9 <code>error_summary.txt<\/code> \u6309\u5b57\u6bcd\u987a\u5e8f\u6392\u5e8f\uff0c\u53bb\u91cd\u540e\u7edf\u8ba1\u6bcf\u79cd\u9519\u8bef\u51fa\u73b0\u7684\u6b21\u6570\uff0c\u7ed3\u679c\u4fdd\u5b58\u4e3a <code>error_stats.txt<\/code>\uff1a<\/p>\n<pre><code class=\"lang-bash language-bash bash\">angel@LAPTOP-114514:~$ sort \/opt\/logs\/error_summary.txt | uniq -c &gt; \/opt\/logs\/error_stats.txt<\/code><\/pre>\n<\/li>\n<li>\n<p>cjgg \u6839\u636e\u65e5\u5fd7\u7684\u4fe1\u606f\u8fdb\u884c\u5206\u6790\u540e\u679c\u65ad\u627e\u5230\u4e86\u95ee\u9898\u6240\u5728\u3002\u5c06\u4fee\u590d\u5b8c\u6210\u540e\u7684\u65e5\u5fd7\u6253\u5305\u4e3a <code>web_logs_fixed.tar.gz<\/code>\uff0c\u8fdb\u884c\u4e00\u7cfb\u5217\u5206\u6790\u540e\u5f97\u5230\u4e86 <code>error_summary_fixed.txt<\/code>\u3002cjgg \u5c06\u5b83\u5bf9\u6bd4\u539f\u59cb <code>error_summary.txt<\/code>\uff0c\u8f93\u51fa\u5dee\u5f02\u5230 <code>diff_result.txt<\/code>\uff1a<\/p>\n<pre><code class=\"lang-bash language-bash bash\"> angel@LAPTOP-114514:~$ diff \/opt\/logs\/error_summary.txt \/opt\/logs\/error_summary_fixed.txt &gt; \/opt\/logs\/diff_result.txt<\/code><\/pre>\n<\/li>\n<\/ol>\n<h1>\u7b2c\u4e09\u7ae0<\/h1>\n<ol>\n<li>\n<p>\u6709\u4e00\u5929\uff0cwyh\u4e3a\u4e86\u5b8c\u6210\u64cd\u4f5c\u7cfb\u7edf\u7684\u4e00\u4efd\u5927\u4f5c\u4e1a\uff0c\u627e\u4e86\u4e00\u4e2a\u5f00\u6e90\u7684os\u9879\u76ee\uff0c\u4ed6\u628a\u5b83clone\u4e86\u4e0b\u6765\uff0c\u5e76\u4e14\u5f00\u59cb\u5728<strong>ubuntu22.04<\/strong>\u7cfb\u7edf\u4e2d\u642d\u914d\u73af\u5883\uff0c\u4f7f\u7528apt\u5305\u7ba1\u7406\u5de5\u5177\u3002<\/p>\n<p>\u9996\u5148\uff0c\u4ed6\u770b\u5230\u4e86CMakeLists.txt\u4e2d\u6709\u5bf9cmake\u7248\u672c\u53f7\u7684\u8981\u6c42<\/p>\n<pre><code>cmake_minimum_required(VERSION 3.10)\nproject(AdvancedOS)<\/code><\/pre>\n<p>\u9996\u5148\u8981\u6c42cmake\u7684\u6700\u4f4e\u7248\u672c\u662f3.10\uff0c\u4ed6\u4f7f\u7528\u4e86<strong>cmake --version<\/strong>\u6765\u67e5\u770bcmake\u7684\u7248\u672c\u4ee5\u53ca\u5176\u4ed6\u4fe1\u606f\uff0c\u4f46\u662f\u9047\u5230\u4e86error<\/p>\n<pre><code>N: Unable to locate package cmake\nN: Unable to locate package cmake\nE: No packages found<\/code><\/pre>\n<p>\u4e0d\u8fc7\uff0cwyh\u4e00\u773c\u5c31\u770b\u51fa\u4e86\u95ee\u9898\u6240\u5728\uff0c\u4ed6\u6267\u884c\u4e86<strong>sudo apt install cmake<\/strong>\uff0c\u4fbf\u89e3\u51b3\u4e86\u8fd9\u4e2a\u95ee\u9898\uff0c\u5e76\u4e14\u518d\u6b21\u6267\u884c<strong>cmake --version<\/strong>\uff0c\u4e86\u89e3\u4e86\u8f6f\u4ef6\u5305\u4e2dcmake\u7684\u7248\u672c\u4fe1\u606f<\/p>\n<pre><code>Package: cmake\nVersion: 3.22.1-1ubuntu1.22.04.2\nPriority: optional\nSection: devel\nOrigin: Ubuntu<\/code><\/pre>\n<p>\u5728\u5f53\u524d\u8f6f\u4ef6\u5305\u4e0b\uff0ccmake\u7684\u7248\u672c\u53f7\u662f3.22.1\uff0c\u7b26\u5408CMakeLists.txt\u7684\u8981\u6c42\u3002\u4f46\u662f\uff0cwyh\u5f88\u597d\u5947\uff0c\u5982\u679c\u9519\u8bef\u5b89\u88c5\u4e86\u4e0d\u7b26\u5408\u8981\u6c42\u7684cmake\u7248\u672c\uff0c\u4f1a\u53d1\u751f\u4ec0\u4e48\u95ee\u9898\uff0c\u4e8e\u662f\u4ed6\u4f7f\u7528<strong>wget <a href=\"https:\/\/cmake.org\/files\/v3.9\/cmake-3.9.0-Linux-x86_64.tar.gz\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/cmake.org\/files\/v3.9\/cmake-3.9.0-Linux-x86_64.tar.gz<\/a><\/strong>,<strong>tar -zvxf cmake-3.9.0-Linux-x86_64.tar.gz<\/strong>\uff0c\u4e0b\u8f7d\u9884\u7f16\u8bd1\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\uff08\u7f51\u5740\u662fhttps:\/\/cmake.org\/files\/v3.9\/cmake-3.9.0-Linux-x86_64.tar.gz\uff09\u89e3\u538b\u7f29\uff0c\u5e76\u4e14\u4f7f\u7528<code>export PATH=<\/code>pwd<code>\/cmake-3.9.0-Linux-x86_64\/bin:$PATH<\/code>\u6dfb\u52a0\u4e86\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<p>\u5b89\u88c5\u4e86cmake 3.9.0\uff0c\u5e76\u4e14\u8fdb\u884c\u7f16\u8bd1\uff0c\u9047\u5230\u4e86\u4ee5\u4e0b\u9519\u8bef<\/p>\n<pre><code>CMake Error at CMakeLists.txt:1 (cmake_minimum_required):\n CMake 3.10 or higher is required.  You are running version 3.9.0\n\n-- Configuring incomplete, errors occurred!<\/code><\/pre>\n<p>\u63d0\u793a\u8bf4\uff0c\u9700\u8981cmake 3.10\u6216\u8005\u66f4\u9ad8\u7248\u672c\uff0c3.9.0\u7684\u7248\u672c\u592a\u4f4e\uff0c\u7136\u540e\u4ed6\u6267\u884c\u4e86<code>rm -rf cmake-3.9.0-Linux-x86_64<\/code>\uff0c\u5220\u9664\u4e86cmake\uff0c\u5e76\u4e14\u4f7f\u7528<strong>wget <a href=\"https:\/\/cmake.org\/files\/v3.9\/cmake-3.9.0-Linux-x86_64.tar.gz\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/cmake.org\/files\/v3.9\/cmake-3.9.0-Linux-x86_64.tar.gz<\/a><\/strong>\u91cd\u65b0\u4e0b\u8f7d\u4e86cmake 3.22.1\u7248\u672c\uff0c\u5e76\u4e14\u4f7f\u7528<strong>sudo apt install build-essential  qtbase5-dev  qtbase5-dev-tools libqt5charts5-dev<\/strong>\u5b89\u88c5\u4e86\u4e00\u7cfb\u5217\u4f9d\u8d56<code>build-essential  qtbase5-dev  qtbase5-dev-tools libqt5charts5-dev<\/code><\/p>\n<p>\u7136\u540ewyh\u60f3\u8981\u786e\u5b9a\u76ee\u5f55\u7ed3\u6784\u662f\u5426\u6b63\u786e<\/p>\n<p>\u6b63\u786e\u7684\u76ee\u5f55\u7ed3\u6784<\/p>\n<pre><code>AdvancedOS\/\n\u251c\u2500\u2500 CMakeLists.txt\n\u251c\u2500\u2500 include\/\n\u2502   \u251c\u2500\u2500 kernel.h\n\u2502   \u251c\u2500\u2500 advanced_kernel.h\n\u2502   \u251c\u2500\u2500 network.h\n\u2502   \u251c\u2500\u2500 user_auth.h\n\u2502   \u251c\u2500\u2500 disk_manager.h\n\u2502   \u251c\u2500\u2500 logger.h\n\u2502   \u2514\u2500\u2500 mainwindow.h\n\u251c\u2500\u2500 src\/\n\u2502   \u251c\u2500\u2500 kernel.cpp\n\u2502   \u251c\u2500\u2500 advanced_kernel.cpp\n\u2502   \u251c\u2500\u2500 network.cpp\n\u2502   \u251c\u2500\u2500 user_auth.cpp\n\u2502   \u251c\u2500\u2500 disk_manager.cpp\n\u2502   \u251c\u2500\u2500 logger.cpp\n\u2502   \u251c\u2500\u2500 mainwindow.cpp\n\u2502   \u2514\u2500\u2500 main.cpp\n\u2514\u2500\u2500 build\/<\/code><\/pre>\n<p>\u800cwyh\u53d1\u73b0\u5f53\u524d\u7684\u76ee\u5f55\u7ed3\u6784\u7f3a\u5c11build\u6587\u4ef6\u5939\uff0c\u4f7f\u7528<strong>mkdir build<\/strong>\u521b\u5efa\u4e86\u8be5\u6587\u4ef6\u5939\uff0c\u4f7f\u7528<strong>cd \/build<\/strong>\u8fdb\u5165\u4e86\u8be5\u6587\u4ef6\u5939\u7136\u540e\u4f7f\u7528<strong>camke ..<\/strong>\u8fdb\u884c\u7f16\u8bd1\uff0c<strong>\u751f\u6210\u4e86<code>Makefile<\/code>\u6784\u5efa\u6587\u4ef6<\/strong>\uff0c\u6700\u540e\u4f7f\u7528<strong>make ..<\/strong>\uff0c\u8bfb\u53d6 <code>Makefile<\/code> \u6587\u4ef6\u4e2d\u7684\u89c4\u5219\uff0c\u51b3\u5b9a\u54ea\u4e9b\u6587\u4ef6\u9700\u8981\u91cd\u65b0\u7f16\u8bd1\uff0c\u5e76\u6267\u884c\u76f8\u5e94\u7684\u547d\u4ee4\u6765\u751f\u6210\u76ee\u6807\u6587\u4ef6\uff08\u5982\u53ef\u6267\u884c\u6587\u4ef6\u3001\u5e93\u6587\u4ef6\u7b49\uff09\uff0c\u5b8c\u6210\u4e86\u8fd9\u9879\u5927\u4f5c\u4e1a\u3002<\/p>\n<p>\u63d0\u793a\uff1a<code>cmake<\/code>\u9700\u8981 <code>CMakeLists.txt<\/code>\uff0c<code>make<\/code> \u9700\u8981 <code>Makefile<\/code><\/p>\n<\/li>\n<li>\n<p>\u5c0f\u660e\u53c2\u52a0\u4e86\u4e00\u4e2a\u6bd4\u8d5b\uff0c\u6bd4\u8d5b\u5185\u5bb9\u662f\u4f7f\u7528yolo\u8fdb\u884c\u76ee\u6807\u68c0\u6d4b\uff0c\u4f46\u662f\u5c0f\u660e\u81ea\u5df1\u7684\u663e\u5361\u4e0d\u8db3\u4ee5\u652f\u6301\u5927\u6a21\u578b\u7684\u8bad\u7ec3\uff0c\u6240\u4ee5\u5c0f\u660e\u9009\u62e9\u5728\u67d0\u5e73\u53f0\u79df\u7528\u670d\u52a1\u5668\u8fdb\u884c\u8bad\u7ec3\u3002\n\u9996\u5148\uff0c\u5c0f\u660e\u9700\u8981\u5c06\u672c\u5730\u7684\u6570\u636e\u96c6\u6253\u5305\u6210\u4e00\u4e2a\u538b\u7f29\u6587\u4ef6\uff0c\u4ed6\u4f7f\u7528<strong>tar -cvfz datdsets.tgz datasets <\/strong>\u8fdb\u884c\u538b\u7f29\uff0c\u538b\u7f29\u6210<code>.tgz<\/code>\u683c\u5f0f\uff0c\u5e76\u4e14\u4f7f\u7528<strong>scp -P 45847 datasets.taz root@i-2.gpushare.com:\/hy-tmp<\/strong>\uff0c\u4f7f\u7528<strong>ssh<\/strong>\u4f20\u8f93\u534f\u8bae\uff0c\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u7aef\u53e3\u53f7\u4e3a45847\uff0c\u7528\u6237\u4e3aroot\uff0c\u4e3b\u673a\u540d\u4e3ai-2.gpushare.com\uff0c\u672c\u5730\u76f8\u5bf9\u8def\u5f84\u4e3adatasets\uff0c\u8fdc\u5730\u670d\u52a1\u5668\u8def\u5f84\u4e3a\/hy-tmp\u3002\u4e0a\u4f20\u4e4b\u540e\uff0c\u8bf7\u4f7f\u7528<strong>tar -xzfv \/hy-tmp\/datasets.tgz -C \/hy-tmp<\/strong>\u5bf9\u538b\u7f29\u6587\u4ef6\u8fdb\u884c\u89e3\u538b\u7f29\uff0c\u7136\u540e\u5c0f\u660e\u9700\u8981\u5bf9\u6570\u636e\u96c6\u8fdb\u884c\u5904\u7406\uff0c\u4ed6\u7f16\u5199\u4e86test.py\uff0c\u5e76\u8fd0\u884c\uff0c\u56e0\u4e3a\u5c0f\u660e\u8fd8\u8981\u5904\u7406\u5176\u4ed6\u4e8b\u60c5\uff0c\u4f7f\u7528\u4ed6\u4f7f\u7528<strong>nohup python test.py&<\/strong>\u5728\u540e\u53f0\u8fd0\u884c\uff0c\u5e76\u5f97\u77e5\u4e86\u6b64\u8fdb\u7a0b\u7684\u4f5c\u4e1aID\uff1a[1]\u548c\u8fdb\u7a0bID\uff1a[7520]\u3002\u8fd0\u884c\u4e4b\u540e\uff0c\u5c0f\u660e\u60f3\u770b\u4e00\u4e0b\u5f53\u524d\u8fd0\u884c\u7684\u6240\u6709\u8fdb\u7a0b\uff0c\u4e8e\u662f\u4f7f\u7528\u4e86<strong>ps aux<\/strong>\u3002\u4f46\u662f\uff0c\u7c97\u5fc3\u7684\u5c0f\u660e\u5ffd\u7136\u60f3\u8d77\u81ea\u5df1\u72af\u4e86\u4e00\u4e2a\u9519\u8bef\uff0c\u4f7f\u7528<strong>kill 7520<\/strong>\u7ed3\u675f\u4e86\u8be5\u8fdb\u7a0b\uff0c\u4fee\u6539\u9519\u8bef\u540e\uff0c\u91cd\u65b0\u8fd0\u884c\uff0c\u5904\u7406\u597d\u6570\u636e\u96c6\u540e\uff0c\u5c0f\u660e\u4fbf\u5f00\u59cb\u8bad\u7ec3\u6a21\u578b\u4e86\uff0c\u8bad\u7ec3\u5b8c\u6210\u540e\uff0c\u5c0f\u660e\u4f7f\u7528<strong>scp -P 45847 datasets.taz root@i-2.gpushare.com:\/hy-tmp\/ultralytics\/runs\/detect\/train1 result\/<\/strong>\u4ece\u8fdc\u7a0b\u670d\u52a1\u5668\u5c06\u8bad\u7ec3\u7ed3\u679c\u4f20\u8f93\u5230\u672c\u5730\uff0c\u8fdc\u7a0b\u670d\u52a1\u5668\u5730\u5740\u4e3a\/hy-tmp\/ultralytics\/runs\/detect\/train1\uff0c\u672c\u5730\u76f8\u5bf9\u8def\u5f84\u4e3aresult\uff0c\u5c0f\u660e\u53d1\u73b0\u8bad\u7ec3\u7ed3\u679c\u8fd8\u4e0d\u9519\uff0c\u5c31\u7ed3\u675f\u4e86\u8bad\u7ec3\u3002<\/p>\n<\/li>\n<li>\n<p>\u6709\u4e00\u5929\uff0c\u5c0f\u674e\u60f3\u5728ubuntu\uff1a22.04\u7cfb\u7edf\u4e2d\u505a\u4e00\u4e2a\u5c0f\u5b9e\u9a8c\uff0c\u56e0\u4e3aVM\u592a\u6162\u4e86\uff0c\u6240\u4ee5\u5c0f\u674e\u9009\u62e9\u5728docker\u4e2d\u4f7f\u7528<strong>docker pull ubuntu:22.04<\/strong>\u62c9\u53d6\u4e00\u4e2aubuntu:22.04\u7684\u955c\u50cf\uff0c\u7136\u540e\u5c0f\u674e\u4f7f\u7528<strong>docker run buntu:22.04<\/strong>\u8fd0\u884c\u8fd9\u4e2a\u5bb9\u5668\uff0c\u5728\u7ecf\u8fc7\u4e00\u7cfb\u5217\u64cd\u4f5c\u540e\uff0c\u5c0f\u674e\u5b8c\u6210\u4e86\u5b9e\u9a8c\uff0c\u5c0f\u660e\u4f7f\u7528<strong>docker ps -a\u548cdcoker pause 72fa7d384222<\/strong>\u67e5\u770b\u6240\u6709\u5bb9\u5668\u5e76\u4e14\u6682\u505c\u4e86CONTAINER ID\u4e3a72fa7d384222\u7684\u5bb9\u5668\uff0c\u7136\u540e\uff0c\u5c0f\u674e\u4f7f\u7528<strong>docker rmi ubuntu<\/strong>\u5c1d\u8bd5\u5220\u9664ubuntu\u8fd9\u4e2a\u955c\u50cf\uff0c\u4f46\u662f\u4ed6\u9047\u5230\u4e86\u4e00\u4e2a\u9519\u8bef<\/p>\n<pre><code>Error response from daemon: conflict: unable to remove repository reference &quot;ubuntu&quot; (must force) - container 72fa7d384222 is using its referenced image b1d9df8ab815<\/code><\/pre>\n<p>\u4f46\u5c0f\u674e\u4e00\u4e0b\u5b50\u5c31\u60f3\u5230\u4e86\u600e\u4e48\u89e3\u51b3\uff0c\u7528<strong>docker stop 72fa7d384222\u548cdocker rmi ubuntu<\/strong>\u6210\u529f\u5220\u9664\u4e86\u5bb9\u5668\u548c\u955c\u50cf\u3002<\/p>\n<\/li>\n<li>\n<p>\u4f60\u7684\u4efb\u52a1\u662f\u5728 Linux \u7cfb\u7edf\u4e0a\u4e0b\u8f7d\u3001\u914d\u7f6e\u5e76\u8fd0\u884cOpenShot\u3002\ntips:\n\u4e0b\u8f7d AppImage \u6587\u4ef6\uff0c\u7f51\u5740\u4e3ahttps:\/\/github.com\/OpenShot\/openshot-qt\/releases\/download\/v3.1.1\/OpenShot-v3.1.1-x86_64.AppImage\n\u8d4b\u4e88\u6267\u884c\u6743\u9650\n\u8fd0\u884c AppImage \u6587\u4ef6<\/p>\n<pre><code>wget https:\/\/github.com\/OpenShot\/openshot-qt\/releases\/download\/v3.1.1\/OpenShot-v3.1.1-x86_64.AppImage\nchmod +x OpenShot-v3.1.1-x86_64.AppImage\n.\/OpenShot-v3.1.1-x86_64.AppImage<\/code><\/pre>\n<\/li>\n<li>\n<p>\u4f60\u73b0\u5728\u83b7\u5f97\u4e86\u4e00\u4e2a<code>myiso.iso<\/code>\u6587\u4ef6\uff0c\u4f60\u9700\u8981\u5c06\u5176\u6302\u8f7d\u5230<code>\/mnt\/iso<\/code>\u76ee\u5f55\u4e0b\uff0c\u6ce8\u610f\u8be5\u76ee\u5f55\u73b0\u5728\u662f<strong>\u4e0d\u5b58\u5728<\/strong>\u7684\uff0c\u4f7f\u7528<strong>\u6307\u4ee4\u4e00\u548c\u6307\u4ee4\u4e8c<\/strong>\u5b8c\u6210\u8fd9\u4e00\u6b65\uff0c\u5728\u5904\u7406\u5b8c\u6210\u540e\uff0c\u4f60\u8fd8\u9700\u8981\u4f7f\u7528<strong>\u6307\u4ee4\u4e09<\/strong>\u89e3\u9664\u6302\u8f7d<\/p>\n<p>Linux\u4e2d\u7684\u6839\u76ee\u5f55\u4ee5\u5916\u7684\u6587\u4ef6\u8981\u60f3\u88ab\u8bbf\u95ee\uff0c\u9700\u8981\u5c06\u5176\u201c\u5173\u8054\u201d\u5230\u6839\u76ee\u5f55\u4e0b\u7684\u67d0\u4e2a\u76ee\u5f55\u6765\u5b9e\u73b0\uff0c\u8fd9\u79cd\u5173\u8054\u64cd\u4f5c\u5c31\u662f\u201c\u6302\u8f7d\u201d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u5c31\u662f\u201c\u6302\u8f7d\u70b9\u201d\uff0c\u89e3\u9664\u6b21\u5173\u8054\u5173\u7cfb\u7684\u8fc7\u7a0b\u79f0\u4e4b\u4e3a\u201c\u5378\u8f7d\u201d\u3002<\/p>\n<p>\u6ce8\u610f\uff1a\u201c\u6302\u8f7d\u70b9\u201d\u7684\u76ee\u5f55\u9700\u8981\u4ee5\u4e0b\u51e0\u4e2a\u8981\u6c42\uff1a<\/p>\n<p>\uff081\uff09\u76ee\u5f55\u4e8b\u5148\u5b58\u5728\uff0c\u53ef\u4ee5\u7528mkdir\u547d\u4ee4\u65b0\u5efa\u76ee\u5f55\uff1b<\/p>\n<p>\uff082\uff09\u6302\u8f7d\u70b9\u76ee\u5f55\u4e0d\u53ef\u88ab\u5176\u4ed6\u8fdb\u7a0b\u4f7f\u7528\u5230\uff1b<\/p>\n<p>\uff083\uff09\u6302\u8f7d\u70b9\u4e0b\u539f\u6709\u6587\u4ef6\u5c06\u88ab\u9690\u85cf\u3002<\/p>\n<pre><code>sudo makdir \/mnt\/iso\nsudo mount -o loop myiso.iso \/mnt\/iso\nsudo unmount \/mnt\/iso<\/code><\/pre>\n<\/li>\n<li>\n<p>\u5047\u5982\u4f60\u662f\u4e00\u5bb6\u516c\u53f8\u7684\u7cfb\u7edf\u7ba1\u7406\u5458\uff0c\u8d1f\u8d23\u7ba1\u7406\u516c\u53f8\u5185\u90e8\u7684\u591a\u53f0\u670d\u52a1\u5668\u3002\u67d0\u5929\uff0c\u5c0f\u667a\u60f3\u8981\u901a\u8fc7<strong>\u6307\u4ee4\u4e00<\/strong>SSH\u8fde\u63a5\u516c\u53f8\u5185\u90e8\u4e00\u53f0\u670d\u52a1\u5668\uff08IP\u5730\u5740\uff1a192.168.1.100\uff0c\u7528\u6237\u540d\u4e3azht\uff09\uff0c\u5374\u53d1\u73b0\u65e0\u6cd5\u8fde\u63a5\uff0c\u4e14\u8be5\u670d\u52a1\u5668\u4e0a\u7684Web\u670d\u52a1\u4e5f\u65e0\u6cd5\u8bbf\u95ee\uff0c\u6240\u4ee5\u4f60\u9996\u5148\u8f93\u5165<strong>\u6307\u4ee4\u4e8c<\/strong>\u67e5\u770b\u6240\u6709\u7f51\u7edc\u63a5\u53e3\u4fe1\u606f\uff0c\u4e4b\u540e\u7528<strong>\u6307\u4ee4\u4e09<\/strong>\u68c0\u67e5\u4e86\u7f51\u7edc\u7684\u8fde\u901a\u6027\uff0c\u53c8\u901a\u8fc7<strong>\u6307\u4ee4\u56db\u548c\u6307\u4ee4\u4e94<\/strong>\u626b\u63cf\u68c0\u67e5\u670d\u52a1\u5668\u7684SSH\u7aef\u53e3\u548cHTTP\u7aef\u53e3\u662f\u5426\u5f00\u653e\uff0c\u5e76\u8f93\u5165<strong>\u6307\u4ee4\u516d<\/strong>\uff08\u8bf7\u4f7f\u7528<code>iproute2<\/code>\u5de5\u5177\u96c6\u4e2d\u7684\u547d\u4ee4\uff09\u663e\u793a\u6240\u6709\u76d1\u542c\u7aef\u53e3\u3002\u5047\u8bbe\u670d\u52a1\u5668\u4f7f\u7528\u7684\u662f<code>iptables<\/code>\u4f5c\u4e3a\u9632\u706b\u5899\u5de5\u5177\uff0c\u4f7f\u7528<strong>\u6307\u4ee4\u4e03<\/strong>\u67e5\u770b\u5f53\u524d\u9632\u706b\u5899\u89c4\u5219(\u4ee5root\u8eab\u4efd)\uff0c\u5e76\u4f7f\u7528<strong>\u6307\u4ee4\u516b<\/strong>\u6dfb\u52a0\u89c4\u5219\u5141\u8bb8SSH\u8fde\u63a5\u3002\u5982\u679cHTTP\u7aef\u53e3\u5f00\u653e\u4f46Web\u670d\u52a1\u4ecd\u7136\u65e0\u6cd5\u8bbf\u95ee\uff0c\u4f7f\u7528<strong>\u6307\u4ee4\u4e5d<\/strong>\u68c0\u67e5httpd\u670d\u52a1\u7684\u72b6\u6001\uff0c\u5e76\u4f7f\u7528<strong>\u6307\u4ee4\u5341<\/strong>\u542f\u52a8httpd\u670d\u52a1\u3002\u4e4b\u540e\u4f7f\u7528<strong>\u6307\u4ee4\u5341\u4e00<\/strong>\u6293\u53d6\u670d\u52a1\u5668\uff08\u7f51\u7edc\u63a5\u53e3\u4e3aens33\uff09\u7684\u7f51\u7edc\u6d41\u91cf\uff0c\u5206\u6790\u662f\u5426\u6709\u5f02\u5e38\u6d41\u91cf\u6216\u653b\u51fb\u884c\u4e3a\u3002<\/p>\n<pre><code>1.ssh zht@192.168.1.100\n2.ip addr show\n3.ping 192.168.1.100\n4.nmap -p 192.168.1.100\n5.nmap -p 80 192.168.1.100\n6.ss -tuln\n7.sudo iptables -L\n8.sudo iptables -A INPUT -p tup --dport 22 -j ACCEPT\n9.sudo systemctl status httpd\n10.sudo systemctl start httpd\n11.sudo systemctl -i ens33<\/code><\/pre>\n<\/li>\n<\/ol>","protected":false},"excerpt":{"rendered":"<p>\u5199\u5728\u524d\u9762 \u672c\u6587\u4e3a\u65e9\u671f\u7248\u672c\uff0c\u53ef\u80fd\u6709\u4e9b\u8bb8\u8c2c\u8bef\uff0c\u9605\u8bfb\u65f6\u8bf7\u6ce8\u610f\u7504\u522b\u3002 \u4eb2\u7231\u7684\u63a2\u7d22\u8005\u4eec\uff1a \u6b22\u8fce\u8e0f\u4e0aLinux\u5b9e\u8df5\u5f81\u9014\uff01\u5728\u542f\u7a0b\u4e4b\u524d\uff0c\u8bf7\u4ed4\u7ec6\u9605\u8bfb &#8230;<\/p>","protected":false},"author":1,"featured_media":93,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-90","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-learn"],"_links":{"self":[{"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/posts\/90","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/comments?post=90"}],"version-history":[{"count":2,"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/posts\/90\/revisions"}],"predecessor-version":[{"id":92,"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/posts\/90\/revisions\/92"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/media\/93"}],"wp:attachment":[{"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/media?parent=90"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/categories?post=90"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/tags?post=90"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}