In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
CentOS how to install nginx 7, I believe that many inexperienced people do not know what to do, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
The current linux download address for the latest version of nginx is:
Http://nginx.org/download/nginx-1.13.9.tar.gz
Execute the wget command to download nginx
Wget http://nginx.org/download/nginx-1.13.9.tar.gz
Extract the installation package and execute tar zxvf nginx-1.13.9.tar.gz
Go to cd nginx-1.13.9 under the decompressed directory of nginx
Execute the. / configure command in the directory
If you encounter in the process
. / configure: error: the HTTP rewrite module requires the PCRE library error
Execute yum-y install pcre-devel and re-execute. / configure after installation is complete
After the installation is complete, check the installation directory of nginx and execute whereis nginx
Execute the-t command in the nginx directory to test whether nginx is installed successfully
Use the ps aux | grep nginx command to view nginx process information
Use the netstat-nltp command to view the port that nginx listens on
Edit the nginx configuration file to map the ip address to the configuration file to ensure that the host can access the nginx website through ip
Vi / usr/local/nginx/conf/nginx.conf
Add ip configuration
To use the nginx command, you can create a soft link execution in the bin directory
Ln-s / usr/local/nginx/sbin/nginx / bin/nginx
Just execute nginx-v directly.
After reading the above, have you mastered how CentOS 7 installs nginx? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
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.