Server Protection
Для запуска какого-либо сервера необходимо настроить соответствующий INI-файл, установить или сгенерировать ключ защиты и получить лицензию. О лицензиях смотрите раздел система лицензирования.
Сводные данные по серверам:
In order to launch a server, you need to set the corresponding INI file, install or generate a security key and get a license. Find the information about licenses in the Licensing System section.
Summary data on servers:
Server | EXE file | INI file | Security Key | License |
Reference Server |
Refsrv.exe | rk7srv.ini |
Required |
Required |
cash server | MIDSERV.EXE | Rkeeper.ini |
Required |
Required |
Report Server | rkReportsServer.exe | repsserv.ini |
Required |
Required |
Print Server | winprint.exe | winprint.ini |
Способы запуска и работы серверов
Not required | Not required |
Server Launch and Operation Methods
Any server (reference server, report server, cash server, and print server) can be launched as a service in NT systems. This can be done either by launching the server's .exe file and clicking «Yes» in the dialog box as the answer to the «Do Любой из серверов (сервер справочников, сервер отчетов, кассовый сервер и сервер печати) можно запускать в качестве сервиса в NT системах. Это можно сделать либо запустив экзешник сервера и в появившемся диалоговом окне нажать кнопку "Да" в ответ на вопрос "Do you wish to install this application as service?", либо использовать параметр /install при запуске сервера.
На данный момент доступны следующие параметры для запуска:
/install - регистрирует в системе соответствующий сервис
/uninstall - удаляет сервис из системы
/desktop - запускает сервер как обычное приложение
/srvname:SomeName - добавляет к имени сервиса текст ‘SomeName’
/ininame:file - указывает конфигурационный файл с настройками сервера, который необходимо использовать при запуске
/listkeys - при запуске с этим параметром Кассовый сервер и Сервер отчетов в логах создают информацию о всех подключенных ключах в строках вида
"2EB13D0C-783367436-ZXMBTSLF", которую впоследствии можно использовать для лицензирования этих серверов. Используйте совместно с /desktop
/norefslogs - отключить ведение журнала изменений (только на сервере справочников)
Info | ||
---|---|---|
| ||
Параметр /srvname необходим для возможности установки нескольких экземпляров сервера в качестве службы. |
Рекомендуем первый запуск сервера производить с ключом /desktop.
Для установки нового сервера в качестве службы с новым именем необходимо использовать следующий шаблон:
- путь2 /srvname:имя2 /ininame:ини2 /install, где:
- путь2 - полный путь к midserv.exe
- имя2 - новое имя службы
- ини2 - имя ини файла (для случая запуска нескольких серверов из одной папки).
...
» question or by using the /install parameter when launching the server.
The following launch parameters are currently available:
/install – registers the corresponding service in the system
/uninstall – deletes the service from the system
/desktop – launches the server as a regular app
/srvname:SomeName – adds the 'SomeName' text to the service name
/ininame:file – indicates the configuration file with server settings that should be used for launching
/listkeys – when launching with this parameter, the cash server and the report server generate information in the logs on all connected keys in the lines of the «2EB13D0C-783367436-ZXMBTSLF» type. This information can subsequently be used to license these servers. Use jointly with /desktop
/norefslogs – disables log keeping (only for the reference server)
Info |
---|
The /srvname parameter enables installing several instances of the server as a service. |
It is recommended to launch the server for the first time using the /desktop key.
The following template should be used to install a new server as a service with a new name:
- path2 /srvname:name2 /ininame:ini2 /install, with:
- path2 as the full path to midserv.exe
- name2 as the service new name
- ini2 as the INI file (in case several servers are launched from the same folder).
For example, for the new cash server installed from the same folder as the old server, the line could be as follows: d:\ucs
...
\rk7\bin\win\midserv.exe /srvname:MidServer2 /ininame:rkeeper2.ini /install
При запуске серверов в качестве сервисов, именоваться они будут следующим образом: Имя службы Отображаемое имя
Например:
RkeeperRefServer RKeeper 7 References Server (По умолчанию)
RkeeperRefServer_SE RKeeper 7 References Server (SE) (с использовании ключа /srvname:SE)
По умолчанию, файл настроек читается из текущего каталога программы. Если необходимо указать другой конфигурационный файл, используется ключ /ininame:file при запуске сервера.
Для запуска и остановки сервисов можно воспользоваться консолью в windows либо создать ярлыки со следующими командами:
When servers are launched as services they will be named in the following way: Service name Display name.
For example:
RkeeperRefServer RKeeper 7 References Server (by default)
RkeeperRefServer_SE RKeeper 7 References Server (SE) (using the /srvname:SE key)
The settings file from the program's current catalog is used by default. If another configuration file needs to be specified, the /ininame:file key is used when launching the server.
In order to launch and stop the services, you can use a Windows console or create shortcuts with the following commands:
net start RKeeperRefServer – launch the reference server's service
net stop RKeeperRefServer – stop the reference server's service
net start RKeeperMidServer –launch the cash server's service
net stop RKeeperMidServer – stop the cash server's service.
...