搭建一個Web Server站點

題:搭建一個Web Server站點、安裝web服務,並在本地建立index.html測試html

一、安裝http服務web

yum -y install httpd

二、進入網站目錄測試

cd /var/www/html/

三、建立索引文件網站

echo "test" > index.html

四、啓動服務,設置開機自啓動spa

systemctl start httpd.service
systemctl enable httpd.service

檢查:firefox

firefox http://127.0.0.1code

 


更多詳情:http://www.javashuo.com/article/p-alnqayjg-e.htmlhtm

相關文章
相關標籤/搜索