阿帕奇+ mod_lisp + CLISP [英] Apache + mod_lisp + clisp

查看:156
本文介绍了阿帕奇+ mod_lisp + CLISP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何配置Apache + mod_lisp + CLISP并成立了一个Hello World!?我找不到任何关于这个问题完全HOWTO。谢谢你。

编辑:Vebjorn的解决方案工作,但我并不怎么code中的世界,你好!。谁能告诉我如何进行?还有像SWANKing的CLISP,然后用泥连接到它,但后来当我启动mod_lisp的演示,测试页面未送达和我的煤泥不返回?

再次感谢。


解决方案

  1. 下载<一个href=\"http://www.fractalconcept.com:8000/public/open-source/mod_lisp/mod_lisp.c\">http://www.fractalconcept.com:8000/public/open-source/mod_lisp/mod_lisp.c

  2. 编译和安装Apache模块须藤APXS -i -c mod_lisp.c

  3. 添加以下到你的的httpd.conf


    的LoadModule lisp_module的libexec / httpd的/ mod_lisp.so
    AddModule开头mod_lisp.c
    LispServer 127.0.0.1 3000富
    &LT;位置/ foo的&GT;
      SetHandler口齿不清处理程序
    &LT; /地点&gt;


  4. 重新启动Apache与须藤apachectl中重启

  5. 下载例如Lisp的端在处理CLISP的:<一href=\"http://www.fractalconcept.com/fcweb/download/modlisp-clisp.lisp\">http://www.fractalconcept.com/fcweb/download/modlisp-clisp.lisp

  6. 开始CLISP和评估:


    (载modlisp-CLISP)
    (modlisp:modlisp服务器)


  7. 在浏览器中的http://本地主机/ foo的。您应该看到:



  

mod_lisp 2.0


  
  

这是通过发送一个恒定的HTML字符串
  mod_lisp 2.0 + CLISP + APACHE + Linux的


How to to configure apache + mod_lisp + clisp and set up a "Hello World!"? I couldn't find any complete howto on the subject. Thanks.

Edit: Vebjorn's solution works, but then I don't how to code the "hello world!". Can anyone tell me how to proceed? There's something like SWANKing the clisp, then connect to it with SLIME, but then when I launch mod_lisp's demo, the test page is not served and my slime doesn't return?

Thanks again.

解决方案

  1. Download http://www.fractalconcept.com:8000/public/open-source/mod_lisp/mod_lisp.c
  2. Compile and install Apache module with sudo apxs -i -c mod_lisp.c
  3. Add the following to your httpd.conf:

    LoadModule lisp_module libexec/httpd/mod_lisp.so
    AddModule mod_lisp.c
    LispServer 127.0.0.1 3000 "foo"
    <Location /foo>
      SetHandler lisp-handler
    </Location>
    

  4. Restart apache with sudo apachectl restart
  5. Download example of Lisp-side handling in CLISP: http://www.fractalconcept.com/fcweb/download/modlisp-clisp.lisp
  6. Start CLISP and evaluate:

    (load "modlisp-clisp")
    (modlisp:modlisp-server)
    

  7. Point your browser to http://localhost/foo. You should see:

mod_lisp 2.0

This is a constant html string sent by mod_lisp 2.0 + CLISP + apache + Linux

这篇关于阿帕奇+ mod_lisp + CLISP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