CentOS 7.0 Minimized installation Nginx source code compilation and installation procedures are documented. What is the reason why this is not accessible?

Source: Internet
Author: User
Novice want to direct wget download source code Edit
After compiling, there is no response how to view normal open
View the process display of three

[Root@localhost sbin]# ps-ef|grep nginxroot     13536     1  0 14:14?        00:00:00 nginx:master process./nginxnobody   13537 13536  0 14:14?        00:00:00 nginx:worker processroot     13540  2281  0 14:16 pts/0    00:00:00 grep--color=auto nginx

The first one was my compilation.

Firewall Iptables I see there's no limit. 80 ports

I direct access to http://192.168.1.103/
I can't.

IP's right.
[Root@localhost sbin]# IP addr1:lo: 
 
  
   
   MTU 65536 qdisc noqueue State UNKNOWN    link/loopback 00:00:00:00:00 : BRD 00:00:00:00:00:00    inet 127.0.0.1/8 scope host lo valid_lft forever Preferred_lft forever Inet6    :: 1/  $ scope Host       Valid_lft forever preferred_lft forever2:enp2s0: 
  
   
    
    MTU Qdisc pfifo_fast State up Qlen    link/ether 6c:62:6d:73:e6:4a brd ff:ff:ff:ff:ff:ff    inet 192.168.1.103/24 BRD 192.168.1.255 Scope Global Enp2s0       Valid_lft Forever Preferred_lft Forever    inet6 fe80::6e62:6dff:fe73:e64a/64 scope link       valid_ LfT Forever Preferred_lft Forever
  
   
 
  


The entire process is documented.
Http://www.cnblogs.com/xxx91hx/p/4245901.html

The article is a bit long for good people to see ~ to give guidance on the exactly why checked for a few days did not get it is not to think of

CentOS is said to have nginx itself to first uninstall itself in the installation so how to view?
Ask God for help to see how to get the official server is Yum installed?
or manually compiled?


Reply to discussion (solution)

This seems to have succeeded. Process has been.
You wget the native IP on the server to see if you can get the content.

This seems to have succeeded. Process has been.
You wget the native IP on the server to see if you can get the content.


