In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article shows you how to solve the problem that the Plesk panel Nginx can not be started automatically, the content is concise and easy to understand, it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
Problem description:
The Nginx proxy for Plesk is disabled and Apache is used separately, because the bandwidth and number of connections can be set for each site when using Apache alone. After re-enabling the Nginx agent, it is found that Nginx does not boot automatically after restarting the server. The following error occurs when running systemctl status nginx.service, but it can be started manually through systemctl start nginx.servie.
[root@www] # systemctl status nginx.service ● nginx.service-Startup script for nginx service Loaded: loaded (/ usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since five 2018-01-12 21:19:58 CST; 25s ago January 12 21:19:57 www.ezloo.com systemd [1]: Starting Startup script for nginx service... January 12 21:19:58 www.ezloo.com nginx [844]: nginx: the configuration file / etc/nginx/nginx.conf syntax is ok January 12 21:19:58 www.ezloo.com nginx: nginx: [emerg] bind () to 172.31.191.115 15 www.ezloo.com nginx (99: Cannot assign requested address) January 12 21:19:58 www.ezloo.com nginx: nginx: configuration file / etc/nginx/nginx.conf test failed January 12 21:19:58 Www.ezloo.com systemd [1]: nginx.service: control process exited Code=exited status=1 12 21:19:58 www.ezloo.com systemd [1]: Failed to start Startup script for nginx service. 21:19:58 www.ezloo.com systemd [1]: Unit nginx.service entered failed state. 21:19:58 www.ezloo.com systemd [1]: nginx.service failed.
Solution:
Edit / etc/sysctl.conf and add the following line of code:
# allow processes to bind to the non-local address net.ipv4.ip_nonlocal_bind = 1
Run it again:
Sysctl-p / etc/sysctl.conf
When you restart the server, you find that Nginx can start normally.
Solve the problem that the Plesk panel Nginx cannot be started automatically
According to reason, on a server, simply using Apache uses less memory and CPU than using Nginx agents. After all, Nginx still takes up resources. I don't know why Plesk uses Nginx as a front-end agent. In addition, since we use Nginx as a proxy, we should be allowed to separate the front and back end, that is, the back-end server is on another server.
The above content is how to solve the problem that the Plesk panel Nginx can not be started automatically. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, 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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.