如題,台中市長我恨你,我要放颱風假阿~~~~ 我就不說我還有VCP還沒讀完阿~~~~~~~
sudo yum install httpd
sudo yum install httpd-devel
sudo systemctl start httpd #開啟Apache
sudo systemctl restart httpd #重啟Apache
sudo systemctl enable httpd #預設開機後重啟Apache
sudo systemctl status httpd #查看Apache狀態
sudo systemctl stop httpd #關閉Apache
於瀏覽器中輸入其主機IP應可看到此畫面
若無看到此畫面,請查詢Centos7 firewall(防火牆)設定
應該是被防火牆預設擋住,需增加條件開啟HTTP存取權
systemctl status firewalld
sudo firewall-cmd --add-rich-rule="rule family="ipv4" source address="140.134.25.0/24" service name="http" accept" --permanent
sudo firewall-cmd --reload
sudo firewall-cmd --list-all