Nginx can't running on CentOS 7.

Issues related to applications and software problems
User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Nginx can't running on CentOS 7.

Post by avij » 2017/06/18 10:24:28

hack3rcon wrote:Can it cause any problem?
Did your nginx config work before making those changes?

Is this perhaps a routing issue? Can you ping your server from the clients' network? Can you ssh into your server from the clients' network? If not, perhaps you should fix the routing first before tinkering with nginx.

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: Nginx can't running on CentOS 7.

Post by hack3rcon » 2017/06/18 11:04:01

avij wrote:
hack3rcon wrote:Can it cause any problem?
Did your nginx config work before making those changes?

Is this perhaps a routing issue? Can you ping your server from the clients' network? Can you ssh into your server from the clients' network? If not, perhaps you should fix the routing first before tinkering with nginx.
Thank you so much for your replies.
Problem solved via adding these two rules:

Code: Select all

# firewall-cmd --permanent --add-port={445/tcp,445/udp}
# firewall-cmd --permanent --add-port={80/tcp,80/udp}
My problem is that "iptables" is stopped but how "firewalld" worked? !!!

mghe
Posts: 766
Joined: 2015/11/24 12:04:43
Location: Katowice, Poland

Re: Nginx can't running on CentOS 7.

Post by mghe » 2017/06/18 14:10:23

# yum history list firewalld

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: Nginx can't running on CentOS 7.

Post by hack3rcon » 2017/06/19 05:34:18

mghe wrote:# yum history list firewalld

Code: Select all

[root@localhost ~]# yum history list firewalld
Loaded plugins: fastestmirror
ID     | Login user               | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
     2 | root <root>              | 2017-06-17 04:37 | I, U           |  273 EE
     1 | System <unset>           | 2017-06-17 03:27 | Install        |  451   
history list

mghe
Posts: 766
Joined: 2015/11/24 12:04:43
Location: Katowice, Poland

Re: Nginx can't running on CentOS 7.

Post by mghe » 2017/06/19 09:48:41

First transaction was made by system where firewalld was installed and probably enabled.

Post Reply