{"id":293580,"date":"2024-10-12T20:04:46","date_gmt":"2024-10-12T12:04:46","guid":{"rendered":"https:\/\/lrxjmw.cn\/lxtmlhazcxdx.html"},"modified":"2024-10-12T20:04:46","modified_gmt":"2024-10-12T12:04:46","slug":"lxtmlhazcxdx","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lxtmlhazcxdx.html","title":{"rendered":"Linux \u7cfb\u7edf\u547d\u4ee4\u884c\u5b89\u88c5\u7a0b\u5e8f\u7684\u8be6\u7ec6\u6b65\u9aa4\u53ca\u7ba1\u7406\u7cfb\u7edf\u670d\u52a1\u65b9\u6cd5"},"content":{"rendered":"

\u5728linux\u7cfb\u7edf\u4e2d\u4f7f\u7528\u547d\u4ee4<\/a>\u884c\u5b89\u88c5\u7a0b\u5e8f\uff1a\u66f4\u65b0\u8f6f\u4ef6\u5305\u5217\u8868\uff08sudoapt-getupdate\uff09\u5b89\u88c5\u7a0b\u5e8f\uff08sudoapt-getinstall[\u7a0b\u5e8f\u540d\u79f0]\uff09\u786e\u8ba4\u5b89\u88c5\uff08dpkg-l[\u7a0b\u5e8f\u540d\u79f0]\uff09\u7ba1\u7406\u7cfb\u7edf\u670d\u52a1\uff08\u542f\u52a8\/\u505c\u6b62\/\u91cd\u65b0\u542f\u52a8\uff1asudosystemctlstart\/stop\/restart[\u670d\u52a1\u540d\u79f0]\uff09\u9a8c\u8bc1\u7a0b\u5e8f\uff08[\u7a0b\u5e8f\u540d\u79f0]--version\uff09<\/p>\n

linux \u600e\u4e48\u7528\u547d\u4ee4\u884c\u5b89\u88c5\u7a0b\u5e8f<\/p>\n

\u5728Linux<\/a>\u4e2d\u4f7f\u7528\u547d\u4ee4\u884c\u5b89\u88c5\u7a0b\u5e8f<\/p>\n

\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u884c\u6765\u5b89\u88c5\u8f6f\u4ef6\u548c\u5e94\u7528\u7a0b\u5e8f\u3002\u8fd9\u4e9b\u65b9\u5f0f\u4e00\u822c\u66f4\u4e2d\u7ea7\uff0c\u4f46\u5b83\u4e5f\u63d0\u4f9b\u4e86\u5bf9\u5b89\u88c5\u8fc7\u7a0b\u66f4\u5927\u7684\u63a7\u5236\u548c\u7075\u6d3b\u6027\u3002<\/p>\n

\u6b65\u9aa4\uff1a<\/p>\n

1.\u66f4\u65b0\u8f6f\u4ef6\u5305\u5217\u8868<\/p>\n

linux\u7cfb\u7edf\u5b89\u88c5\u8f6f\u4ef6\u547d\u4ee4_linux\u5b89\u88c5\u8f6f\u4ef6\u547d\u4ee4yum_linux\u7cfb\u7edf\u5b89\u88c5\u7a0b\u5e8f\u547d\u4ee4<\/p>\n

\u5728\u5b89\u88c5\u4efb\u4f55\u8f6f\u4ef6\u4e4b\u524dlinux\u8bbe\u7f6e\u9ed8\u8ba4\u7f51\u5173\uff0c\u4e00\u76f4\u66f4\u65b0\u8f6f\u4ef6\u5305\u5217\u8868\uff0c\u4ee5\u786e\u4fdd\u60a8\u83b7\u5f97\u6700\u65b0\u7684\u53ef\u7528\u7248\u672c\u3002\u56e0\u6b64\uff0c\u8bf7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

\n

sudo apt-get update<\/pre>\n<\/p>\n

\u767b\u9646\u540e\u590d\u5236<\/p>\n

2.\u5b89\u88c5\u7a0b\u5e8f<\/p>\n

\u8981\u5728Linux\u7cfb\u7edf\u4e0a\u5b89\u88c5\u7a0b\u5e8flinux\u7cfb\u7edf\u5b89\u88c5\u8f6f\u4ef6\u547d\u4ee4<\/strong>\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

linux\u5b89\u88c5\u8f6f\u4ef6\u547d\u4ee4yum_linux\u7cfb\u7edf\u5b89\u88c5\u7a0b\u5e8f\u547d\u4ee4_linux\u7cfb\u7edf\u5b89\u88c5\u8f6f\u4ef6\u547d\u4ee4<\/p>\n

\n

sudo apt-get install [\u7a0b\u5e8f\u540d\u79f0]<\/pre>\n<\/p>\n

\u767b\u9646\u540e\u590d\u5236<\/p>\n

\u6bd4\u5982\uff0c\u8981\u5b89\u88c5ApacheWeb\u670d\u52a1\u5668\uff0c\u8bf7\u8fd0\u884c\uff1a<\/p>\n

\n

sudo apt-get install apache2<\/pre>\n<\/p>\n

\u767b\u9646\u540e\u590d\u5236<\/p>\n

3.\u786e\u8ba4\u5b89\u88c5<\/p>\n

\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u786e\u8ba4\u7a0b\u5e8f\u662f\u5426\u5df2\u6210\u529f\u5b89\u88c5\uff1a<\/p>\n

\n

dpkg -l [\u7a0b\u5e8f\u540d\u79f0]<\/pre>\n<\/p>\n

\u767b\u9646\u540e\u590d\u5236<\/p>\n

\u8fd9\u5c06\u663e\u793a\u8be5\u7a0b\u5e8f\u7684\u5b89\u88c5\u72b6\u6001\u3002<\/p>\n

linux\u7cfb\u7edf\u5b89\u88c5\u8f6f\u4ef6\u547d\u4ee4_linux\u7cfb\u7edf\u5b89\u88c5\u7a0b\u5e8f\u547d\u4ee4_linux\u5b89\u88c5\u8f6f\u4ef6\u547d\u4ee4yum<\/p>\n

4.\u7cfb\u7edf\u670d\u52a1<\/p>\n

\u4e2a\u522b\u7a0b\u5e8f\u987b\u8981\u4ee5\u7cfb\u7edf\u670d\u52a1\u7684\u65b9\u5f0f\u8fd0\u884c\u3002\u8981\u542f\u52a8\u3001\u505c\u6b62\u6216\u91cd\u65b0\u542f\u52a8\u7cfb\u7edf\u670d\u52a1linux\u7cfb\u7edf\u5b89\u88c5\u8f6f\u4ef6\u547d\u4ee4<\/strong>\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

5.\u9a8c\u8bc1\u7a0b\u5e8f<\/p>\n

\u5728\u5b8c\u6210\u5b89\u88c5\u548c\u914d\u7f6e\u540e\u5317\u4eaclinux\u57f9\u8bad\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u9a8c\u8bc1\u7a0b\u5e8f\u662f\u5426\u6b63\u5e38\u5de5\u4f5c\uff1a<\/p>\n

\n

[\u7a0b\u5e8f\u540d\u79f0] --version<\/pre>\n<\/p>\n

linux\u7cfb\u7edf\u5b89\u88c5\u7a0b\u5e8f\u547d\u4ee4_linux\u5b89\u88c5\u8f6f\u4ef6\u547d\u4ee4yum_linux\u7cfb\u7edf\u5b89\u88c5\u8f6f\u4ef6\u547d\u4ee4<\/p>\n

\u767b\u9646\u540e\u590d\u5236<\/p>\n

\u8fd9\u5c06\u663e\u793a\u8be5\u7a0b\u5e8f\u7684\u7248\u672c\u53f7\u3002<\/p>\n

\u793a\u4f8b\uff1a<\/p>\n

\u4ee5\u4e0b\u662f\u600e\u6837\u5728Ubuntu\u7cfb\u7edf\u4e0a\u5b89\u88c5Python\u7f16\u7a0b\u8bed\u8a00\uff1a<\/p>\n

\n

sudo apt-get update\nsudo apt-get install python3\ndpkg -l python3\nsudo systemctl start python3\npython3 --version<\/pre>\n<\/p>\n

\u767b\u9646\u540e\u590d\u5236<\/p>\n","protected":false},"excerpt":{"rendered":"

\u4e2d\u4f7f\u7528\u547d\u4ee4\u884c\u5b89\u88c5\u7a0b\u5e8f\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u884c\u6765\u5b89\u88c5\u8f6f\u4ef6\u548c\u5e94\u7528\u7a0b\u5e8f\u3002\u5b89\u88c5\u7a0b\u5e8f\u7cfb\u7edf\u4e0a\u5b89\u88c5\u7a0b\u5e8f\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u786e\u8ba4\u7a0b\u5e8f\u662f\u5426\u5df2\u6210\u529f\u5b89\u88c5\uff1a\u67d0\u4e9b\u7a0b\u5e8f\u9700\u8981\u4ee5\u7cfb\u7edf\u670d\u52a1\u7684\u5f62\u5f0f\u8fd0\u884c\u3002\u5728\u5b8c\u6210\u5b89\u88c5\u548c\u914d\u7f6e\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u9a8c\u8bc1\u7a0b\u5e8f\u662f\u5426\u6b63\u5e38\u5de5\u4f5c\uff1a<\/p>\n","protected":false},"author":1,"featured_media":293581,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[1343,3536,3537,1719],"class_list":["post-293580","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-mlh","tag-azcx","tag-gxrjb","tag-xt-2"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/293580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=293580"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/293580\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/293581"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=293580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=293580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=293580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}