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 > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Description: the basic directory path of the software installation: / usr/local, so when you download the software, you can switch to this directory and download it directly.
1. Install the gcc gcc-c++ dependency package
Yum install-y gcc gcc-c++
two。 Download, compile and install the PCR library
Change to the usr/local directory to execute the command
Download the installation package
Wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.33/pcre-8.33.tar.gz
Extract the installation package
Tar-zxvf pcre-8.36.tar.gz
Compilation and installation
Cd pcre-8.36./configuremake & & make install
3. Download, compile and install the SSL library
Download the installation package
Wget http://www.openssl.org/source/openssl-1.0.1j.tar.gz
Decompress the package
Tar-zxvf openssl-1.0.1j.tar.gz
Compilation and installation
Cd openssl-1.0.1j./configmake & & make install
4. Download, compile and install the zlib dependent library
Download the installation package
Wget http://zlib.net/zlib-1.2.11.tar.gz
Extract the installation package
Tar-zxvf zlib-1.2.11.tar.gz
Compilation and installation
Cd zlib-1.2.11./configuremake & & make install
After the dependency package and environment are installed and configured, you need to install nginx
Installation of 5.nginx
Download the installation package
Wget http://nginx.org/download/nginx-1.8.0.tar.gz
Extract the installation package
Tar-zxvf nginx-1.8.0.tar.gz
Compilation and installation
Cd nginx-1.8.0./configure-user=nobody-group=nobody-prefix=/usr/local/nginx-with-http_stub_status_module-with-http_gzip_static_module-with-http_realip_module-with-http_sub_module-with-http_ssl_modulemake & & make install
(note: in the second compilation instruction:-- prefix=/usr/local/nginx specifies the directory where the compilation is installed. After the compilation is successful, the folder after nginx installation will be displayed in the / usr/local directory. You can delete the nginx-1.8.0 compilation file.)
6.nginx related operation commands
Change to the nginx directory
Cd / usr/local/nginx
Execute the following command
Start nginx
. / sbin/nginx
Check whether the nginx configuration file is correct
. / sbin/nginx-t
See as shown in the figure shows that the nginx configuration file is accurate
Stop nginx
Check the process number occupied by nginx and finish it.
Ps-ef | grep nginxkill-9 port number
Summary
The above is the detailed explanation of the installation and configuration tutorial of nginx under Centos7 introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to the website!
If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank 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.