搭建本地yum倉庫
安裝httpd服務
yum install httpd -y
重啟httpd服務
systemctl start httpd.service
關閉系統防火牆
systemctl stop iptables.service
httpd服務安裝完成
測試httpd服務是否能使用
使用FTP軟件鏈接服務器,把HTTP樣本放到/var/www/html目錄里,
在瀏覽器輸入http:// 服務器IP ,看是否能進入HTTP樣本網頁
如果不能打開網頁,需要重啟服務
systemctl restart httpd.service
再關閉防火牆
systemctl stop firewalld.service
