{"id":647,"date":"2016-08-14T22:57:34","date_gmt":"2016-08-14T14:57:34","guid":{"rendered":"http:\/\/www.withonly.com\/?p=647"},"modified":"2016-08-14T22:57:34","modified_gmt":"2016-08-14T14:57:34","slug":"ubuntu%e5%ae%8c%e5%85%a8%e5%8d%b8%e8%bd%bdnginx","status":"publish","type":"post","link":"https:\/\/blog.5danyuan.com\/?p=647","title":{"rendered":"Ubuntu\u5b8c\u5168\u5378\u8f7dNginx"},"content":{"rendered":"<p>\u4eca\u5929\u5728\u5220\u9664\u7cfb\u7edf\u65e5\u5fd7\u7684\u65f6\u5019\uff0c\u6211\u4ee5\u4e3a\u662f\u5728\u65e5\u5fd7\u76ee\u5f55\uff0c\u6ca1\u6709\u60f3\u5230\u662f\u5728 \/etc\/nginx\u76ee\u5f55\uff0c\u4e00\u4e0b\u5b50\u7ed9\u6e05\u7a7a\u4e86\uff0c\u90a3\u53eb\u4e00\u4e2a\u60b2\u50ac\u554a\u3002\u53cd\u590d\u5378\u8f7d\u5b89\u88c5\u4e86\u597d\u51e0\u6b21\u90fd\u6ca1\u6709\u6548\u679c\uff0c\u6025\u7684\u6ee1\u5934\u5927\u6c57\u3002<\/p>\n<p>\u7ecf\u8fc7\u4e00\u4e2a\u4e0b\u5348\u52a0\u4e0a\u665a\u4e0a\u7684\u6478\u7d22\uff0c\u5206\u4eab\u4e0b\u89e3\u51b3\u65b9\u6cd5\uff0c\u4e5f\u975e\u5e38\u7684\u7b80\u5355\u3002<\/p>\n<blockquote><p>sudo apt-get remove nginx<br \/>\nsudo apt-get autoremove<br \/>\nsudo apt-get autoclean<br \/>\nsudo rm -rf \/etc\/nginx<br \/>\nsudo rm -rf \/etc\/init.d\/nginx<br \/>\nsudo rm -rf \/var\/lib\/nginx<br \/>\nsudo rm -rf \/var\/log\/nginx<br \/>\nsudo rm -rf \/etc\/logrotate.d\/nginx<br \/>\nsudo apt-get purge nginx<br \/>\ndpkg &#8211;get-selections|grep nginx<\/p><\/blockquote>\n<p>\u7136\u540e\u6211\u8fd9\u91cc\u5c31\u5217\u51fa\u4e86nginx-common \u548c nginx-core<\/p>\n<p>\u63a5\u7740\u7ee7\u7eed\u8fd0\u884c<\/p>\n<blockquote><p>sudo apt-get &#8211;purge remove nginx-common<br \/>\nsudo apt-get autoremove<br \/>\nsudo apt-get install nginx<\/p><\/blockquote>\n<p>\u4e4b\u540e\u7ec8\u4e8e\u51fa\u73b0\u4e86nginx\u7684\u6b22\u8fce\u9875\u4e86\uff0c\u5269\u4e0b\u7684\u5c31\u662f\u5404\u79cd\u914d\u7f6e\uff0c\u5c31\u4e0d\u7ec6\u8bf4\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u5728\u5220\u9664\u7cfb\u7edf\u65e5\u5fd7\u7684\u65f6\u5019\uff0c\u6211\u4ee5\u4e3a\u662f\u5728\u65e5\u5fd7\u76ee\u5f55\uff0c\u6ca1\u6709\u60f3\u5230\u662f\u5728 \/etc\/nginx\u76ee\u5f55\uff0c\u4e00\u4e0b\u5b50\u7ed9\u6e05\u7a7a\u4e86\uff0c\u90a3\u53eb\u4e00\u4e2a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[276],"class_list":["post-647","post","type-post","status-publish","format-standard","hentry","category-a-short-word","tag-nginx"],"_links":{"self":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/647","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=647"}],"version-history":[{"count":0,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/647\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}