Use yum to install nginx service

王林
Release: 2020-09-30 16:28:15
forward
2968 people have browsed it

Use yum to install nginx service

1. Preparation before installation:

(Recommended tutorial: nginx tutorial)

yum install yum-utils
Copy after login

2. Add source

Go to the cd /etc/yum.repos.d/ directory

Create a new vim nginx.repo file

Enter the following information

Use yum to install nginx service

3. Install Nginx

Use yum search nginx to see if the source has been added successfully. If successful, execute the following command to install nginx.

yum install nginx
Copy after login

After installation, rpm -qa | grep nginx View

Start nginx: systemctl start nginx

Add to boot: systemctl enable nginx

View The status of nginx: systemctl status nginx

The above is the detailed content of Use yum to install nginx service. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!