{"id":120,"date":"2021-01-09T15:26:28","date_gmt":"2021-01-09T07:26:28","guid":{"rendered":"http:\/\/www.apiworld.tech\/wordpress\/?p=120"},"modified":"2021-01-09T15:26:28","modified_gmt":"2021-01-09T07:26:28","slug":"ubuntu-wan-quan-xie-zainginx-fu-wu-qi","status":"publish","type":"post","link":"http:\/\/madapapa.com\/wordpress\/?p=120","title":{"rendered":"Ubuntu\u5b8c\u5168\u5378\u8f7dnginx\u670d\u52a1\u5668"},"content":{"rendered":"<h2 id=\"toc_0\">\u65b9\u6cd51<\/h2>\n<p>\u4f7f\u7528\u2018sudo apt-get &#8211;purge remove nginx\u2019\u5f7b\u5e95\u5220\u9664<\/p>\n<pre><code class=\"language-text\"># sudo service nginx stop\n# sudo apt-get --purge remove nginx\nReading package lists... Done\nBuilding dependency tree\nReading state information... Done\nThe following packages were automatically installed and are no longer required:\n  fontconfig-config fonts-dejavu-core libfontconfig1 libgd3 libjbig0 libjpeg-turbo8 libjpeg8\n  libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail\n  libnginx-mod-stream libtiff5 libwebp6 libxpm4 libxslt1.1 nginx-common nginx-core\nUse &#39;sudo apt autoremove&#39; to remove them.\nThe following packages will be REMOVED:\n  nginx*\n0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.\nAfter this operation, 45.1 kB disk space will be freed.\nDo you want to continue? [Y\/n] y\nperl: warning: Setting locale failed.\nperl: warning: Please check that your locale settings:\n        LANGUAGE = (unset),\n        LC_ALL = (unset),\n        LC_CTYPE = &quot;UTF-8&quot;,\n        LANG = &quot;en_US.UTF-8&quot;\n    are supported and installed on your system.\nperl: warning: Falling back to a fallback locale (&quot;en_US.UTF-8&quot;).\nlocale: Cannot set LC_CTYPE to default locale: No such file or directory\nlocale: Cannot set LC_ALL to default locale: No such file or directory\n(Reading database ... 117708 files and directories currently installed.)\nRemoving nginx (1.18.0-0ubuntu1) ...\n<\/code><\/pre>\n<h2 id=\"toc_1\">\u65b9\u6cd52<\/h2>\n<p>\u81ea\u52a8\u79fb\u9664\u5168\u90e8\u4e0d\u4f7f\u7528\u7684\u8f6f\u4ef6\u5305<\/p>\n<pre><code class=\"language-text\">sudo apt-get autoremove\n<\/code><\/pre>\n<p>\u5217\u51fa\u4e0enginx\u76f8\u5173\u7684\u8f6f\u4ef6\uff0c\u5e76\u4f9d\u6b21\u5220\u9664\u663e\u793a\u7684\u8f6f\u4ef6\uff0c\u8fd9\u4e2a\u65b9\u6cd5\u66f4\u52a0\u901a\u7528\uff0c\u6211\u7167\u732b\u753b\u864e\u4f7f\u7528\u5728php\u4e0a\u9762\uff0c\u4e5f\u975e\u5e38\u9760\u8c31\uff08php8.0-fpm\uff09<\/p>\n<pre><code class=\"language-text\">dpkg --get-selections|grep nginx\nsudo apt-get --purge remove nginx\nsudo apt-get --purge remove nginx-common\nsudo apt-get --purge remove nginx-cor\n<\/code><\/pre>\n<p>\u4f7f\u7528ps\u547d\u4ee4\u67e5\u770b\u76f8\u5173\u8fdb\u7a0b,-A\u663e\u793a\u6709\u9650\u4fe1\u606f\uff0c-l\u663e\u793a\u8be6\u7ec6\u4fe1\u606f -e\u663e\u793a\u6240\u6709\u8fdb\u7a0b\uff0caux\u663e\u793a\u7cfb\u7edf\u6240\u6709\u8fdb\u7a0b<\/p>\n<pre><code class=\"language-text\">ps -le \uff5c grep nginx\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/www.apiworld.tech\/wordpress\/wp-content\/uploads\/2021\/01\/16101776054290.jpg\" alt=\"\" style=\"width:514px;\"\/><\/p>\n<p>\u53c2\u8003\u6750\u6599\u5982\u4e0b<br \/>\n<a href=\"https:\/\/blog.csdn.net\/adley_app\/article\/details\/79223221\">https:\/\/blog.csdn.net\/adley_app\/article\/details\/79223221<\/a><\/p>\n<p>ps\u547d\u4ee4<br \/>\n<a href=\"http:\/\/c.biancheng.net\/view\/1062.html\">http:\/\/c.biancheng.net\/view\/1062.html<\/a><\/p>\n<p>\u5220\u9664apache2<br \/>\n<a href=\"https:\/\/blog.csdn.net\/dazhi_100\/article\/details\/43121179\">https:\/\/blog.csdn.net\/dazhi_100\/article\/details\/43121179<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65b9\u6cd51 \u4f7f\u7528\u2018sudo apt-get &#8211;purge remove nginx\u2019\u5f7b\u5e95\u5220\u9664 # sudo service nginx stop # sudo apt-get &#8211;purge remove nginx Reading package lists&#8230; Done Building dependency tree Reading state information&#8230; Done The following packages were automatically installed and are no longer required: fontconfig-config fonts-dejavu-core libfontconfig1 libgd3 libjbig0 libjpeg-turbo8 libjpeg8 libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libtiff5 libwebp6 libxpm4 libxslt1.1 nginx-common &hellip; <a href=\"http:\/\/madapapa.com\/wordpress\/?p=120\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Ubuntu\u5b8c\u5168\u5378\u8f7dnginx\u670d\u52a1\u5668<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[5],"tags":[14,18,19],"class_list":["post-120","post","type-post","status-publish","format-standard","hentry","category-linux","tag-nginx","tag-php","tag-ps"],"_links":{"self":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=120"}],"version-history":[{"count":0,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/120\/revisions"}],"wp:attachment":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}