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 offline for Linux

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces the relevant knowledge of "Linux how to install nginx offline". The editor shows you the operation process through an actual case. The operation method is simple and fast, and it is practical. I hope this article "how to install nginx offline for Linux" can help you solve the problem.

\ 1. First install the dependent library yum install-y gcc-c++ ``yum install-y pcre pcre- devel``yum install-y zlib zlib- devel``yum install-y openssl openssl-devel\ 2. Download the nginx installation package http://nginx.org/download/

\ 3. Upload the downloaded nignx source code package to the linux server and decompress it

\ 4. Enter the root directory after nginx is unzipped, and configure cd nginx-1.9.9. / configure-- after prefix=/usr/local/nginxconfigure is completed, there will be the following information, such as log files, configuration files, etc.

\ 5. Compile and install make & & make install\ 6. Nginx installed successfully

\ 7. Start nginx to check whether the configuration of nginx is correct

. / nginx/sbin/nginx-t

If the above two sentences appear, it means that nginx is configured with ok and can be started.

Cd nginx/sbin. / nginx has no log output, which means that the startup is normal. If there is an exception, please refer to the error log path prompted during configuration to view the error message.

You can view nginx processes

Ps-ef | grep nginx

\ 8. The default port for accessing nginx is 80, so you can enter ip directly to access it.

This is the end of the introduction to "how to install nginx offline in Linux". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

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

Development

Wechat

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

12
Report