Excuse me, is this normal? I lan a machine is so installed on another machine access to IP should be possible AH
Seems to be looking for the index.html I directly on the other machine access http://192.168.1.103/prompt cannot access
Firewall I'm looking at that, right? No 80-port rule
[Root@localhost sbin]# iptables-nl--line-numberchain INPUT (policy ACCEPT) num Target prot opt source Destination1 Accept All--0.0.0.0/0 0.0.0.0/0 ctstate Related,established2 accept A LL--0.0.0.0/0 0.0.0.0/03 input_direct All--0.0.0.0/0 0.0.0.0/04 Input_zones_source A LL--0.0.0.0/0 0.0.0.0/05 input_zones All--0.0.0.0/0 0.0.0.0/06 ACCEPT ICMP--0. 0.0.0/0 0.0.0.0/07 REJECT All--0.0.0.0/0 0.0.0.0/0 reject-with Icmp-host-prohi Bitedchain FORWARD (policy accept) num Target prot opt source Destination1 ACCEPT All--0.0.0.    0/0 0.0.0.0/0 ctstate related,established2 ACCEPT All--0.0.0.0/0 0.0.0.0/03 Forward_direct All – 0.0.0.0/0 0.0.0.0/04 Forward_in_zones_source All – 0.0.0.0/0 0.0.0. 0/05 Forward_in_zones  All--0.0.0.0/0 0.0.0.0/06 Forward_out_zones_source All--0.0.0.0/0 0.0.0.0/0 7    Forward_out_zones All--0.0.0.0/0 0.0.0.0/08 ACCEPT ICMP--0.0.0.0/0 0.0.0.0/09 REJECT All--0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibitedchain OUTPUT (Policy ACCEPT) Num Target prot opt source Destination1 output_direct All--0.0.0.0/0 0.0.0.0/0chain Forward_in_zones (1 references) num target prot opt source Destination1 fwdi_public All--0.0.0.0 /0 0.0.0.0/0 [goto]2 fwdi_public All--0.0.0.0/0 0.0.0.0/0 [Goto]chain FO Rward_in_zones_source (1 references) num target prot opt SOURCE destinationchain forward_out_zones (1 re ferences) num target prot opt source Destination1 fwdo_public All--0.0.0.0/0 0.0.0.0/ 0 [Goto]2 FWdo_public All--0.0.0.0/0 0.0.0.0/0 [Goto]chain forward_out_zones_source (1 references) Num Targ               Et prot opt source Destinationchain forward_direct (1 references) num target prot opt source Destinationchain Fwdi_public (2 references) num target prot opt source Destination1 Fwdi_publi C_log All – 0.0.0.0/0 0.0.0.0/02 Fwdi_public_deny All – 0.0.0.0/0 0.0.0.0/03 Fwdi_publ               Ic_allow All--0.0.0.0/0 0.0.0.0/0chain Fwdi_public_allow (1 references) num target prot opt source Destinationchain Fwdi_public_deny (1 references) num target prot opt source Destinationchain   Fwdi_public_log (1 references) num target prot opt source Destinationchain fwdo_public (2 references) num Target prot opt source Destination1 fwdo_public_log All-0.0.0.0/0 0.0.0.0/02 FW Do_public_deny All-- 0.0.0.0/0 0.0.0.0/03 Fwdo_public_allow All--0.0.0.0/0 0.0.0.0/0chain Fwdo_public_allow (1 R eferences) num target prot opt source Destinationchain fwdo_public_deny (1 references) NUM Target PR OT opt source Destinationchain fwdo_public_log (1 references) num target prot opt source D   Estinationchain Input_zones (1 references) num target prot opt source Destination1 in_public All-- 0.0.0.0/0 0.0.0.0/0 [goto]2 in_public All--0.0.0.0/0 0.0.0.0/0 [goto]c Hain Input_zones_source (1 references) num target prot opt SOURCE Destinationchain input_direct (1 refer ences) num target prot opt source Destinationchain in_public (2 references) num target prot opt sour Ce destination1 in_public_log All – 0.0.0.0/0 0.0.0.0/02 In_public_deny All – 0.0.0 .0/0 0.0.0.0/In_public_allow All--0.0.0.0/0 0.0.0.0/0chain In_public_allow (1 references) num target prot opt SOURCE Destination1 ACCEPT TCP--0.0.0.0/0 0.0.0.0/0 TCP dpt:22 ctstate NEW Chain In_public_deny (1 references) num target prot opt source Destinationchain in_public_log (1 referen CES) num target prot opt source Destinationchain output_direct (1 references) num target prot opt so Urce Destination Copy Code


[Root@localhost/]# wget localhost--2015-01-24 17:04:52--  http://localhost/is parsing host localhost (localhost) ...:: 1, 127.0.0.1 connecting to localhost (localhost) |::1|:80 ... Failed: Connection denied. connecting localhost (localhost) |127.0.0.1|:80 ... is connected. An HTTP request has been made and is waiting for a response ... $ OK Length: 612 [text/html] saving to: "index.html" 100%[======================================>] 612         --.-k/s time 0s2015-01-24 17:04:52 (91.0 MB/s)-Saved "index.html" [612/612])


And this nginx, this is a two process? The normal state asks the big God you to look at two eyes AH ~ has been engaged for several days not to understand ~
[Root@localhost sbin]# lsof-i:80command   PID   USER   FD   TYPE DEVICE size/off NODE namenginx   13536   root    6u  IPv4  32434      0t0  TCP *:http (LISTEN) nginx   13548 Nobody    6u  IPv4  32434      0t0  TCP *:http (LISTEN)

If the direct wget IP address is absolutely no problem

[Root@localhost/]# wget 192.168.1.103--2015-01-24 17:10:40--  http://192.168.1.103/is connecting 192.168.1.103:80 ... connected. An HTTP request has been made and is waiting for a response ... $ OK Length: 612 [text/html] saving to: "INDEX.HTML.1" 100%[======================================>] 612         --.-k/s time 0s2015-01-24 17:10:40 (84.4 MB/s)-Saved "INDEX.HTML.1" [612/612])

Want to vomit blood quickly ask the big God to help look at the eye ah why I this machine can not access the volume ~ is the firewall problem? I looked at it like that, right?

Finally solved the ~

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.