阅 读 文 章

snakelets 文档,我翻译了一部分。

[来源:网上转载 (http://www.chinaunix.net) | 作者:网友(瘦青蛙) | 时间:2007-05-27 | 浏览:人次 ]


在对着zope一顿抓耳挠腮之后偶然发现了snakelets这个web server,看了看他自带的文档,一下子就喜欢上了,用我“跳楼级”的英语水平粗略的翻译了一部分想与大家分享。希望大家能够帮忙修正里面翻译的不恰当的地方(有很多哦,自己都看不过去的),从而使更多人能够了解并使用snakelets。
[size=24]
Starting the server, configuring [/size]

Requirements

You'll need at least Python 2.3 to run Snakelets.
你需要安装python2.3或更高版本来运行Snakelets

Please consider installing the sendfile(2) system call extension module from Snakefarm.org (works on Linux) or the one from Ben Woolley (which works on Linux and BSD too). This module may improve performance and CPU utilization in some cases (experiment!). Snakelets will automatically use it if it is installed (doesn't matter which one of the two mentioned above). 
请确认安装sendfile(2) system call 扩展模块,可以到Snakefarm.org(linux操作系统)或者Ben Woolley(可以在linux和BSD上运行)下载。在某些情况下这个模块可以改善处理效率和CPU利用率(试验中!)。snakelets将会自动运行已经安装的扩展模块(无论上面提到的哪一种)。

[size=18]Out-of-the-box startup[/size]

It is possible to start the Snakelets server out-of-the-box, without changing anything. If you don't enable the virtual host feature (see below), Snakelets will scan the "webapps" directory and will load all web applications it finds on the current host. If you have a web app named "ROOT" that one will be used as the web application for the root context '/'. You can just start the serv.py script without configuring anything and away you go. The default port number is 9080, so you can access the server with the following url: http://machinename.domain:9080/ . 
你不用修改任何东西就可以启动snakelets server out-of-the-box(???不明白)。如果你未被授予建立虚拟主机的特权(见下文),snakelets将搜索“webapps”目录并载入所有的 web applications 到他搜索到的主机中。如果你有一个名字为“ROOT”的webapp,他将被默认为你的根目录‘/’。你可以直接运行 serv.py来启动snakelets而不需要任何修改。默认端口是9080,你可以通过 http://machinename.domain:9080访问server。

Warning: the default config works but is very likely not the one that you want for your own server environment. One of the things you will have to change is removing the example plugins (if any) and webapps that come with Snakelets!
论坛热门帖子: [lch203] 写得蛮好的linux学习笔记(10-21)
[黑马制造] 学习java的30个目标(10-19)
[笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19)
[udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18)
[沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18)
TAG标签: 翻译 文档 使用 可以 页面 URL 如果 文件 webapp 一个

最新评论 共有1位网友发表了评论

发表评论

评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名:(注册)
密码:
验证码:
匿名发表

网站地图友情连接交流论坛网站投稿广告服务联系我们留言本站长统计
Some rights reserved: www.chmhome.com, 鄂ICP备07010232号 E-mail:chinakafei@live.com,QQ:552766
中国咖啡技术网(Chmhome):国外编程技术书籍,中文编程手册,经典编程文章,交流技术,技术软件下载,计算机论文,毕业论文.