CENTOS7 install Apache HTTP Server cannot access how to resolve

Source: Internet
Author: User
Tags symlink

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

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.