Centos7.0 minimizes installation of nginx source code. the installation process is recorded and cannot be accessed. why?

Source: Internet
Author: User
Centos7.0 minimizes installation of nginx source code. the installation process is recorded and cannot be accessed. why? Newbie wants to download and edit source code directly using wget
After compilation, no response is returned. how can I check whether the function is enabled normally?
View three processes

[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 is compiled by me.

The firewall iptables does not limit port 80 either.

I directly access http: // 192.168.1.103/
No.

The IP address is correct.
[root@localhost sbin]# ip addr1: lo: 
 
   mtu 65536 qdisc noqueue state UNKNOWN    link/loopback 00: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/128 scope host       valid_lft forever preferred_lft forever2: enp2s0: 
  
    mtu 1500 qdisc pfifo_fast state UP qlen 1000    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 recorded
Http://www.cnblogs.com/xxx91hx/p/4245901.html

The article is a bit long. please take a look at it ~ Why haven't I figured it out for several days?

In centos, is there nginx? do you need to uninstall nginx and install nginx first? how can I check it?
Could you please help me to find out how to install yum on the official server?
Or manually compiled?


Reply to discussion (solution)

This seems to have been successful. All processes are available.
You can wget the local IP address on the server to see if the content can be obtained.

This seems to have been successful. All processes are available.
You can wget the local IP address on the server to see if the content can be obtained.


Excuse me, is this normal? I have a local area network (LAN) sub-host installed in this way and access the IP address on another machine should be OK?
It seems that the index.html is also found. I directly access http: // 192.168.1.103/on another server, prompting that the server cannot be accessed.
Does the firewall seem to have no rules for port 80?
[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     all  --  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  all  --  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-prohibitedChain 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 FORWARD_IN_ZONES_SOURCE (1 references)num  target     prot opt source               destinationChain FORWARD_OUT_ZONES (1 references)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  target     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_public_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_public_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    FWDO_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 references)num  target     prot opt source               destinationChain FWDO_public_deny (1 references)num  target     prot opt source               destinationChain FWDO_public_log (1 references)num  target     prot opt source               destinationChain 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]Chain INPUT_ZONES_SOURCE (1 references)num  target     prot opt source               destinationChain INPUT_direct (1 references)num  target     prot opt source               destinationChain IN_public (2 references)num  target     prot opt source               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/03    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 NEWChain IN_public_deny (1 references)num  target     prot opt source               destinationChain IN_public_log (1 references)num  target     prot opt source               destinationChain OUTPUT_direct (1 references)num  target     prot opt source               destination 


[Root @ localhost/] # wget localhost -- 17:04:52 -- http: // localhost/parsing host localhost (localhost )...: 1, 127.0.0.1 is connecting localhost (localhost) |: 1 |: 80... failed: connection rejected. Connecting localhost (localhost) | 127.0.0.1 |: 80... connected. An HTTP request has been sent and is waiting for response... 200 OK Length: 612 [text/html] is being saved: export index.html "100% [========================================== ==>] 612 --. -0s2015-01-24 17:04:52 (91.0 MB/s) for K/s-saved javasindex.html "[612/612])


What else is nginx two processes? Is it normal? please take a look ~ I have been confused for several days ~
[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 correct

[Root @ localhost/] # wget 192.168.1.103 -- 17:10:40 -- http: // 192.168.1.103/is connecting 192.168.1.103: 80... already connected. An HTTP request has been sent and is waiting for response... 200 OK Length: 612 [text/html] is being saved to: paiindex.html. 1 "100% [================================================= ==>] 612 --. -when the value is-K/s, 0s2015-01-24 17:10:40 (84.4 MB/s)-saved javasindex.html. 1 "[612/612])

I want to vomit blood quickly. could you please help me see it? why can't I access this machine ~ Is it a Firewall problem? is it correct with the method above ~

Finally Solved ~

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.