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--
Nginx is a high-performance web server and a very easy to use reverse proxy server, which can achieve load balancing, dynamic and static separation and other strategies, which are widely used in linux.
Because nginx depends on pcre and zlib, you need to install pcre and zlib first when installing nginx (for convenience, I put the packages for pcre, zlib, and nginx in the same directory).
1. Install pcre
Download the tar.gz package from pcre's official website at https://sourceforge.net/projects/pcre/files/pcre/, and here I download: pcre-8.39.tar.gz
Tar-zxvf pcre-8.39.tar.gz cd pcre-8.39. / configure make make install
2. Install zlib
Download the tar.gz package from zlib's official website at http://zlib.net/, and here I download: zlib-1.2.8.tar.gz
Tar-xvf zlib-1.2.8.tar.gz cd zlib-1.2.8. / configure make make install
3. Install nginx
Download the tar.gz package from nginx's official website at http://nginx.org/en/download.html, and here I download: nginx-1.11.5.tar.gz
Tar-zxvf nginx-1.11.5.tar.gz cd nginx-1.11.5. / configure-sbin-path=/usr/local/nginx/sbin/nginx-- conf-path=/usr/local/nginx/conf/nginx.conf-- pid-path=/usr/local/nginx/sbin/nginx.pid-- with-http_ssl_module-- with-pcre=../pcre-8.39-- with-zlib=../zlib-1.2.8 make make install
At this point, nginx is installed.
4. Configure and start nginx
After the installation steps and directory settings above, the startup program of nginx is / usr/local/nginx/sbin/nginx, the configuration file is / usr/local/nginx/conf/nginx.conf, and the port and reverse proxy path can be modified in the configuration file.
The command to start nginx is:
/ usr/local/nginx/sbin/nginx-t / / Test whether the configuration of nginx.conf is correct / usr/local/nginx/sbin/nginx-c / usr/local/nginx/conf/nginx.conf / / start the nginx service according to the configuration in nginx.conf
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.
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.