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

Compilation, installation and startup of nginx

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

Share

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

Nginx can be compiled and run on most UnixLinux OSes and is ported to Windows. Nginx 1.4.0 stable version has been released on April 24, 2013, under normal circumstances, for new sites, it is recommended to use the latest stable version as the production version, the existing site upgrade urgency is not high.

Nginx source code uses a 2-clause BSD-like license.

Nginx is a powerful, high-performance Web and reverse proxy service with many excellent features:

Nginx is a good alternative to Apache services when connections are highly concurrent: Nginx is one of the software platforms often chosen by webhosting business owners in the United States. To be able to support up to 50,000 concurrent connections, thanks to Nginx for choosing epoll and kqueue as our development model.

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

Unzip nginx package tar-xvf nginx-1.17.8.tar.gz

cd nginx-1.17.8

First yum install nginx dependencies:

yum -y install gcc gcc-c++

yum -y install pcre-devel openssl openssl-devel

Next 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

As you can see below, the compilation succeeded.

--prefix=/jay/nginx compile path to install nginx

--user=www --group=www nginx user

The requested URL/cd /jay/nginx/was not found on this server.

You can see the following directories in nginx

Next up is 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