1. 程式人生 > >linux_www服務器簡單配置

linux_www服務器簡單配置

linux_www服務器簡單配置

1、簡介:www服務器就是發布網頁的

2、準備:linux虛擬機

3、步驟:

1)編輯配置文件:vi /etc/httpd/conf/httpd.conf ,記住配置文件的DocumentRoot "/var/www/html"。

2)編輯網頁: vi /var/www/html/index.html,按字母i並輸入hello!,按wq保存退出。

3)重啟www服務:service httpd restart。

3)測試:網頁訪問linux虛擬機的IP地址(例如192.168.1.1),看到瀏覽器顯示hello!,成功。

linux_www服務器簡單配置