I reboot the RHEL7 on the AWS, the ftp and httpd was not working, ftp cannot connect and http://126.96.36.199/ website cannot open, was checking where the problem was,
1, checked the ftp and httpd service is up and running.. all are working fine.
service httpd status
service vsftpd status
netstat -ntulp | grep httpd
netstat -ntulp | grep ftpd
2, checking the local connection, working fine.
3, checking the EC2 security groups configuration, the port 80 and port 21 are all allowed.
4, found "virbr0" is up by "ifconfig" command, removed the virbr0 interface by reference to this link http://website-humblec.rhcloud.com/how-to-removedelete-virbr0/.
virsh net-destroy default
5, finally found the reason, the firewalld was up and running, not sure when I started this service..
firewall-cmd --add-service=ftp --permanent
firewall-cmd --add-service=http --permanent
or the simplest way to do this is as below, as the AWS has the firewall running already...