Home>Article>Operation and Maintenance> 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

Custom configuration

Compile and install

Find the installation path

Enter the installation path, start and stop nginx

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

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!