1. Installing the Apache Component
[email protected] shell]# Yum install httpd
2. After successful installation, detect the HTTPD process
[Email protected] shell]# ps-e |grep httpd
3. If not, enable the service
[Email protected] shell]# systemctl restart Httpd.service
4. Use the browser to access the native IP address, if the display link fails as follows:
This should be caused by a firewall-related setup problem. 5. Turn off and disable the firewall [[email protected] shell]# systemctl stop Firewalld.service #停止防火墙服务 [[email protected] desktop]# systemctl Disable Firewalld.service #禁用防火墙开机启动服务
Removed Symlink/etc/systemd/system/dbus-org.fedoraproject.firewalld1.service.
Removed symlink/etc/systemd/system/basic.target.wants/firewalld.service.6. Visit the website again to be able to login successfully
Note: If you still want to use Iptables for firewall configuration, be sure to do the following:
[email protected] desktop]# Yum install iptables-services
[Email protected] desktop]# Systemctl enable iptables
CENTOS7 install Apache HTTP Server cannot access how to resolve