In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
What are the steps for installing nginx on a linux server? I believe there are many people do not understand, today, in order to let you know more about the steps of installing nginx on the linux server, so give you a summary of the following, let's look down together.
Step 1: install PCRE pcre-devel and Zlib first
PCRE (Perl Compatible Regular Expressions) is a Perl library, including a perl-compatible library of regular expressions. Nginx's http module uses pcre to parse regular expressions, so you need to install the pcre library on linux. Pcre-devel is a secondary development library developed using pcre. This library is also required for nginx. Command:
Yum install-y pcre pcre-devel
The zlib library provides many ways to compress and decompress. Nginx uses zlib to gzip the contents of the http package, so you need to install the zlib library on Centos.
Yum install-y zlib zlib-devel
After installing these two, you can install nginx, but if you have problems during installation, you may need to install GCC and OpenSSL. The following commands are provided:
Yum install gcc-c++yum install-y openssl openssl-devel
Step 2: install nginx,1.14.0
Wget-c https://nginx.org/download/nginx-1.14.0.tar.gz
Extract and enter the nginx directory
Tar-zxvf nginx-1.14.0.tar.gzcd nginx-1.14.0
Use the default configuration of nginx
. / configure
Compilation and installation
Makemake install
Find the installation path:
Whereis nginx
When you enter the sbin directory, you can see that there is an executable file, nginx, which is directly executed by. / OK.
After running, visit the server ip, and you can see the welcome page of nginx.
On the linux server installation of nginx steps is shared here, I hope that the above content can have a certain reference value, you can learn to apply. If you like this article, you might as well share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.