In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
In this article, the editor introduces in detail "the method of Nginx service installation and software upgrade". The content is detailed, the steps are clear, and the details are handled properly. I hope that this article "the method of Nginx service installation and software upgrade" can help you solve your doubts.
Experimental environment: [root@nginx ~] # cat / etc/redhat-release CentOS Linux release 7.4.1708 (Core) [root@nginx ~] # uname-r3.10.0-693.el7.x86_64 prepare a lower version of Nginx server
For installation in a lower version environment, please refer to:
Rookies can also complete the 0 basic deployment of Nginx services
Prepare and compile a new version of Nginx software
View the older version of Nginx:
[root@nginx nginx-1.10.3] # / app/nginx/sbin/nginx-Vnginx version: nginx/1.8.1built by gcc 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) built with OpenSSL 1.0.2k-fips 26 Jan 2017TLS SNI support enabledconfigure arguments:-- user=nginx-- group=nginx-- prefix=/app/nginx-1.8.1/-- with-http_stub_status_module-- with-http_ssl_module
Download the new version of Nginx service software:
[root@nginx] # wget-Q http://nginx.org/download/nginx-1.10.3.tar.gz
Enter the directory after decompression:
[root@nginx tools] # tar xf nginx-1.10.3.tar.gz [root@nginx tools] # cd nginx-1.10.3/
Precompile and compile:
[root@nginx nginx-1.10.3] #. / configure-- user=nginx-- group=nginx-- prefix=/app/nginx-1.8.1/-- with-http_stub_status_module-- with-http_ssl_ module [root @ nginx nginx-1.10.3] # the new version replaces the old version
Back up the old version of the executable:
[root@nginx ~] # mv / app/nginx/sbin/nginx / app/nginx/sbin/nginx.old [root@nginx nginx-1.10.3] # cp objs/nginx / app/nginx/sbin/
Check to see if the new version is working:
[root@nginx] # / app/nginx/sbin/nginx-tnginx: the configuration file / app/nginx-1.8.1//conf/nginx.conf syntax is oknginx: configuration file / app/nginx-1.8.1//conf/nginx.conf test is successful
Perform a smooth restart and view the version:
[root@nginx] # / app/nginx/sbin/nginx-s reload [root@nginx] # / app/nginx/sbin/nginx-Vnginx version: nginx/1.10.3built by gcc 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) built with OpenSSL 1.0.2k-fips 26 Jan 2017TLS SNI support enabledconfigure arguments:-- user=nginx-- group=nginx-- prefix=/app/nginx-1.8.1/-- with-http_stub_status_module-- with-http_ssl_module
Check the process:
[root@nginx] # ps-ef | grep nginxroot 9003 10 10:24? 00:00:00 nginx: master process / app/nginx/sbin/nginxnginx 11720 9003 0 11:24? 00:00:00 nginx: worker processroot 11724 1223 0 11:24 pts/0 00:00:00 grep-- color=auto nginx
Check the port:
[root@nginx ~] # ss-utpln | grep nginxtcp LISTEN 0 128 *: 80 *: * users: (("nginx", pid=11720,fd=6), ("nginx", pid=9003,fd=6)). This article "methods for installing Nginx services and software upgrades" has been introduced. If you want to master the knowledge of this article, you still need to practice and use it. If you want to know more about the articles, you are welcome to follow the industry information channel.
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.