1 用yum 下載 yum -y install httpd mariadb-server mariadb php php-mysql gd php-gd
mkdir /var/www/html/a.org 創建a.org檔案 (/var/www/html/網站注目錄)
vim /var/www/html/a.org/index.html 編輯內容
vim /etc/httpd/conf.d/a.org.conf 編輯配置
配置如下 <VirtualHost *:80>
ServerName www.a.org
DocumentRoot /var/www/html/a.org
</VirtualHost>
httod -t 測驗 出現OK證明成功
systemcht restart httpd 重啟httpd
2客戶端 vim /etc/hosts
編輯 服務器IP 和 www.a.org
用瀏覽器打開 或 elinks http://www.a.org
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/15696.html
標籤:網絡
上一篇:為什么我裝了vmware playstation pro就不能啟動virtualbox了
下一篇:關于企業網路慢求解決方案
