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/01 Report--
How do I configure service startup in nginx? In view of this problem, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.
1. First go to the official website to download nginx and install it locally.
two。 Download Windows Service Wrapper (WinSW.NET4.exe (64), WinSW.NET2.exe (86)) according to your own system to download the corresponding
3. (1) change the name of the WinSW.NET4.exe to the nginx file you want
(2) to create an .xml file, you need to change the name of the file WinSW.NET4.exe to your own.
4. Open .xml and add the following paragraph (set the path to its own nginx path)
Nginx nginx nginx-nginx path D:/Software/nginx/nginxt/nginx.exe-p D:/Software/nginx/nginxtD:/Software/nginx/nginxt/logs/ roll
5. Open cmd and switch to your own nginx file directory through the command line or enter cmd directly in nginx
Run the command:
Nginx-service.exe install add service nginx-service.exe uninstall delete service
5.1 if the following problem occurs: if you do not have access rights, please find the command indicator, select to run as administrator, and use the command to switch d under the nginx directory
Command:
D: cd D:\ Software\ nginx\ nginxt
5.2 if it is the following: (indicates that the installation is successful)
Then open the service management (the service has not been started yet, you need to start the service)
5.3Then find (window10)
Open file: add 127.0.0.1 www.xxx.com (custom)
6. Test (enter access address) hint: if you can't access it, check to see if the service is started, and then troubleshoot other problems.
This is the answer to the question on how to configure the service startup in nginx. I hope the above content can be of some help to you. If you still have a lot of questions to solve, you can follow the industry information channel for more related knowledge.
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.