如何使用密码运行nhttp.exe?

时间:2019-06-21 12:55:30

标签: xpages lotus-domino

我想创建.bat文件,必须调用nhttp.exe并在该.exe文件中输入我的密码。但是没有人命令对我不起作用。

nhttp.exe 'my-pass'
nhttp.exe|'my-pass'
'my-pass'|nhttp.exe
nhttp.exe<fileWithpass.txt

[2388:0002-4180] The ID file being used is: C:\Program Files 
(x86)\IBM\Notes\myFileId.id 
[2388:0002-4180] Enter password (press the Esc key to abort):

2 个答案:

答案 0 :(得分:5)

就XPages而言,Domino Designer的本地nhttp与服务器的nhttp不同。如果要进行开发,请在本地安装Domino服务器。这是最佳实践,也是为什么我与IBM合作一年以上以获得Domino的非生产许可证的原因,而该许可证现在随Community Server许可证一起提供。可以在Thomas Hampel的博客文章https://blog.thomashampel.com/blog/tomcat2000.nsf/dx/v10.0.1-has-arrived.htm的底部找到社区服务器的链接(一个单独的软件包,但与完整服务器的代码集相同)。还有一个IBM Docker映像,可用于在Docker for Windows https://github.com/IBM/domino-docker中运行Domino服务器。

答案 1 :(得分:3)

只是给您一个解决方案(虽然最好像保罗建议的那样安装本地开发服务器):

您可以使用其他notes.ini启动nhttp.exe并使用无密码的ID文件

nhttp.exe =/path/to/notes-nhttp.ini

(斜线取决于您的操作系统)

在INI文件中,可以通过更改以下参数来设置其他Notes ID:

KeyFileName=/path/to/notes-nhttp.id