在Windows 8上设置Nginx-clojure的步骤是什么 [英] what are the Steps to setup nginx-clojure on windows 8
问题描述
按照步骤在Windows-8 64位系统中设置nginx-clojure.0.4.0
Steps followed to setup nginx-clojure.0.4.0 in Windows-8 64 bit
-
下载了nginx-clojure.0.4.0.tar
Downloaded the nginx-clojure.0.4.0.tar
解压缩tar文件并将其命名为nginx
Unzipped the tar file and named it as nginx
修改了conf文件中的以下属性
Modified the following properties in conf file
nginx.conf :
pid logs/nginx.pid;
jvm_path "C:/Program Files (x86)/Java/jdk1.7.0_17/jre/bin/server/jvm.dll";
jvm_var my_other_jars 'D:/Learning/clojure-1.7.0/clojure-1.7.0.jar';
jvm_options "-Djava.class.path=jars/nginx-clojure-0.4.0.jar:#{my_other_jars}";
jvm_options "-Xms1024m";
jvm_options "-Xmx1024m";
使用命令"nginx-win64.exe"启动服务器.服务器启动失败,并显示以下错误
Started the server using command "nginx-win64.exe".Server start up is failing with following error
-
无法为加载动态库初始化jvm,可能是错误的jvm_path!
can not initialize jvm for load dynamic lib, maybe wrong jvm_path!
系统找不到指定的文件(logs/nginx.pid).
The system cannot find the file specified(logs/nginx.pid).
请让我知道是否需要修改其他任何参数.我也尝试在Mac book中尝试设置nginx-clojure.0.4.0但失败了.我也尝试在Windows 8中尝试nginx-clojure.0.3.0失败
Please let me know if i need to modify any other parameters. I tried nginx-clojure.0.4.0 in mac book also to setup but failed.I tried nginx-clojure.0.3.0 also in windows 8 i failed
推荐答案
问题是您使用32位JDK和64位Nginx-Clojure. 在64位Windows-8上,32位程序将安装到"C:/Program Files(x86)/". 因此,请尝试
The issue is you use a 32-bit JDK with a 64-bit Nginx-Clojure. On 64-bit Windows-8 32-bit program will be installed to "C:/Program Files (x86)/". So please try either of
- 安装64位JDK或
- 将nginx-win32.exe与32位JDK一起使用
顺便说一句,如果您想在Macosx上使用Nginx-Clojure,请尝试使用Nginx-Clojure 0.4.1,它可以自动检测jvm路径.例如
BTW if you want to use Nginx-Clojure on Macosx please try Nginx-Clojure 0.4.1 which can auto detect jvm path. e.g.
在nginx.conf中
in nginx.conf
jvm_path auto;
更新:
您的类路径也是错误的.在Windows上,classpath分隔符为;
,而不是:
.因此,您的类路径应为
Your classpath is also wrong. On windows classpath seperator is ;
, not :
. So Your classpath should be
jvm_options "-Djava.class.path=jars/nginx-clojure-0.4.0.jar;#{my_other_jars}";
这篇关于在Windows 8上设置Nginx-clojure的步骤是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!