天天看點

apache

website網站

靜态網站(不帶資料庫,不能實作資料互動):網頁檔案名的字尾(擴充名)是     .html     .htm

動态網站(帶資料庫,可實作資料互動):cgi、shell、python、java、php等程式寫的: .php     .jps     .net

apache基本介紹:

apache http server(簡稱apache),apache是世界使用排名第一的web伺服器軟體。它可以運作在幾乎所有廣泛使用的計算機平台上,由于其跨平台和安全性被廣泛使用,是最流行的web伺服器端軟體之一。它快速、可靠并且可通過簡單的api擴充,将perl/python等解釋器編譯到伺服器中。

apache,nginx,tomcat并稱為網頁服務三劍客,可見其應用度之廣泛。

web網站伺服器軟體:

apache(httpd)、nginx、iis(微軟-internet  information server)、tomcat(sun公司--〉oracle

開源架構(運作平台環境):

lamp:           linux+apache+mysql+php

lnmp:           linux+nginx+mysql+php

wamp:         windows+apache+mysql+php

wnmp:         windows+nginx+mysql+php

apche部署思路:

安裝軟體包

yum install -y httpd

啟動服務

systemctl restart httpd

systemctl enable httpd

檢視apach配置檔案

rpm -qc httpd

/etc/httpd/conf/httpd.conf       主配置檔案

       /etc/httpd/conf.d/*.conf            子配置檔案

           /etc/httpd/conf.d/welcome.conf  預設配置頁面

建立首頁并将其加載到資料目錄中

/var/www/html      .html  

apache檔案共享

cd /etc/httpd/conf.d

ls

mv  -v  welcome.conf   welcome.conf.bak

cp  -v  /etc/host*   /var/www/html

ln  -s   /    /var/www/html/gen     給/根目錄創快捷方式名稱/var/www/html/gen

systemctl  restart  httpd

elinks   192.168.11.11

打開浏覽器:輸入  http://192.168.11.11回車

下一篇: Git