Apache+mod_jk+Tomcat (1)-----Apache turns up

I have used it many times, but it has not been properly organized. I feel that some things are not organized and will never be my own. It is like traveling. If you don't take pictures, you have never been there. . So I decided to sort it out. . . .

 

There is a lot of content, and I didn't know how to organize it for a while, so I started to turn it around. . . .

 

Apache installation (Linux)

1. Configure the local Yum source through the ISO image, and then install it through the Yum command.

  1).yum install httpd-2.4.6-*.x86_64

  2).rpm -qa|grep httpd*
      [root@localhost yum.repos.d]# rpm -qa|grep httpd*
      httpd-tools-2.4.6-40.el7.x86_64
      httpd-2.4.6-40.el7.x86_64

 2. Start apache with the default configuration

      systemctl status httpd

      systemctl start http

3. Confirm whether Apache is started normally. (default port number 80)

   curl http://localhost/

Result: Apache's default screen is displayed normally

 

4. Put a static html file under DocumentRoot (/var/www/html by default) to confirm whether it can be accessed normally

   curl http://localhost/testApache.html

Result: The static html screen is displayed normally

 

5. Because it is under Linux, I expect to be able to access it under my own local (windows), which is more appropriate to the actual situation.

So enter the following URL in your local browser

http://192.168.100.29/

Result: The page cannot be displayed

http://192.168.100.29/testApache.html

Result: The page cannot be displayed

But these are not installation problems. After investigation, the screen can be displayed normally.

 

To sum up, if there are no special requirements, after installation, start the httpd service directly without any configuration, and Apache can start up.

 

How to solve the above problem?

1. Is it because of the problem of my local proxy (for security reasons, the company does not allow us to access the Internet, but only allows us to access through the proxy...), I confirmed that the item of local access without proxy has been checked Selected, and the address of 192.168* is set in the exclusion settings of the proxy.
2. Is there a restriction on apache, only allowing it to access locally? So I re-confirmed the httpd.conf file, but it is not. Listen 80 is set, and all addresses can access port 80. I also turned over the Log and found no abnormal information
. 3. So I thought again, or I should telnet from the local windows machine. . . . Actually I don't use this command very often.

I just listened to what other people often say, so I tried to check it on the Internet, and executed the following command in the command line
telnet 192.168.100.29----------------> 23 port access failed
Telnet 192.168.100.29 80------------->80 port access failed
I suddenly thought, is the firewall open, systemctl status firewalld, see if it is really it,
turn off the firewall and try again Once again, it's fine. .

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326416100&siteId=291194637