{"id":294821,"date":"2024-12-06T20:14:43","date_gmt":"2024-12-06T12:14:43","guid":{"rendered":"https:\/\/lrxjmw.cn\/rhzuxtzxxazl.html"},"modified":"2024-12-06T20:14:43","modified_gmt":"2024-12-06T12:14:43","slug":"rhzuxtzxxazl","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/rhzuxtzxxazl.html","title":{"rendered":"\u5982\u4f55\u5728Ubuntu\u7cfb\u7edf\u4e2d\u8be6\u7ec6\u5b89\u88c5LAMP\uff08Linux\u3001Apache\u3001MySQL\u3001PHP\uff09\u7ec4\u5408\u6559\u7a0b"},"content":{"rendered":"

\u672c\u6587\u5c06\u8be6\u7ec6\u9610\u8ff0\u5982\u4f55\u5728Ubuntu<\/a>\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u5b89\u88c5LAMP\uff08Linux<\/a>\u3001Apache\u3001MySQL<\/a>\u3001PHP\uff09\u7ec4\u5408\u3002\u8fd9\u4e00\u8fc7\u7a0b\u5bf9\u4e8e\u90a3\u4e9b\u8ba1\u5212\u6784\u5efa\u4e2a\u4ebaWeb\u670d\u52a1\u5668\u6216\u8bbe\u7f6eWeb\u5f00\u53d1\u6d4b\u8bd5\u73af\u5883\u7684\u670b\u53cb\u4eec\u6765\u8bf4\u4e2d\u6807linux\uff0c\u5177\u6709\u6781\u5176\u91cd\u8981\u7684\u610f\u4e49\u3002<\/p>\n

\u51c6\u5907\u5de5\u4f5c<\/b><\/p>\n

\u8bf7\u786e\u4fdd\u4f60\u624b\u5934\u6709\u4e00\u53f0\u5b89\u88c5\u4e86Ubuntu\u7cfb\u7edf\u7684\u7535\u8111\u3002Ubuntu\u662f\u4e00\u6b3e\u5e7f\u53d7\u6b22\u8fce\u7684Linux\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5b83\u62e5\u6709\u591a\u4e2a\u7248\u672c\u3002\u5728\u5b89\u88c5LAMP\u4e4b\u524d\uff0c\u52a1\u5fc5\u786e\u8ba4\u7cfb\u7edf\u5df2\u5347\u7ea7\u81f3\u6700\u65b0\u7248\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u6267\u884c\u201csudoapt-getupdate\u201d\u548c\u201csudoapt-getupgrade\u201d\u547d\u4ee4<\/a>\u6765\u66f4\u65b0\u7cfb\u7edf\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4e0d\u540c\u7248\u672c\u7684Ubuntu\u5728\u5b89\u88c5\u65f6\u53ef\u80fd\u5b58\u5728\u4e9b\u8bb8\u5dee\u5f02lamp ubuntu\u5b89\u88c5<\/strong>\uff0c\u4f46\u57fa\u672c\u6b65\u9aa4\u5927\u4f53\u76f8\u540c\u3002\u540c\u65f6\uff0c\u4e86\u89e3\u4f60\u7684\u786c\u4ef6\u914d\u7f6e\uff0c\u6bd4\u5982\u5185\u5b58\u548c\u786c\u76d8\u5bb9\u91cf\uff0c\u5bf9\u4e8e\u786e\u4fddLAMP\u987a\u5229\u5b89\u88c5\u548c\u8fd0\u884c\u81f3\u5173\u91cd\u8981\u3002<\/p>\n

\u5b89\u88c5Ubuntu\u9ed1\u5c4f_\u5b89\u88c5Ubuntu\u53cc\u7cfb\u7edf_lamp ubuntu\u5b89\u88c5<\/p>\n

\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u9047\u5230\u8f6f\u4ef6\u95f4\u7684\u76f8\u4e92\u4f9d\u8d56\u95ee\u9898\u3002\u6bd4\u5982\uff0c\u8f6f\u4ef6A\u8fd0\u884c\u9700\u8981\u8f6f\u4ef6B\u6765\u8f85\u52a9\u3002\u5728\u5b89\u88c5LAMP\u65f6\uff0cUbuntu\u7684\u5305\u7ba1\u7406\u5668\u4f1a\u81ea\u52a8\u89e3\u51b3\u591a\u6570\u4f9d\u8d56deepin linux\uff0c\u4f46\u6709\u65f6\u4ecd\u9700\u4eba\u5de5\u4ecb\u5165\uff0c\u56e0\u6b64\u4e86\u89e3\u8fd9\u4e00\u6982\u5ff5\u662f\u5fc5\u8981\u7684\u3002<\/p>\n

\u5b89\u88c5Apache<\/b><\/p>\n

\u90a3\u4e48\uff0c\u5728Ubuntu\u7cfb\u7edf\u4e2d\u90e8\u7f72Apache\u670d\u52a1\u5668\u76f8\u5f53\u4fbf\u6377\uff0c\u53ea\u9700\u5728\u547d\u4ee4\u884c\u4e2d\u6572\u5165\u201csudoapt-getinstallapache2\u201d\u8fd9\u4e00\u6307\u4ee4\u3002\u5b89\u88c5\u4e00\u65e6\u5b8c\u6210\uff0c\u60a8\u4fbf\u53ef\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee\u201c\u201d\u7f51\u5740\u6765\u68c0\u9a8cApache\u662f\u5426\u5df2\u987a\u5229\u5b89\u88c5\u3002\u82e5\u9875\u9762\u663e\u793aApache\u7684\u9ed8\u8ba4\u6b22\u8fce\u4fe1\u606f\uff0c\u90a3\u5c31\u610f\u5473\u7740\u5b89\u88c5\u5df2\u7ecf\u6210\u529f\u3002<\/p>\n

\u5b89\u88c5Ubuntu\u9ed1\u5c4f_lamp ubuntu\u5b89\u88c5_\u5b89\u88c5Ubuntu\u53cc\u7cfb\u7edf<\/p>\n

Apache\u7684\u914d\u7f6e\u540c\u6837\u81f3\u5173\u91cd\u8981\u3002\u901a\u5e38\uff0c\u8fd9\u4e9b\u914d\u7f6e\u6587\u4ef6\u90fd\u5b58\u653e\u4e8e\u201c\/etc\/apache2\u201d\u8fd9\u4e2a\u6587\u4ef6\u5939\u4e2d\u3002\u91cc\u9762\u5305\u542b\u4f17\u591a\u6587\u4ef6\uff0c\u6bd4\u5982\u201capache2.conf\u201d\u7b49\u3002\u901a\u8fc7\u8c03\u6574\u8fd9\u4e9b\u6587\u4ef6\uff0c\u6211\u4eec\u53ef\u4ee5\u8bbe\u5b9a\u670d\u52a1\u5668\u7684\u6839\u76ee\u5f55\u3001\u7aef\u53e3\u53f7\u3001\u865a\u62df\u4e3b\u673a\u7b49\u5173\u952e\u53c2\u6570\u3002\u4f46\u8981\u6ce8\u610f\uff0c\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u65f6\u8981\u683c\u5916\u5c0f\u5fc3\uff0c\u7a0d\u6709\u4e0d\u614e\uff0c\u670d\u52a1\u5668\u53ef\u80fd\u5c31\u65e0\u6cd5\u6b63\u5e38\u8fd0\u884c\u4e86\u3002<\/p>\n

\u5b89\u88c5MySQL<\/b><\/p>\n

\u9996\u5148\uff0c\u6211\u4eec\u8981\u4e86\u89e3\u5b89\u88c5MySQL\u7684\u6307\u4ee4\uff0c\u90a3\u5c31\u662f\u5728\u7ec8\u7aef\u8f93\u5165\u201csudoapt-getinstallmysql-server\u201d\u3002\u5b89\u88c5\u65f6lamp ubuntu\u5b89\u88c5<\/strong>\uff0c\u7cfb\u7edf\u4f1a\u8981\u6c42\u4f60\u8bbe\u7f6e\u5bc6\u7801\u7b49\u5173\u952e\u4fe1\u606f\uff0c\u8bf7\u4e00\u5b9a\u8bb0\u7262\u8fd9\u4e9b\u5185\u5bb9\u3002<\/p>\n

\u5b89\u88c5MySQL\u540e\uff0c\u6211\u4eec\u4fbf\u53ef\u4ee5\u4f7f\u7528\u7279\u5b9a\u547d\u4ee4\u5bf9\u6570\u636e\u5e93\u8fdb\u884c\u7ba1\u7406\u3002\u4f8b\u5982\uff0c\u8f93\u5165\u201cmysql-uroot-p\u201d\u53ef\u8fdb\u5165\u6570\u636e\u5e93\u7cfb\u7edf\uff0c\u5176\u4e2d\u201c-u\u201d\u6307\u5b9a\u7528\u6237\uff0c\u201croot\u201d\u4e3a\u9884\u8bbe\u7684\u8d85\u7ea7\u7ba1\u7406\u5458\uff0c\u201c-p\u201d\u63d0\u793a\u8f93\u5165\u5bc6\u7801\u3002\u767b\u5f55\u6210\u529f\u540e\uff0c\u4fbf\u53ef\u4ee5\u6267\u884c\u521b\u5efa\u6570\u636e\u5e93\u3001\u8868\u683c\u548c\u67e5\u8be2\u7b49\u4efb\u52a1\u3002\u638c\u63e1\u8fd9\u4e9b\u57fa\u7840\u64cd\u4f5c\u5bf9\u540e\u7eed\u7684Web\u5f00\u53d1\u6781\u4e3a\u5173\u952e\u3002<\/p>\n

\u5b89\u88c5PHP<\/b><\/p>\n

\u4f7f\u7528\u547d\u4ee4\u201csudoapt-getinstallphp\u201d\u5373\u53ef\u5b89\u88c5PHP\uff0c\u6b64\u64cd\u4f5c\u5c06\u5b89\u88c5PHP\u7684\u57fa\u7840\u7ec4\u4ef6\u3002\u82e5\u9700\u989d\u5916\u5b89\u88c5\u6269\u5c55\uff0c\u6bd4\u5982\u7528\u4e8e\u8fde\u63a5MySQL\u6570\u636e\u5e93\u7684\u201cphp-mysql\u201d\u6269\u5c55\uff0c\u53ea\u9700\u6267\u884c\u201csudoapt-getinstallphp-mysql\u201d\u5373\u53ef\u3002<\/p>\n

PHP\u7684\u914d\u7f6e\u6587\u4ef6\u4e00\u822c\u4f4d\u4e8e\u201c\/etc\/php\u201d\u8fd9\u4e2a\u6587\u4ef6\u5939\u3002\u5bf9\u8fd9\u4e9b\u914d\u7f6e\u6587\u4ef6\u91cc\u7684\u53c2\u6570\u8fdb\u884c\u4fee\u6539\uff0c\u4f1a\u5bf9PHP\u7684\u8868\u73b0\u548c\u529f\u80fd\u4ea7\u751f\u5f71\u54cd\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u8c03\u6574\u9519\u8bef\u4fe1\u606f\u7684\u663e\u793a\u7a0b\u5ea6\uff0c\u8fd9\u6837\u6709\u52a9\u4e8e\u5728\u5f00\u53d1\u9636\u6bb5\u5feb\u901f\u627e\u5230\u95ee\u9898\u6240\u5728\u3002<\/p>\n

\u6d4b\u8bd5LAMP\u73af\u5883<\/b><\/p>\n

\u5b89\u88c5Ubuntu\u9ed1\u5c4f_\u5b89\u88c5Ubuntu\u53cc\u7cfb\u7edf_lamp ubuntu\u5b89\u88c5<\/p>\n

\u9996\u5148\uff0c\u4f60\u9700\u8981\u5236\u4f5c\u4e00\u4e2a\u540d\u4e3a\u201ctest.php\u201d\u7684PHP\u6587\u4ef6\u3002\u63a5\u7740\uff0c\u5728\u6587\u4ef6\u91cc\u8f93\u5165PHP\u4ee3\u7801\uff0c\u6bd4\u5982\u5199\u4e0a\u201c<?phpphpinfo();?>\u201d\u3002\u4e4b\u540e\uff0c\u628a\u8fd9\u4e2a\u6587\u4ef6\u5b58\u653e\u5728Apache\u670d\u52a1\u5668\u7684\u6839\u76ee\u5f55\uff0c\u901a\u5e38\u4f4d\u7f6e\u662f\u201c\/var\/www\/html\u201d\u3002\u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u8f93\u5165\u201c\u201d\uff0c\u82e5\u80fd\u770b\u5230PHP\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u90a3\u5c31\u8868\u660ePHP\u548cApache\u5df2\u7ecf\u6b63\u5e38\u914d\u5408\u8fd0\u884c\u4e86\u3002<\/p>\n

\u5176\u6b21\uff0c\u5728PHP\u6587\u4ef6\u91cc\u5c1d\u8bd5\u4e0eMySQL\u6570\u636e\u5e93\u5efa\u7acb\u8fde\u63a5\uff0c\u8fd9\u4e00\u6b65\u662f\u4e3a\u4e86\u68c0\u9a8cLAMP\u7ec4\u5408\u80fd\u5426\u987a\u7545\u534f\u4f5c\u3002\u53ef\u4ee5\u5199\u4e00\u6bb5PHP\u4ee3\u7801\u53bb\u67e5\u8be2MySQL\u7684\u4e00\u4e2a\u8868\uff0c\u82e5\u64cd\u4f5c\u65e0\u8bef\u4e14\u80fd\u83b7\u53d6\u5230\u51c6\u786e\u4fe1\u606f\uff0c\u90a3\u5c31\u8bf4\u660eLAMP\u7cfb\u7edf\u5df2\u5b89\u88c5\u59a5\u5f53\uff0c\u8fd0\u884c\u6b63\u5e38\u3002<\/p>\n

\u5e38\u89c1\u95ee\u9898\u53ca\u89e3\u51b3<\/b><\/p>\n

\u5b89\u88c5Ubuntu\u53cc\u7cfb\u7edf_\u5b89\u88c5Ubuntu\u9ed1\u5c4f_lamp ubuntu\u5b89\u88c5<\/p>\n

\u6743\u9650\u8bbe\u7f6e\u4e0d\u5f53\u662f\u5e38\u9047\u5230\u7684\u95ee\u9898\u3002\u5728Linux\u73af\u5883\u4e0b\uff0c\u82e5\u6743\u9650\u5904\u7406\u6709\u8bef\uff0c\u4f1a\u5f15\u53d1\u6587\u4ef6\u8bbf\u95ee\u56f0\u96be\u7b49\u95ee\u9898\u3002\u6bd4\u5982\uff0cApache\u53ef\u80fd\u5c31\u65e0\u6cd5\u8bfb\u53d6PHP\u6587\u4ef6\u3002\u8fd9\u65f6\uff0c\u6211\u4eec\u5f97\u4fee\u6539\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u6743\u9650\uff0c\u800c\u201cchmod\u201d\u547d\u4ee4\u6b63\u662f\u7528\u6765\u5b8c\u6210\u8fd9\u4e00\u64cd\u4f5c\u7684\u3002<\/p>\n

\u670d\u52a1\u542f\u52a8\u9047\u5230\u4e86\u95ee\u9898\u3002\u8fd9\u53ef\u80fd\u662f\u7531\u4e8e\u8bbe\u7f6e\u4e0d\u5f53\u6216\u8005\u7aef\u53e3\u5df2\u88ab\u4ed6\u4eba\u4f7f\u7528\u7b49\u539f\u56e0\u9020\u6210\u7684\u3002\u82e5\u7aef\u53e3\u5df2\u88ab\u5360\u7528\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u201cnetstat-tlnp\u201d\u547d\u4ee4\u6765\u67e5\u770b\u54ea\u4e2a\u8fdb\u7a0b\u5360\u7528\u4e86\u7aef\u53e3\uff0c\u4e4b\u540e\u6839\u636e\u5177\u4f53\u60c5\u51b5\u7ec8\u6b62\u8be5\u8fdb\u7a0b\u6216\u662f\u66f4\u6539\u670d\u52a1\u7684\u7aef\u53e3\u3002<\/p>\n

\u6211\u60f3\u8be2\u95ee\u5404\u4f4d\uff0c\u5728\u4f60\u4eec\u5b89\u88c5LAMP\u8fc7\u7a0b\u4e2d\u9047\u5230\u4e86\u54ea\u4e9b\u7279\u6b8a\u96be\u9898\uff1f\u6b22\u8fce\u5728\u8bc4\u8bba\u533a\u7559\u8a00\u4ea4\u6d41\uff0c\u540c\u65f6\u671f\u5f85\u5927\u5bb6\u80fd\u70b9\u8d5e\u5e76\u8f6c\u53d1\u6b64\u7bc7\u6587\u7ae0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u672c\u6587\u5c06\u8be6\u7ec6\u9610\u8ff0\u5982\u4f55\u5728Ubuntu\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u5b89\u88c5LAMP\uff08Linux\u3001Apache\u3001MySQL\u3001PHP\uff09\u7ec4\u5408\u3002\u5728\u5b89\u88c5LAMP\u4e4b\u524d\uff0c\u52a1\u5fc5\u786e\u8ba4\u7cfb\u7edf\u5df2\u5347\u7ea7\u81f3\u6700\u65b0\u7248\u3002\u4f7f\u7528\u547d\u4ee4\u201csudoapt-getinstallphp\u201d\u5373\u53ef\u5b89\u88c5PHP\uff0c\u6b64\u64cd\u4f5c\u5c06\u5b89\u88c5PHP\u7684\u57fa\u7840\u7ec4\u4ef6\u3002<\/p>\n","protected":false},"author":1,"featured_media":294822,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[1523,187,1112,81,1814],"class_list":["post-294821","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-l-9","tag-mysql","tag-p","tag-ubuntu","tag-sjkgl"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/294821","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=294821"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/294821\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/294822"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=294821"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=294821"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=294821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}