Linux (Ubuntu) installation and perfect uninstall Nginx (whether to open the Nginx service) __linux

Source: Internet
Author: User
First, installation

If you have installed Apache or Tomcat and other 80-port services can be stopped first, or just start nginx will be used in the opening of the error, or you can modify the nginx.conf listen other ports first.
sudo apt-get update: Update

Apt-get-y Install Nginx: Installation, configuration file is/etc/nginx/nginx.conf

Service Nginx Start: Open Services two, uninstall

sudo apt-get–purge remove Nginx Third, to see if a service is opened, Nginx for example Linux each application run will produce a process, then we can see if the Nginx process exists to determine whether it started: PS -ef | grep nginx directly view the process ID:PS-C nginx-o PID (detects whether a service is on or off is recommended for this command, not on the ID) detect service that consumes 80 ports: NETSTAT-ANP | Grep:80 lsof-i:80 can also find out if a process is running on the 80-port process. Service Nginx Status
The results of the above command run as follows: You can clearly see the status of the Nginx service

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.