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

How to install nginx on centos7?

青灯夜游
青灯夜游 Original
2019-06-13 18:16:01 16531browse

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

2. Install nginx

Download nginx package

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

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!

Statement:
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