天天看點

在Windows下Hunchentoot的啟動

Hunchentoot是個什麼東東呢?它是一個Common Lisp Web Server。

我先後下載下傳了兩個編譯器:

1、Allegro Common Lisp 8.2 Free Express Edition,簡稱Allegro CL

2、lispbox,裡面內建了emacs、quicklisp等

因為是搞web開始,總得有個web server支援吧,搜尋一下後就找到Hunchentoot了。

一開始使用的是Allegro CL,搜尋到這篇文章:

最後改為了lispbox,解壓後輕按兩下lispbox.bat然後啟動

在Windows下Hunchentoot的啟動
在Windows下Hunchentoot的啟動

按照上面的方法操作:

1、安裝Quicklisp

2、安裝USOCKET

CL-USER> (ql:quickload "usocket")

3、安裝Hunchentoot

CL-USER> (ql:quickload "hunchentoot")

4、運作Hunchentoot

CL-USER> (asdf:load-system "hunchentoot") ...

CL-USER> (hunchentoot:start (make-instance 'hunchentoot:acceptor :port 4242))

在第三個步驟中,可能會遇到下載下傳檔案的錯誤,直接按數字鍵5略過即可

在Windows下Hunchentoot的啟動
在Windows下Hunchentoot的啟動

通過前幾天對lisp零亂的學習和了解,準備整理一些學習筆記出來