In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces you how to install nginx under the Linux environment, the content is very detailed, interested friends can refer to, hope to be helpful to you.
1. The environment required for installation
/ / install gccyum install gcc-c++// install PCRE pcre-develyum install-y pcre pcre-devel// install zlibyum install-y zlib zlib-devel// install Open SSLyum install-y openssl openssl-devel
2. Create the nginx directory and download the installation package
/ / enter usr/local directory cd / usr/local// create nginx directory mkdir nginx// enter nginx directory cd nginx// download tar package wget http://nginx.org/download/nginx-1.13.7.tar.gz// extract tartar-xvf nginx-1.13.7.tar.gz
3. Install nginx
/ / enter the nginx directory cd / usr/local/nginx/nginx-1.13.7// to execute the command. / configure// executes the make command (if the execution is not successful, please check whether the first four are installed successfully) make// executes the make install command make install
4. Start nginx
/ / enter the / usr/local/nginx/sbin directory and type. / nginx to start nginx./nginx// to close nginx./nginx-s quit or. / nginx-s stop// to restart nginx./nginx-s reload// to view the nginx process ps-ef | grep nginx
5. Set to enable self-startup
/ / Edit vim / etc/rc.local// add this line at the bottom / usr/local/nginx/sbin/nginx on how to install nginx in Linux environment to share here, I hope the above content can be helpful to you, you can learn more knowledge. If you think the article is good, you can 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.