In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "CentOS how to quickly install Nginx server", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "CentOS how to quickly install Nginx server" bar!
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:
If you can see nginx's welcome page normally, it means that nginx has been installed successfully.
Thank you for reading, the above is "CentOS how to quickly install Nginx server" content, after the study of this article, I believe you on CentOS how to quickly install Nginx server this problem has a deeper understanding, the specific use of the need for you to practice and verify. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.