linux上clisp运行lisp,apache - 重新访问linux + apache2 + mod_lisp + CLISP - 堆栈内存溢出
CLISP已安裝并成功運行:
(加載“ modlisp-clisp”)(modlisp:modlisp-server)運行正常,即無休止
Python可通過localhost在/ usr / lib / cgi-bin中正常工作
試圖使clisp服務器在/ var / www / html / lsp中工作
通過localhost / lsp打印的瀏覽器訪問:mod_lisp 2.0這是由mod_lisp 2.0 + CLISP + apache + Linux發送的常量html字符串
但是localhost / lsp / test.lisp僅返回內部服務器錯誤(chmod 777 test.lisp完成)
clisp解釋器上的test.lisp沒有出現名稱為“ content-type”的軟件包:
(defun xyz()
(format t 'Content-Type: text/html;charset=utf-8')
(print())
(print())
(print(coerce '(#\u2211) 'string))
(print(coerce '(#\U20AC) 'string))
(format t "hello world!")
)
(xyz)
詳細信息:uname -a Linux me-H97N-WIFI 3.13.0-37-generic#64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU / Linux
apache2ctl -M AH00558:apache2:無法使用127.0.1.1可靠地確定服務器的標準域名。 全局設置'ServerName'指令以禁止顯示此消息Loaded Modules:... lisp_module(shared)..
/etc/apache2/sites-enables/000-default.conf:
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ScriptAlias / cgi-bin / / usr / lib / cgi-bin /
AllowOverride無選項+ ExecCGI -MultiViews + SymLinksIfOwnerMatch順序允許,拒絕所有允許
(我的小修正案:)
位置/ var / www / html / lsp> SetHandler lisp-handler位置>
/etc/apache2/mods-enabled/lisp.conf:
LispServer 127.0.0.1 3000“ / var / www / html / lsp”
我哪里出問題了? Lisp服務器應該以某種方式在cgi-bin之外與python一起運行嗎? 如何發送html標頭?
總結
以上是生活随笔為你收集整理的linux上clisp运行lisp,apache - 重新访问linux + apache2 + mod_lisp + CLISP - 堆栈内存溢出的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: android 控件覆盖关系,安卓子控件
- 下一篇: stderr java_如何使用Log4