In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the knowledge about how to quickly install Nginx server in CentOS 6.6. in the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
one。 Download nginx
Download the latest version of nginx from nginx's website (http://nginx.org/en/download.html). Here I download nginx-1.9.12.
When the download is complete, you get a compressed package as shown in the following figure
Upload the tar package of nginx to the linux server, as shown below:
two。 Install nginx
2.1. Installation premise
Before installing nginx, you need to make sure that the system has GCC, openssl-devel, pcre-devel, and zlib-devel software installed.
1. Software required for installation: yum-y install zlib zlib-devel openssl openssl--devel pcre pcre-devel
The installation process is shown in the following figure:
2.2. Install the dependent package for nginx: yum install geoip gd libxpm libxslt
The installation process is shown in the following figure:
2.2. Extract and install nginx
Go to the directory where nginx's installation package is located and extract the nginx package, as shown in the following figure:
After the decompression, an additional nginx-1.9.12 directory is added. Enter the nginx-1.9.12 directory to view the contents, as shown below:
The installation of source code generally consists of three steps: configure, make, and make install.
1. Execute. / configure
. / configure command executed successfully
two。 Perform the make operation, as shown in the following figure:
The make operation is completed.
3. Execute the make install command to install.
2.3. Verify that the installation of nginx is successful
1. View the nginx installation path (whereis nginx)
two。 Start nginx
Enter http://centos server ip in the browser to access nginx. For example, my server ip address is 115.159.95.35, and enter http://115.159.95.35/ to access the installed nginx. The access result is as follows:
This is the end of the content of "how to quickly install the Nginx server in CentOS 6.6.6". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.