{"id":34492,"date":"2025-04-29T17:15:57","date_gmt":"2025-04-29T09:15:57","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/34492.html"},"modified":"2025-04-29T17:15:57","modified_gmt":"2025-04-29T09:15:57","slug":"linux%e7%b3%bb%e7%bb%9f%e4%b9%8b%e9%83%a8%e7%bd%b2%e8%bd%bb%e9%87%8f%e7%ba%a7markdown%e6%96%87%e6%9c%ac%e7%bc%96%e8%be%91%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/34492.html","title":{"rendered":"Linux\u7cfb\u7edf\u4e4b\u90e8\u7f72\u8f7b\u91cf\u7ea7Markdown\u6587\u672c\u7f16\u8f91\u5668"},"content":{"rendered":"<\/p>\n<h4>Linux\u7cfb\u7edf\u4e4b\u90e8\u7f72\u8f7b\u91cf\u7ea7Markdown\u6587\u672c\u7f16\u8f91\u5668<\/h4>\n<ul>\n<li>\u4e00\u3001\u9879\u76ee\u4ecb\u7ecd<\/li>\n<li>\n<ul>\n<li>1.1 \u9879\u76ee\u7b80\u4ecb<\/li>\n<li>1.2 \u4f7f\u7528\u65b9\u6cd5<\/li>\n<\/ul>\n<\/li>\n<li>\u4e8c\u3001\u672c\u6b21\u5b9e\u8df5\u4ecb\u7ecd<\/li>\n<li>\n<ul>\n<li>2.1 \u672c\u5730\u73af\u5883\u89c4\u5212<\/li>\n<li>2.2 \u672c\u6b21\u5b9e\u8df5\u4ecb\u7ecd<\/li>\n<\/ul>\n<\/li>\n<li>\u4e09\u3001\u68c0\u67e5\u672c\u5730\u73af\u5883<\/li>\n<li>\n<ul>\n<li>3.1 \u68c0\u67e5\u7cfb\u7edf\u7248\u672c<\/li>\n<li>3.2 \u68c0\u67e5\u7cfb\u7edf\u5185\u6838\u7248\u672c<\/li>\n<li>3.3 \u68c0\u67e5\u8f6f\u4ef6\u6e90<\/li>\n<\/ul>\n<\/li>\n<li>\u56db\u3001\u5b89\u88c5Apache2<\/li>\n<li>\n<ul>\n<li>4.1 \u5b89\u88c5Apache2\u8f6f\u4ef6<\/li>\n<li>4.2 \u542f\u52a8apache2\u670d\u52a1<\/li>\n<li>4.3 \u67e5\u770bapache2\u670d\u52a1\u72b6\u6001<\/li>\n<li>4.4 \u9632\u706b\u5899\u8bbe\u7f6e<\/li>\n<li>4.5 \u6d4f\u89c8\u5668\u6d4b\u8bd5web\u670d\u52a1<\/li>\n<\/ul>\n<\/li>\n<li>\u4e94\u3001\u90e8\u7f72\u9879\u76ee<\/li>\n<li>\n<ul>\n<li>5.1 \u4e0b\u8f7d\u9879\u76ee\u6e90\u7801<\/li>\n<li>5.2 \u67e5\u770b\u9879\u76ee\u6e90\u7801\u76ee\u5f55<\/li>\n<li>5.3 \u91cd\u542fapache2\u670d\u52a1<\/li>\n<\/ul>\n<\/li>\n<li>\u516d\u3001\u8bbf\u95ee\u9879\u76ee<\/li>\n<li>\n<ul>\n<li>6.1 \u8bbf\u95ee\u521d\u59cb\u9875<\/li>\n<li>6.2 \u7f16\u8f91\u6587\u7ae0<\/li>\n<li>6.3 \u67e5\u770b\u5e2e\u52a9\u4fe1\u606f<\/li>\n<li>6.4 \u5207\u6362\u663e\u793a\u6a21\u5f0f<\/li>\n<li>6.5 \u4fdd\u5b58\u6587\u672c<\/li>\n<\/ul>\n<\/li>\n<li>\u4e03\u3001\u603b\u7ed3<\/li>\n<\/ul>\n<hr \/>\n<p>&#x1f468;\u200d&#x1f4bb; \u6c5f\u6e56\u6709\u7f18 &#x1f680; \u4e00\u540d\u5728\u8fd0\u7ef4\u9886\u57df\u4e0d\u61c8\u63a2\u7d22\u7684\u5b66\u4e60\u8005\u3002 \u2002 &#x1f31f; \u8ba4\u8bc1\u4e0e\u6210\u5c31 &#x1f534; \u7ea2\u5e3d RHCE \u8ba4\u8bc1 &#x1f7e0; \u534e\u4e3a HCIP \u6570\u901a\u8ba4\u8bc1 &#x1f535; \u534e\u4e3a HCIE \u4e91\u8ba1\u7b97\u8ba4\u8bc1 \u2026\u4ee5\u53ca\u5176\u4ed6\u591a\u9879\u4e13\u4e1a\u8ba4\u8bc1 \u2002 &#x1f310; \u4e2a\u4eba\u4e3b\u9875 &#x1f517; CSDN\u4e2a\u4eba\u4e3b\u9875 \u2002 &#x1f4e2; \u516c\u4f17\u53f7 &#x1f3f7;\ufe0f \u3010\u8fd0\u7ef4\u6c5f\u6e56\u5ba2\u3011 \u2002 &#x1f465; \u4ea4\u6d41\u793e\u7fa4 &#x1f4ac; \u6b22\u8fce\u540c\u884c\u53ca\u7231\u597d\u8005\u52a0\u5165\u6211\u4eec\u7684QQ\u7fa4&#xff1a; &#x1f3f7;\ufe0f \u7fa4\u53f7\u3010942602415\u3011 \u2002 &#x1f4dd; \u4eba\u751f\u683c\u8a00 \u201c\u4eba\u53ef\u4ee5\u88ab\u6bc1\u706d&#xff0c;\u4f46\u4e0d\u80fd\u88ab\u6253\u8d25\u3002\u201d \u2014\u2014 \u6d77\u660e\u5a01<\/p>\n<hr \/>\n<h2>\u4e00\u3001\u9879\u76ee\u4ecb\u7ecd<\/h2>\n<h3>1.1 \u9879\u76ee\u7b80\u4ecb<\/h3>\n<p>&#034;Writing&#034;\u662f\u4e00\u4e2a\u5728\u6d4f\u89c8\u5668\u4e2d\u8fd0\u884c\u7684\u8f7b\u91cf\u7ea7\u3001\u65e0\u5e72\u6270\u7684\u6587\u5b57\u7f16\u8f91\u5668&#xff0c;\u5b83\u652f\u6301Markdown\u548cLaTeX\u8bed\u6cd5\u3002\u8fd9\u4e2a\u5de5\u5177\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5e72\u51c0\u7b80\u6d01\u7684\u5199\u4f5c\u73af\u5883&#xff0c;\u5e2e\u52a9\u7528\u6237\u96c6\u4e2d\u6ce8\u610f\u529b\u8fdb\u884c\u521b\u4f5c&#xff0c;\u7279\u522b\u9002\u5408\u9700\u8981\u64b0\u5199\u5305\u542b\u6570\u5b66\u516c\u5f0f\u6216\u79d1\u5b66\u8bb0\u53f7\u7684\u6587\u7ae0\u7684\u4f5c\u8005\u4f7f\u7528\u3002\u65e0\u8bba\u662f\u5199\u535a\u5ba2\u3001\u5b66\u672f\u8bba\u6587\u8fd8\u662f\u5c0f\u8bf4&#xff0c;&#034;Writing&#034;\u90fd\u80fd\u63d0\u4f9b\u4e00\u4e2a\u9ad8\u6548\u4e14\u4fbf\u6377\u7684\u5728\u7ebf\u7f16\u8f91\u4f53\u9a8c\u3002<\/p>\n<h3>1.2 \u4f7f\u7528\u65b9\u6cd5<\/h3>\n<table>\n<tr>\u5feb\u6377\u952e\u529f\u80fd\u63cf\u8ff0<\/tr>\n<tbody>\n<tr>\n<td>CTRL &#043; D<\/td>\n<td>\u5207\u6362\u663e\u793a\u6a21\u5f0f<\/td>\n<\/tr>\n<tr>\n<td>CTRL &#043; P<\/td>\n<td>\u6253\u5370\u6216\u5bfc\u51fa\u4e3aPDF<\/td>\n<\/tr>\n<tr>\n<td>CTRL &#043; S<\/td>\n<td>\u4fdd\u5b58\u6e90\u4ee3\u7801\u4e3a.MD\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>CTRL&#043;SHIFT&#043;H<\/td>\n<td>\u663e\u793a\u5e2e\u52a9<\/td>\n<\/tr>\n<tr>\n<td>? (\u5de6\u4e0b\u89d2\u56fe\u6807)<\/td>\n<td>\u540c\u6837\u7528\u4e8e\u663e\u793a\u5e2e\u52a9<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u4e8c\u3001\u672c\u6b21\u5b9e\u8df5\u4ecb\u7ecd<\/h2>\n<h3>2.1 \u672c\u5730\u73af\u5883\u89c4\u5212<\/h3>\n<p>\u672c\u6b21\u5b9e\u8df5\u4e3a\u4e2a\u4eba\u6d4b\u8bd5\u73af\u5883&#xff0c;\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u4e3aUbuntu 22.04.1 LTS\u3002<\/p>\n<table>\n<tr>hostnameIP\u5730\u5740\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u5185\u6838\u7248\u672c<\/tr>\n<tbody>\n<tr>\n<td>ubuntu-001<\/td>\n<td>192.168.3.251<\/td>\n<td>Ubuntu 22.04.1 LTS<\/td>\n<td>5.15.0-113-generic<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>2.2 \u672c\u6b21\u5b9e\u8df5\u4ecb\u7ecd<\/h3>\n<p>1.\u672c\u6b21\u5b9e\u8df5\u73af\u5883\u4e3a\u4e2a\u4eba\u6d4b\u8bd5\u73af\u5883&#xff0c;\u751f\u4ea7\u73af\u5883\u8bf7\u8c28\u614e&#xff1b; 2.\u5728Ubuntu \u73af\u5883\u4e0b\u8f7b\u91cf\u7ea7Markdown\u6587\u672c\u7f16\u8f91\u5668\u3002<\/p>\n<h2>\u4e09\u3001\u68c0\u67e5\u672c\u5730\u73af\u5883<\/h2>\n<h3>3.1 \u68c0\u67e5\u7cfb\u7edf\u7248\u672c<\/h3>\n<p>\u68c0\u67e5\u7cfb\u7edf\u7248\u672c&#xff0c;\u5f53\u524d\u7cfb\u7edf\u7248\u672c\u4e3aUbuntu 22.04.1 LTS\u3002<\/p>\n<p>root&#064;ubuntu-001:~<span class=\"token comment\"># cat \/etc\/os-release<\/span><br \/>\n<span class=\"token assign-left variable\">PRETTY_NAME<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;Ubuntu 22.04.1 LTS&#034;<\/span><br \/>\n<span class=\"token assign-left variable\">NAME<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;Ubuntu&#034;<\/span><br \/>\n<span class=\"token assign-left variable\">VERSION_ID<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;22.04&#034;<\/span><br \/>\n<span class=\"token assign-left variable\">VERSION<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;22.04.1 LTS (Jammy Jellyfish)&#034;<\/span><br \/>\n<span class=\"token assign-left variable\">VERSION_CODENAME<\/span><span class=\"token operator\">&#061;<\/span>jammy<br \/>\n<span class=\"token assign-left variable\">ID<\/span><span class=\"token operator\">&#061;<\/span>ubuntu<br \/>\n<span class=\"token assign-left variable\">ID_LIKE<\/span><span class=\"token operator\">&#061;<\/span>debian<br \/>\n<span class=\"token assign-left variable\">HOME_URL<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;https:\/\/www.ubuntu.com\/&#034;<\/span><br \/>\n<span class=\"token assign-left variable\">SUPPORT_URL<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;https:\/\/help.ubuntu.com\/&#034;<\/span><br \/>\n<span class=\"token assign-left variable\">BUG_REPORT_URL<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;https:\/\/bugs.launchpad.net\/ubuntu\/&#034;<\/span><br \/>\n<span class=\"token assign-left variable\">PRIVACY_POLICY_URL<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;https:\/\/www.ubuntu.com\/legal\/terms-and-policies\/privacy-policy&#034;<\/span><br \/>\n<span class=\"token assign-left variable\">UBUNTU_CODENAME<\/span><span class=\"token operator\">&#061;<\/span>jammy<\/p>\n<h3>3.2 \u68c0\u67e5\u7cfb\u7edf\u5185\u6838\u7248\u672c<\/h3>\n<p>\u68c0\u67e5\u7cfb\u7edf\u5185\u6838\u7248\u672c&#xff0c;\u5f53\u524d\u5185\u6838\u7248\u672c\u4e3a5.15.0-113-generic\u3002<\/p>\n<p>root&#064;ubuntu-001:~<span class=\"token comment\"># uname -r<\/span><br \/>\n<span class=\"token number\">5.15<\/span>.0-113-generic<\/p>\n<h3>3.3 \u68c0\u67e5\u8f6f\u4ef6\u6e90<\/h3>\n<p>\u68c0\u67e5\u672c\u5730apt\u8f6f\u4ef6\u6e90\u662f\u5426\u6b63\u5e38&#xff0c;\u66f4\u65b0\u672c\u5730\u66f4\u65b0\u8f6f\u4ef6\u5305\u5217\u8868\u3002<\/p>\n<p>root&#064;ubuntu-001:~<span class=\"token comment\"># apt update<\/span><br \/>\n\u547d\u4e2d:1 https:\/\/mirrors.aliyun.com\/ubuntu jammy InRelease<br \/>\n\u83b7\u53d6:2 https:\/\/mirrors.aliyun.com\/ubuntu jammy-security InRelease <span class=\"token punctuation\">[<\/span><span class=\"token number\">129<\/span> kB<span class=\"token punctuation\">]<\/span><br \/>\n\u83b7\u53d6:3 https:\/\/mirrors.aliyun.com\/ubuntu jammy-updates InRelease <span class=\"token punctuation\">[<\/span><span class=\"token number\">128<\/span> kB<span class=\"token punctuation\">]<\/span><br \/>\n\u547d\u4e2d:4 https:\/\/mirrors.aliyun.com\/ubuntu jammy-backports InRelease<br \/>\n\u83b7\u53d6:5 https:\/\/mirrors.aliyun.com\/ubuntu jammy-updates\/main amd64 Packages <span class=\"token punctuation\">[<\/span><span class=\"token number\">1,794<\/span> kB<span class=\"token punctuation\">]<\/span><br \/>\n\u83b7\u53d6:6 https:\/\/mirrors.aliyun.com\/ubuntu jammy-updates\/universe amd64 Packages <span class=\"token punctuation\">[<\/span><span class=\"token number\">1,101<\/span> kB<span class=\"token punctuation\">]<\/span><br \/>\n\u5df2\u4e0b\u8f7d <span class=\"token number\">3,152<\/span> kB&#xff0c;\u8017\u65f6 <span class=\"token number\">2<\/span>\u79d2 <span class=\"token punctuation\">(<\/span><span class=\"token number\">1,420<\/span> kB\/s<span class=\"token punctuation\">)<\/span><br \/>\n\u6b63\u5728\u8bfb\u53d6\u8f6f\u4ef6\u5305\u5217\u8868<span class=\"token punctuation\">..<\/span>. \u5b8c\u6210<br \/>\n\u6b63\u5728\u5206\u6790\u8f6f\u4ef6\u5305\u7684\u4f9d\u8d56\u5173\u7cfb\u6811<span class=\"token punctuation\">..<\/span>. \u5b8c\u6210<br \/>\n\u6b63\u5728\u8bfb\u53d6\u72b6\u6001\u4fe1\u606f<span class=\"token punctuation\">..<\/span>. \u5b8c\u6210<br \/>\n\u6709 <span class=\"token number\">106<\/span> \u4e2a\u8f6f\u4ef6\u5305\u53ef\u4ee5\u5347\u7ea7\u3002\u8bf7\u6267\u884c \u2018apt list &#8211;upgradable\u2019 \u6765\u67e5\u770b\u5b83\u4eec\u3002<\/p>\n<h2>\u56db\u3001\u5b89\u88c5Apache2<\/h2>\n<h3>4.1 \u5b89\u88c5Apache2\u8f6f\u4ef6<\/h3>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5Apache2 web\u670d\u52a1\u5668<\/p>\n<p><span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> apache2 <span class=\"token parameter variable\">-y<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250429091546-681098c27c45e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>4.2 \u542f\u52a8apache2\u670d\u52a1<\/h3>\n<p>\u542f\u52a8apache2\u670d\u52a1\u670d\u52a1&#xff0c;\u5e76\u4f7f\u5f00\u673a\u81ea\u542f\u3002<\/p>\n<p>systemctl <span class=\"token builtin class-name\">enable<\/span> <span class=\"token parameter variable\">&#8211;now<\/span> apache2<\/p>\n<h3>4.3 \u67e5\u770bapache2\u670d\u52a1\u72b6\u6001<\/h3>\n<p>\u67e5\u770bapache2\u670d\u52a1\u72b6\u6001&#xff0c;\u786e\u4fddapache2\u670d\u52a1\u6b63\u5e38\u3002<\/p>\n<p>root&#064;ubuntu-001:\/var\/www\/html\/writing<span class=\"token comment\"># systemctl status apache2<\/span><br \/>\n\u25cf apache2.service &#8211; The Apache HTTP Server<br \/>\n     Loaded: loaded <span class=\"token punctuation\">(<\/span>\/lib\/systemd\/system\/apache2.service<span class=\"token punctuation\">;<\/span> enabled<span class=\"token punctuation\">;<\/span> vendor preset: enabled<span class=\"token punctuation\">)<\/span><br \/>\n     Active: active <span class=\"token punctuation\">(<\/span>running<span class=\"token punctuation\">)<\/span> since Tue <span class=\"token number\">2024<\/span>-07-23 02:05:12 UTC<span class=\"token punctuation\">;<\/span> 6h ago<br \/>\n       Docs: https:\/\/httpd.apache.org\/docs\/2.4\/<br \/>\n    Process: <span class=\"token number\">1071<\/span> <span class=\"token assign-left variable\">ExecStart<\/span><span class=\"token operator\">&#061;<\/span>\/usr\/sbin\/apachectl start <span class=\"token punctuation\">(<\/span>code<span class=\"token operator\">&#061;<\/span>exited, <span class=\"token assign-left variable\">status<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">0<\/span>\/SUCCESS<span class=\"token punctuation\">)<\/span><br \/>\n   Main PID: <span class=\"token number\">2051<\/span> <span class=\"token punctuation\">(<\/span>apache2<span class=\"token punctuation\">)<\/span><br \/>\n      Tasks: <span class=\"token number\">55<\/span> <span class=\"token punctuation\">(<\/span>limit: <span class=\"token number\">9345<\/span><span class=\"token punctuation\">)<\/span><br \/>\n     Memory: <span class=\"token number\">12<\/span>.6M<br \/>\n        CPU: <span class=\"token number\">1<\/span>.248s<br \/>\n     CGroup: \/system.slice\/apache2.service<br \/>\n             \u251c\u25002051 \/usr\/sbin\/apache2 <span class=\"token parameter variable\">-k<\/span> start<br \/>\n             \u251c\u25002052 \/usr\/sbin\/apache2 <span class=\"token parameter variable\">-k<\/span> start<br \/>\n             \u2514\u25002053 \/usr\/sbin\/apache2 <span class=\"token parameter variable\">-k<\/span> start<\/p>\n<p><span class=\"token number\">7<\/span>\u6708 <span class=\"token number\">23<\/span> 02:04:39 ubuntu-001 systemd<span class=\"token punctuation\">[<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span>: Starting The Apache HTTP Server<span class=\"token punctuation\">..<\/span>.<br \/>\n<span class=\"token number\">7<\/span>\u6708 <span class=\"token number\">23<\/span> 02:05:11 ubuntu-001 apachectl<span class=\"token punctuation\">[<\/span><span class=\"token number\">1143<\/span><span class=\"token punctuation\">]<\/span>: AH00558: apache2: Could not reliably determine the server&#039;s fully qualified domain name, using <span class=\"token number\">1<\/span><span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span><br \/>\n<span class=\"token number\">7<\/span>\u6708 <span class=\"token number\">23<\/span> 02:05:12 ubuntu-001 systemd<span class=\"token punctuation\">[<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span>: Started The Apache HTTP Server.<br \/>\nlines <span class=\"token number\">1<\/span>-17\/17 <span class=\"token punctuation\">(<\/span>END<span class=\"token punctuation\">)<\/span><\/p>\n<h3>4.4 \u9632\u706b\u5899\u8bbe\u7f6e<\/h3>\n<ul>\n<li>\u5173\u95ed\u9632\u706b\u5899&#xff0c;\u5982\u679c\u60f3\u8981\u5f00\u542f\u9632\u706b\u5899&#xff0c;\u9700\u653e\u884c80\u7aef\u53e3\u3002<\/li>\n<\/ul>\n<p><span class=\"token function\">sudo<\/span> ufw disable<\/p>\n<ul>\n<li>\u67e5\u770b\u9632\u706b\u5899\u72b6\u6001<\/li>\n<\/ul>\n<p>root&#064;ubuntu-001:~<span class=\"token comment\"># ufw status<\/span><br \/>\n\u72b6\u6001&#xff1a;\u4e0d\u6d3b\u52a8<\/p>\n<h3>4.5 \u6d4f\u89c8\u5668\u6d4b\u8bd5web\u670d\u52a1<\/h3>\n<p>\u6d4f\u89c8\u5668\u6253\u5f00&#xff1a;http:\/\/192.168.3.251&#xff0c;\u5c06IP\u66ff\u6362\u4e3a\u81ea\u5df1\u670d\u52a1\u5668IP\u5730\u5740\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250429091546-681098c2eabdf.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>\u4e94\u3001\u90e8\u7f72\u9879\u76ee<\/h2>\n<h3>5.1 \u4e0b\u8f7d\u9879\u76ee\u6e90\u7801<\/h3>\n<p>\u8fdb\u5165\u7f51\u9875\u6839\u76ee\u5f55<\/p>\n<p>root&#064;ubuntu-001:~<span class=\"token comment\"># cd \/var\/www\/html\/<\/span><br \/>\nroot&#064;ubuntu-001:\/var\/www\/html<span class=\"token comment\">#<\/span><\/p>\n<p>\u5728github\u62c9\u53d6\u9879\u76ee\u6e90\u7801<\/p>\n<p><span class=\"token function\">git<\/span> clone https:\/\/github.com\/josephernest\/writing.git<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250429091548-681098c451f9a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>5.2 \u67e5\u770b\u9879\u76ee\u6e90\u7801\u76ee\u5f55<\/h3>\n<p>\u67e5\u770b\u9879\u76ee\u6e90\u7801\u76ee\u5f55<\/p>\n<p>root&#064;ubuntu-001:\/var\/www\/html<span class=\"token comment\"># tree -L 2 writing\/<\/span><br \/>\nwriting\/<br \/>\n\u251c\u2500\u2500 cmunrb.otf<br \/>\n\u251c\u2500\u2500 cmunrm.otf<br \/>\n\u251c\u2500\u2500 favicon.ico<br \/>\n\u251c\u2500\u2500 index.html<br \/>\n\u251c\u2500\u2500 Markdown.Converter.js<br \/>\n\u251c\u2500\u2500 Markdown.Editor.js<br \/>\n\u251c\u2500\u2500 Markdown.Extra.js<br \/>\n\u251c\u2500\u2500 Markdown.Sanitizer.js<br \/>\n\u251c\u2500\u2500 mathjax-editing_writing.js<br \/>\n\u2514\u2500\u2500 README.md<\/p>\n<p><span class=\"token number\">0<\/span> directories, <span class=\"token number\">10<\/span> files<\/p>\n<h3>5.3 \u91cd\u542fapache2\u670d\u52a1<\/h3>\n<p>\u91cd\u542fapache2\u670d\u52a1<\/p>\n<p>systemctl restart apache2<\/p>\n<h2>\u516d\u3001\u8bbf\u95ee\u9879\u76ee<\/h2>\n<h3>6.1 \u8bbf\u95ee\u521d\u59cb\u9875<\/h3>\n<p>\u8bbf\u95ee\u5730\u5740&#xff1a;http:\/\/\u670d\u52a1\u5668IP\u5730\u5740\/writing\/&#xff0c;\u8fdb\u5165\u5230writing\u9996\u9875\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250429091548-681098c489f1a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>6.2 \u7f16\u8f91\u6587\u7ae0<\/h3>\n<p>\u5728\u5de6\u4fa7\u7f16\u8f91\u5668\u5185\u4f7f\u7528markdown\u8bed\u6cd5\u7f16\u8f91\u6587\u7ae0\u5185\u5bb9&#xff0c;\u53f3\u4fa7\u53ef\u4ee5\u9884\u89c8\u6548\u679c\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250429091549-681098c5cfa04.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>6.3 \u67e5\u770b\u5e2e\u52a9\u4fe1\u606f<\/h3>\n<p>\u5728\u9875\u9762\u7684\u53f3\u4e0b\u89d2\u56fe\u6807 ? &#xff0c;\u53ef\u7528\u4e8e\u663e\u793a\u5e2e\u52a9\u4fe1\u606f\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250429091551-681098c74b24c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>6.4 \u5207\u6362\u663e\u793a\u6a21\u5f0f<\/h3>\n<ul>\n<li>\u4f7f\u7528 CTRL &#043; D &#xff1a; \u5207\u6362\u663e\u793a\u6a21\u5f0f<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250429091552-681098c8ad34f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>6.5 \u4fdd\u5b58\u6587\u672c<\/h3>\n<ul>\n<li>\u4f7f\u7528 CTRL &#043; P \u6253\u5370\u6216\u5bfc\u51fa\u4e3aPDF<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250429091554-681098ca0c7dc.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>\u4f7f\u7528 CTRL &#043; S &#xff1a;\u4fdd\u5b58\u6e90\u4ee3\u7801\u4e3a.MD\u6587\u4ef6 &#xff0c;<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250429091555-681098cb5b367.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>\u4e03\u3001\u603b\u7ed3<\/h2>\n<p>&#034;Writing&#034;\u7f16\u8f91\u5668\u51ed\u501f\u5176\u5728\u6d4f\u89c8\u5668\u4e2d\u65e0\u7f1d\u8fd0\u884c\u7684\u8f7b\u91cf\u7ea7\u8bbe\u8ba1&#xff0c;\u4e3a\u7528\u6237\u6253\u9020\u4e86\u4e00\u4e2a\u8fdc\u79bb\u5e72\u6270\u3001\u4e13\u6ce8\u4e8e\u521b\u4f5c\u7684\u7406\u60f3\u7a7a\u95f4\u3002\u901a\u8fc7\u878d\u5408Markdown\u4e0eLaTeX\u7684\u652f\u6301&#xff0c;\u5b83\u4e0d\u4ec5\u7b80\u5316\u4e86\u6587\u672c\u683c\u5f0f\u5316\u7684\u590d\u6742\u5ea6&#xff0c;\u66f4\u8ba9\u64b0\u5199\u6d89\u53ca\u6570\u5b66\u516c\u5f0f\u548c\u79d1\u5b66\u7b26\u53f7\u7684\u5185\u5bb9\u53d8\u5f97\u5f97\u5fc3\u5e94\u624b&#xff0c;\u6781\u5927\u5730\u63d0\u5347\u4e86\u5b66\u672f\u7814\u7a76\u3001\u79d1\u6280\u5199\u4f5c\u53ca\u5404\u7c7b\u4e13\u4e1a\u6587\u6863\u7684\u7f16\u8f91\u6548\u7387\u3002\u65e0\u8bba\u662f\u4e13\u4e1a\u7684\u5b66\u672f\u5de5\u4f5c\u8005\u3001\u70ed\u8877\u4e8e\u6280\u672f\u5199\u4f5c\u7684\u535a\u4e3b&#xff0c;\u8fd8\u662f\u8ffd\u6c42\u7075\u611f\u6355\u6349\u7684\u6587\u5b66\u521b\u4f5c\u8005&#xff0c;&#034;Writing&#034;\u5747\u80fd\u63d0\u4f9b\u4e00\u4e2a\u65e2\u9ad8\u6548\u53c8\u4fbf\u6377\u7684\u5728\u7ebf\u7f16\u8f91\u4f53\u9a8c&#xff0c;\u6210\u4e3a\u4ed6\u4eec\u7b14\u8015\u4e0d\u8f8d\u7684\u7406\u60f3\u4f19\u4f34\u3002<\/p>\n<ul>\n<li>\u3010\u539f\u6587\u5730\u5740&#xff1a;https:\/\/blog.csdn.net\/jks212454\/article\/details\/140639203\u3011<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.1k\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf23\u6b21\u3002Linux\u7cfb\u7edf\u4e4b\u90e8\u7f72\u8f7b\u91cf\u7ea7Markdown\u6587\u672c\u7f16\u8f91\u5668_linux markdown<\/p>\n","protected":false},"author":2,"featured_media":34483,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2922,58,594,43],"topic":[],"class_list":["post-34492","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-apache2","tag-linux","tag-web","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux\u7cfb\u7edf\u4e4b\u90e8\u7f72\u8f7b\u91cf\u7ea7Markdown\u6587\u672c\u7f16\u8f91\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\/34492.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux\u7cfb\u7edf\u4e4b\u90e8\u7f72\u8f7b\u91cf\u7ea7Markdown\u6587\u672c\u7f16\u8f91\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.1k\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf23\u6b21\u3002Linux\u7cfb\u7edf\u4e4b\u90e8\u7f72\u8f7b\u91cf\u7ea7Markdown\u6587\u672c\u7f16\u8f91\u5668_linux markdown\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/34492.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-29T09:15:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250429091546-681098c27c45e.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/34492.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/34492.html\",\"name\":\"Linux\u7cfb\u7edf\u4e4b\u90e8\u7f72\u8f7b\u91cf\u7ea7Markdown\u6587\u672c\u7f16\u8f91\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-29T09:15:57+00:00\",\"dateModified\":\"2025-04-29T09:15:57+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/34492.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/34492.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/34492.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\u7cfb\u7edf\u4e4b\u90e8\u7f72\u8f7b\u91cf\u7ea7Markdown\u6587\u672c\u7f16\u8f91\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":"Linux\u7cfb\u7edf\u4e4b\u90e8\u7f72\u8f7b\u91cf\u7ea7Markdown\u6587\u672c\u7f16\u8f91\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\/34492.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux\u7cfb\u7edf\u4e4b\u90e8\u7f72\u8f7b\u91cf\u7ea7Markdown\u6587\u672c\u7f16\u8f91\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.1k\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf23\u6b21\u3002Linux\u7cfb\u7edf\u4e4b\u90e8\u7f72\u8f7b\u91cf\u7ea7Markdown\u6587\u672c\u7f16\u8f91\u5668_linux markdown","og_url":"https:\/\/www.wsisp.com\/helps\/34492.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-29T09:15:57+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250429091546-681098c27c45e.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/34492.html","url":"https:\/\/www.wsisp.com\/helps\/34492.html","name":"Linux\u7cfb\u7edf\u4e4b\u90e8\u7f72\u8f7b\u91cf\u7ea7Markdown\u6587\u672c\u7f16\u8f91\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-29T09:15:57+00:00","dateModified":"2025-04-29T09:15:57+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/34492.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/34492.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/34492.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux\u7cfb\u7edf\u4e4b\u90e8\u7f72\u8f7b\u91cf\u7ea7Markdown\u6587\u672c\u7f16\u8f91\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\/34492","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=34492"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/34492\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/34483"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=34492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=34492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=34492"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=34492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}