Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install nginx in centos7

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

How do I install nginx in centos7? In response to this problem, the editor summed up this article today, hoping to help more friends who want to solve this problem to find a more simple and feasible way.

1. Yum download dependency

Yum install-y pcre pcre-devel

Yum install-y zlib zlib-devel

Yum install gcc-c++-y

Yum install-y openssl openssl-devel

2. Download the nginx version, which can be specified.

Wget-c https://nginx.org/download/nginx-1.16.0.tar.gz

3. Decompress the nginx package

Tar xf nginx-1.16.0.tar.gz

Cd nginx-1.16.0/

4. Compile and install after entering the nginx directory (default compilation)

. / configure

Make

Make install

5. Installation completion verification

[root@iZ2zeicjgumlk2cuhf79wlZ nginx-1.16.0] # / usr/local/nginx/sbin/nginx-v

Nginx version: nginx/1.16.0

On the installation of nginx in centos7 steps to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report