mamp 簡單的網頁

來源:互聯網
上載者:User

1: prepare

      1.1   a very simple html  file.

       1.2   mamp

 

2: details

     html file.

    2.1   on mac pro , if u use   ,just type in words like follows.

           

<html>   <body>        <p> hello wangfan ,here it is <p/>   </body></html>

   2.2 just save the file named  wf.txt  (becarefull , u should select file type as follows)

         

2.3  chang wf.txt   to  wf.html   

   

3:  download mamp from internet and install it. it is so simple.

     

   3.1  now click webstart button on left top.  u will see  the manager page

       

        

 3.3  if u want to see you own page , just copy wf.html

      

 3.2  to  and enter in safary:  http://localhost:8888/wf.html     now  u can see your own page .

    

4: by addtional ,   u can create file hirenchy              use    http://localhost:8888/tests/wf.html   to vist

   

 

  

  

  and on window  xampp  works like this

//-----------------------------------------------------------------------when u arrive here------------------------------------------------------------

AIM:下載一個網站,然後安裝到 本地  mamp 。(如果你自己租了虛擬機器主機,那麼 用FTP 工具上傳你的 網站/論壇/部落格  到虛擬機器主機上去,別的操作和下面講的一樣)

1:下載一個網站 比如 去 DISCUZ 下載,解壓源碼。

              

          

2: 在MAMP的預設訪問目錄 htdocs 目錄下面 自己建立檔案夾用來管理自己的各種 網站/論壇/blog 

       

     

3: 安裝論壇/網站/blog  (我上面的例子是下載了個論壇,需要安裝)

     在瀏覽器中 訪問剛才上傳的 install 目錄 如下:

        http://localhost:8888/projects/ibuglib/install/

     要是論壇沒有安裝過,那麼應該能看到 網站安裝嚮導: 

     我現在因為安裝過了,所以拒絕訪問了。 如下:

    

     

4: 這個時候,要是你安裝的東東 是需要資料庫的。那麼現在需要通過mamp後台管理工具建立一個 資料庫,以便論壇使用。  

        直接輸入 資料庫 名字 然後點擊 “建立”  其他不用動

    

      會提示 建立成功

         

5:  繼續安裝自己的論壇, 記得 只用 填寫資料庫名字的時候  輸入  上面建立的  "ibuglib"

        以及管理員 賬戶/密碼

              一路oK後,訪問

6:訪問論壇  在瀏覽器 中輸入:

        ocalhost:8888/projects/ibuglib

     或者

       http://localhost:8888/projects/ibuglib/forum.php  (輸入上面那個地址 會自動補全成下面這個樣子)

      

這個時候你就能看見論壇了:

           

//----------------------------wordpress blog------------------------

1: 可以去 http://cn.wordpress.org/  下載中文版的BLOG。 它上面有介紹如何 5 min 安裝 blog。

2: 如果 提示 wp-config.php 不存在。那麼 需要配置。

    DB info  在 MAMP 的start標籤頁。

          

3: 配置好的檔案 命名為  wp-config.php ,然後複製到 wp-config-sample.php 同樣的目錄。 

    ok 在瀏覽器 輸入:  http://localhost:8888/wf/wordpress/

         

           u will see  ,, is't that great? 

    

      

  

      

  

  

         

         

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.