{"id":546,"date":"2015-08-23T11:13:20","date_gmt":"2015-08-23T03:13:20","guid":{"rendered":"http:\/\/www.datarelab.com\/blog\/?p=546"},"modified":"2015-08-23T11:13:20","modified_gmt":"2015-08-23T03:13:20","slug":"ubuntu%e4%b8%ad%e5%ae%89%e8%a3%85%e5%92%8c%e5%8d%b8%e8%bd%bdapache2","status":"publish","type":"post","link":"https:\/\/www.datarelab.com\/blog\/Technical_literature\/546.html","title":{"rendered":"Ubuntu\u4e2d\u5b89\u88c5\u548c\u5378\u8f7dapache2"},"content":{"rendered":"<p><strong>1.\u5b89\u88c5apache2<\/strong><\/p>\n<p>\u5b89\u88c5\u547d\u4ee4\uff1asudo apt-get install apache2<\/p>\n<p>\u542f\u52a8\/\u505c\u6b62\/\u91cd\u542fapache2: service apache2 start\/stop\/restart<\/p>\n<p><strong>2. \u5378\u8f7dapache2<\/strong><\/p>\n<p>\u4e4b\u524d\u5378\u8f7d\u91cd\u65b0\u5b89\u88c5\u540e\u627e\u4e0d\u5230apache2.conf\u914d\u7f6e\u6587\u4ef6\uff0c\u6d4b\u8bd5\u4f7f\u7528\u4e00\u4e0b\u65b9\u5f0f\u5378\u8f7d\u540e\u53ef\u7528\u3002<br \/>\n(1) $ sudo apt-get --purge remove apache2<br \/>\n$ sudo apt-get --purge remove apache2.2-common<br \/>\n$ sudo apt-get autoremove<\/p>\n<p>(2) \uff08\u5173\u952e\u4e00\u6b65\uff09\u627e\u5230\u6ca1\u6709\u5220\u9664\u6389\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u4e00\u5e76\u5220\u9664<br \/>\n$ sudo find \/etc -name \"*apache*\" -exec rm -rf {} \\;<br \/>\n$ sudo rm -rf \/var\/www<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u5b89\u88c5apache2 \u5b89\u88c5\u547d\u4ee4\uff1asudo apt-get install apache2 \u542f\u52a8\/\u505c\u6b62\/\u91cd\u542fa [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-546","post","type-post","status-publish","format-standard","hentry","category-Technical_literature"],"views":1556,"_links":{"self":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/546","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/comments?post=546"}],"version-history":[{"count":0,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/546\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/media?parent=546"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/categories?post=546"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/tags?post=546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}