In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of "how to deploy an Apache server in RHEL6". The editor shows you the operation process through an actual case. The method of operation is simple, fast and practical. I hope this article "how to deploy an Apache server in RHEL6" can help you solve the problem.
Installation of Apache
If you did not choose to install the http-2.2.15-15.e16_2.1.i686 package when installing RHEL 6, you need to copy the appropriate files from the installation CD to the current directory, and then install it with the following command:
# rpm-ivh http-2.2.15-15.e16_2.1.i686.rpm after successful installation, there are several important files and directories: / etc/httpd/conf/httpd.conf:Apache main configuration file / etc/httpd/logs:Apache log storage directory / etc/httpd/modules:Apache module storage directory / usr/lib/httpd/modules:Apache module also stores / usr/sbin/apachectl:Apache control scripts in this directory Used for start, stop, restart and other operations. / usr/sbin/httpd:Apache server process program file / usr/share/doc/httpd-2.2.15:Apache documentation directory / an example website provided by var/www:Apache
In addition, there should be an Apache help manual package called httpd-manual-2.2.15-15.e16_2.1.noarch.rpm on the installation disk, which can be installed with the following command:
# rpm-ivh httpd-manual-2.2.15-15.e16_2.1.noarch.rpm
After installation, a help manual in the form of a web page file appears in the / var/www/manual directory.
Operation of Apache
After the RPM package is installed, Apache can work using the example configuration file. Enter the following command to start the httpd process:
# / usr/sbin/apachect1 start
If you want to run Apache automatically when you boot, you can create a Linux startup file to link to a script file named httpd in the / etc/rc.d/init.d directory. You can check whether the httpd process has been started with the following command:
# ps-eaf | grep httpd
Then enter the following command to view the Apache listening port:
# netstat-an | grep: 80tcp 0 0: 80:: * LISTEN
You can see that port 80 is already listening. Also to ensure that the client can access the Apache server, enter the following command:
# iptables-I INPUT-p tcp-- dport 80-j ACCEPT
After the above process is completed, you can access the Apache server on the client using a browser. Under normal circumstances, entering 127.0.0.1 on the browser will bring up the test page of Apache, as shown in the following figure:
This is the end of the introduction on "how to deploy an Apache server in RHEL6". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
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.