Ubuntu 配置Apache訪問linux目錄

安裝Apache,通過web訪問 linux指定目錄。


到默認根目錄:

$ cd /var/www

創建一個到要訪問目錄的軟鏈接:

$ sudo ln -s /home/windriver/RFC2544/rfc2544/testlog STC_Results

重啓Apache:

sudo /etc/init.d/apache2 restart


瀏覽器中輸入:

http://128.224.166.106/STC_Results/  訪問


參考:

http://www.cnblogs.com/andhm/archive/2012/08/02/2619680.html

http://www.blogjava.net/duanzhimin528/archive/2010/03/05/314564.html



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章