In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the relevant knowledge of "installing Nginx server instance analysis on Ubuntu system". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Install nginx
Sudo apt-get install nginx
If you have installed apache and apache is running, please modify the configuration file first (no students can skip it directly):
# Open the configuration file sudo vim / etc/nginx/sites-available/default
Then click the following two changes (to avoid conflicts with apache):
Server {# modify here I will change 80 to 88 listen 88 default_server; # and here to your desired listening port listen [:]: 88 default_server ipv6only=on;.
At this point, we test whether nginx is installed successfully. If you do not make the above changes, type localhost directly in the browser. If you change it, add the port. Mine is localhost:88. If the following interface appears, the installation will be successful:
Startup and shutdown of nginx
Start nginx:
# nginx-c / etc/nginx/nginx.conf closes the nginx# nginx-s stop rereading configuration file # nginx-s reload# pkill-hup nginx reopens the log file # nginx-s reopen# pkill-usr1 nginx can also download the / etc/init.d/nginx file in the nginx rpm package and modify the path to use: # service nginx {start | stop | status | reload | configtest |} "install Nginx server instance analysis on Ubuntu system". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.