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

Whether the centos7 installation specifies to compile the nginx version

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

It is believed that many inexperienced people are at a loss about whether to specify the compilation of nginx version for centos7 installation. Therefore, this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

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

After reading the above, do you know whether the centos7 installation specifies the method of compiling the nginx version? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

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