我已经下载了适用于 Windows 的 ApacheDS并且我想将其静默安装到首选目录。参数/S
和D=
被接受,但服务无法正确安装。如何在 Windows 上静默安装 ApacheDS?
答案1
以下答案已转化为 Chocolatey Package,发布到巧克力画廊并可使用cinst apacheds
我已经通过以下方式静默安装了 ApacheDS下载并解压 ApacheDS zip并使用安装lib/apacheds-service-<version>.jar
作为服务国家安全监测中心(请参阅 StackOverflow 上有关在 Windows 上创建 jar 作为服务的问题和答案)。
答案2
您可以使用 Apache DS 中提供的 wrapper.exe 来安装该服务
例如
C:\Program Files (x86)\ApacheDS\bin>wrapper -i ..\conf\wrapper.conf set.INSTANCE_DIRECTORY=..\instances\default set.INSTANCE=default
wrapper | ApacheDS - default installed.
执行时不带任何参数即可获得全套选项。
C:\Program Files (x86)\ApacheDS\bin\wrapper.exe
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Usage:
wrapper <command> <configuration file> [configuration properties] [...]
wrapper <configuration file> [configuration properties] [...]
(<command> implicitly '-c')
wrapper <command>
(<configuration file> implicitly 'wrapper.conf')
wrapper
(<command> implicitly '-c' and <configuration file> 'wrapper.conf')
where <command> can be one of:
-c --console run as a Console application
-t --start starT an NT service
-a --pause pAuse a started NT service
-e --resume rEsume a paused NT service
-p --stop stoP a running NT service
-i --install Install as an NT service
-r --remove Remove as an NT service
-q --query Query the current status of the service
-qs --querysilent Silently Query the current status of the service
-v --version print the wrapper's version information.
-? --help print this help message
<configuration file> is the wrapper.conf to use. Name must be absolute or relat
ive
to the location of wrapper
[configuration properties] are configuration name-value pairs which override val
ues
in wrapper.conf. For example:
wrapper.debug=true