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

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

Share

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

1. Installation environment

2. Create a user

3. Installation Dependency

4, Install nginx

1. Installation environment

CentOS Linux release 7.2.1511

Installation directory: /application

Installation method: compile installation

Installation version: nginx-1.12.1

2. Create a user

useradd -s /sbin/nologin -M nginx

3. Installation Dependency

yum install pcre pcre-devel openssl openssl-devel -y

4, Install nginx

wget -q http://nginx.org/download/nginx-1.12.1.tar.gz -P /toolscd /tools/ && tar xf nginx-1.12.1.tar.gzcd nginx-1.12.1./ configure --prefix=/application/nginx-1.12.1 --user=nginx --group=nginx --with-http_ssl_module --with-http_stub_status_modulemake && make installcd /applicationln -s nginx-1.12.1/ nginxcd nginx./ sbin/nginx

5. Verification

Browser Enter Server Address

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