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

Nginx installation documentation

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

First download the latest stable version of nginx http://nginx.org/en/download.html on the official website.

Extract the nginx package tar-xvf nginx-1.17.8.tar.gz

Cd nginx-1.17.8

First yum installs the nginx dependency:

Yum-y install gcc gcc-c++

Yum-y install pcre-devel openssl openssl-devel

Then compile:

/ configure-- with-stream-- with-stream_ssl_module-- with-stream_realip_module-- prefix=/jay/nginx-- with-http_ssl_module-- user=www-- group=www

Make & & make install

You can see that the compilation is successful as follows

-- the path where prefix=/jay/nginx compiles and installs nginx

-user=www-group=www nginx user

Cd / jay/nginx can go to the nginx installation directory

You can see that there are several directories in nginx

Next, start nginx

/ jay/nginx/sbin/nginx

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