Как установить ApacheDS в Windows без вывода сообщений

1200
030

Я скачал ApacheDS для Windows, и я хотел бы установить его в предпочитаемом каталоге. Параметры /Sи D=принимаются, но служба не будет установлена ​​правильно. Как я могу установить ApacheDS в Windows без вывода сообщений?

0

2 ответа на вопрос

0
030

Следующий ответ был преобразован в пакет Chocolatey, опубликован в галерее Chocolatey и устанавливается с помощьюcinst apacheds

Я установил ApacheDS в автоматическом режиме, загрузив и распаковав zip-файл ApacheDS и установив его lib/apacheds-service-<version>.jarкак службу, используя NSSM ( см. Вопрос и ответ в StackOverflow относительно создания jar-файла как службы в Windows ).

0
Anthony Hayward

Вы можете использовать предоставленный wrapper.exe в Apache DS для установки службы

Например

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