Under CentOS7 install httpd service

1. Install httpd service

yum install httpd -y

2. restart the httpd service

systemctl start httpd.service

3. Turn off the firewall

systemctl stop iptables.service

4. Test

Html files to be placed, var / www / html directory

Open the browser test: http: // ip

Guess you like

Origin www.cnblogs.com/setout/p/11075324.html