In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Based on the introduction of the centos6.8 nginx installation tutorial, this paper focuses on its specific steps, the steps are simple and easy to use, and the content of the article is compact step by step. I hope you can get something according to this article.
Preparation condition
Yum install-y gcc-c++yum
Install-y pcre pcre-develyum
Install-y zlib zlib-develyum
Install-y openssl openssl-devel
Installation
Wget https://nginx.org/download/nginx-1.8.0.tar.gz
Tar zxvf nginx-1.8.0.tar.gz
Cd nginx-1.8.0
. / configure-prefix=/usr/local/nginx-with-http_ssl_module-with-http_stub_status_module-with-pcre
Make & & make install
View service path
Find/-name nginx
Enter the nginx installation path: cd / usr/local/nginx/sbin
Start the service
Start:
1.. / nginx
2. / usr/local/nginx/sbin/nginx
-c / usr/local/nginx/conf/nginx.conf
Either way is fine.
4. Stop:
Take it easy: kill-QUIT 19795 (Note: 19795 is the process number of Nginx)
Quick stop: kill-TERM 46968 (Note: 46968 is the process number of Nginx)
(force stop: pkill-9 nginx
. / nginx-s stop: this method is equivalent to finding out the nginx process id and then using the kill command to force the killing of the process.
. / nginx-s quit: in this way, the stop step is to stop after the nginx process has finished processing the task.
Stop and then start:. / nginx-s quit;. / nginx)
. Verify that the configuration file for nginx is correct:
1. Cd / usr/local/nginx/sbin enter the installation directory of nginx, and then execute. / nginx-t
Reload the configuration file:
. / nginx-s reload
View the nginx process:
1. Ps-ef | grep nginx
2.ps aux | grep nginx
After reading the above, have you mastered the method of installing centos6.8 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.