Home > Operation and Maintenance > Nginx > How to install nginx on centos7?

How to install nginx on centos7?

青灯夜游
Release: 2019-06-13 18:16:01
Original
16646 people have browsed it

How to install nginx on centos7?

1. Install relevant dependency packages.

yum install gcc -c++
yum install -y pcre pcre-devel
yum install -y zlib zlib-devel
yum install -y openssl openssl-devel
Copy after login

2. Install nginx

Download nginx package

wget -c https://nginx.org/download/nginx-1.10.1.tar.gz
Copy after login

Unzip and enter the installation package

How to install nginx on centos7?

Custom configuration

How to install nginx on centos7?

Compile and install

How to install nginx on centos7?

Find the installation path

How to install nginx on centos7?

Enter the installation path, start and stop nginx

How to install nginx on centos7?

Enter the local IP in the browser and see a screen indicating that the installation is successful.

How to install nginx on centos7?

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

Related labels:
source:php.cn
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