In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail how to look at the default installation path of apache under the linux system. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
If you install with the RPM package, the installation path should be in the / etc/httpd directory.
Apache configuration file: / etc/httpd/conf/httpd.conf can modify relevant access paths and configurations
Apache module path: / usr/sbin/apachectl startup module
Web directory: the storage path of / var/www/html project
If the source code installation is used, it is generally installed in the / usr/local/apache2 directory by default.
To start the apache error message, you need to check to see if the port is occupied, because the default apache starts port 80. For example, the default page of nginx is port 80 open.
The error message is as follows:
[root@localhost] # service httpd restartRedirecting to / bin/systemctl restart httpd.serviceJob for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl-xe" for details. [root@localhost ~] # service httpd statusRedirecting to / bin/systemctl status httpd.service ● httpd.service-The Apache HTTP Server Loaded: loaded (/ usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since three 2018-12-05 14:42:42 CST 11s ago Docs: man:httpd (8) man:apachectl (8) Process: 3640 ExecStop=/bin/kill-WINCH ${MAINPID} (code=exited, status=1/FAILURE) Process: 3639 ExecStart=/usr/sbin/httpd $OPTIONS-DFOREGROUND (code=exited, status=1/FAILURE) Main PID: 3639 (code=exited Status=1/FAILURE) Dec 05 14:42:42 localhost.localdomain httpd [3639]: (98) Address already in use: AH00072: make_sock: could not bind to address [:]: 80Dec 05 14:42:42 localhost.localdomain httpd [3639]: (98) Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0 Address already in use Dec 05 14:42:42 localhost.localdomain httpd [3639]: no listening sockets available Shutting down12 05 14:42:42 localhost.localdomain httpd [3639]: AH00015: Unable to open logs12 05 14:42:42 localhost.localdomain systemd [1]: httpd.service: main process exited, code=exited, status=1/FAILURE12 05 14:42:42 localhost.localdomain kill [3640]: kill: cannot find process "" December 05 14:42:42 localhost.localdomain systemd [1]: httpd.service: control process exited Code=exited status=112 05 14:42:42 localhost.localdomain systemd [1]: Failed to start The Apache HTTP Server.12 05 14:42:42 localhost.localdomain systemd [1]: Unit httpd.service entered failed state. December 05 14:42:42 localhost.localdomain systemd [1]: httpd.service failed. [root@localhost ~] #
You can see the Address already in use error and modify the port of the apache.
Edit / etc/httpd/conf/httpd.conf
Just restart it again.
On the linux system on the default installation path of apache how to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.