Related commands to completely uninstall nginx under ubuntu16.04

Related commands to completely uninstall nginx under ubuntu16.04

nginx Overview

nginx is a free, open source, high-performance HTTP server and reverse proxy server; it is also an IMAP, POP3, and SMTP proxy server; nginx can be used as an HTTP server to publish websites, and nginx can be used as a reverse proxy to implement load balancing.

Delete nginx and related configuration files

sudo apt-get --purge remove nginx

Automatically remove all unused packages

sudo apt-get autoremove

Delete software related to nginx

sudo apt-get --purge remove nginx
sudo apt-get --purge remove nginx-common
sudo apt-get --purge remove nginx-core

Check the running process of nginx and kill it if there is any.

ps aux | grep nginx
sudo kill -9 process pid1 process pid2 ....

Reinstall nginx

sudo apt-get update
sudo apt-get install nginx

Summarize

The above is the relevant commands for completely uninstalling nginx under Ubuntu 16.04 introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

You may also be interested in:
  • Summary of installing Nginx server program and simple environment configuration on Ubuntu
  • How to solve common errors when installing Nginx server software in Ubuntu system
  • Detailed explanation of configuring nginx+php+mysql under ubuntu
  • How to Install Nginx Server on Ubuntu
  • Configuring ThinkPHP's Pathinfo and URl Rewrite Modes in Nginx under Ubuntu
  • The easiest way to build Nginx and PHP environment in Ubuntu
  • Detailed explanation of ubuntu10.04 configuration of nginx+php-fpm mode
  • Configure Nginx+PHP5 FastCGI server configuration on ubuntu

<<:  Some ways to eliminate duplicate rows in MySQL

>>:  vite2.x implements on-demand loading of ant-design-vue@next components

Recommend

Detailed tutorial on installing MySQL 8 in CentOS 7

Prepare Environmental information for this articl...

How to extract string elements from non-fixed positions in MySQL

Preface Note: The test database version is MySQL ...

Let's talk about the issue of passing parameters to React onClick

Background In a list like the one below, clicking...

In-depth understanding of the role of Vuex

Table of contents Overview How to share data betw...

The connection between JavaScript and TypeScript

Table of contents 1. What is JavaScript? 2. What ...

Detailed explanation of MySQL database triggers

Table of contents 1 Introduction 2 Trigger Introd...

MySQL 8.0.24 installation and configuration method graphic tutorial

This article shares the installation tutorial of ...

Nexus uses API to operate

Nexus provides RestApi, but some APIs still need ...

Specific method to delete mysql service

MySQL prompts the following error I went to "...

The meaning of status code in HTTP protocol

A status code that indicates a provisional respon...

How does Vue track data changes?

Table of contents background example Misconceptio...

Summary of MySQL common functions

Preface: The MySQL database provides a wide range...

Where is mysql data stored?

MySQL database storage location: 1. If MySQL uses...