G-婉更新的servlet [英] g-wan updating servlets

查看:162
本文介绍了G-婉更新的servlet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的G-WAN用户手册PDF文档中注意到,截至2012年10月19日,
http://gwan.ch/download
它说:

I noticed in the g-wan User Manual pdf documentation as of 10/19/2012, http://gwan.ch/download that it says:

更新的servlet(C,C ++等)
  当您需要添加或位于CSP目录更新的servlet,你可以在不停止G-WAN(所有缓存文件都在实时更新)。这样做的

Updating servlets (C, C++, etc.) When you need to add or update servlets located in the csp directory you can do so without stopping G-WAN (all cached files are updated in real-time).

然而,当我开始金桂冠,这似乎编译在CSP目录中的一切。这将是打倒的.c文件1000的系统上正确的难看。无论如何,我试图更新的hello.c文件只是为了看看会发生什么。当我再次访问它,所做的更改不会走。我不得不重新启动服务器。另外,如果我把一个新的servlet,就像hello2.c,我得到所请求的URL不在此服务器上找到。直到我重新启动服务器?

Yet when I start gwan, it appears to compile everything in the csp directory. That would be down right ugly on a system with 1000's of .c files. Anyway, I tried updating the hello.c file just to see what happens. When I access it again, the changes do not take. I have to restart the server. Also, if I put in a new servlet, like hello2.c, I get "The requested URL was not found on this server." until I restart the server?

怎么办?

G-WAN 3.3.28 64位(2012年3月28日11时24分十六秒) - 我在下载看见了作为10月19日的最新版本,2012

G-WAN 3.3.28 64-bit (Mar 28 2012 11:24:16) - the latest version I saw in the download as of Oct 19th, 2012

推荐答案

吉尔找到了答案。这是权限。 (对于Linux新手像我一样)在CSP目录必须有相同的所有者/组作为金桂冠服务器的启动方式。

Gil found the answer. It was permissions. (for the linux newbie like myself) The csp directory must have the same owner/group as how the gwan server is started.

须藤./gwan -d:WWW的数据:WWW的数据

sudo ./gwan -d:www-data:www-data

如果如上开始,在CSP目录也必须是WWW的数据作为所有者和组与实际的servlet文件一起。在我的情况下,它是hello.c的文件。

If started as above, the csp directory must also be www-data as owner and group along with the actual servlet file. In my case it was the hello.c file.

这篇关于G-婉更新的servlet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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