Guest mode. You can read posts without signing up. Comments, ratings, job contacts and your own posts open after you sign up and accept the rules. What is Kommit →

📚 GuideСервер 1С на Windows и LinuxLinux · часть 11 из 14
Guide contents
Редакция КоммитРедакция портала
commit 311e0b4 · 19 days ago

1C Server on Linux, Step 4: cluster and databases via RAC and console

🌐 Machine-translated from Russian. Show original

In this part:

How to manage a cluster on Linux#

There are two ways:

  • the rac utility directly on the server (or from any machine where the platform is located) — via the RAS service;
  • the "1C Enterprise Server Administration" console on the administrator's Windows computer — it connects to the RAS on the Linux server (port 1545).

Below — rac. For convenience, save the path to the variable:

RAC=/opt/1cv8/x86_64/8.3.xx.xxxx/rac
$RAC cluster list

In the output, find cluster — this is the cluster's UUID and is needed in the following commands:

CLUSTER=$($RAC cluster list | awk '/^cluster/{print $3; exit}')
echo $CLUSTER

Cluster administrator#

Set the administrator so that no one can manage the cluster:

$RAC cluster admin --cluster=$CLUSTER register --name=admin --pwd='сложный-пароль' --auth=pwd

Next, add --cluster-user=admin --cluster-pwd='сложный-пароль'to all commands.

Creating an information database#

$RAC infobase --cluster=$CLUSTER --cluster-user=admin --cluster-pwd='сложный-пароль' \
  create --create-database \
  --name=buh --descr="Бухгалтерия" \
  --dbms=PostgreSQL --db-server=localhost --db-name=buh \
  --db-user=usr1c --db-pwd='пароль-usr1c' \
  --locale=ru --license-distribution=allow
  • --create-database — create a database in PostgreSQL if there is none;
  • --license-distribution=allow — the server issues client licenses;
  • For test copies, add --scheduled-jobs-deny=onso that routine job copies do not start sharing with production systems.

List of bases:

$RAC infobase --cluster=$CLUSTER --cluster-user=admin --cluster-pwd='сложный-пароль' summary list

Sessions and login locking#

# кто сейчас работает
$RAC session --cluster=$CLUSTER --cluster-user=admin --cluster-pwd='сложный-пароль' list

# запретить начало сеансов на время обновления (параметры смотрите в $RAC infobase update --help)
$RAC infobase --cluster=$CLUSTER --cluster-user=admin --cluster-pwd='сложный-пароль' \
  update --infobase=<UUID-базы> --sessions-deny=on --denied-message="Обновление базы до 20:00"

Help for any command is shown by $RAC help <раздел>, for example $RAC help infobase.

Windows console#

  1. On the administrator's Windows computer, install the same platform version with the "Server Administration" component.
  2. Register the console (regsvr32 radmin.dll the desired version).
  3. In the console: New → Central server → Linux server name and port 1545 (RAS port, not 1540).

Downloading .dt and connecting clients#

  • Add the database to the client's list: "On the 1C:Enterprise server," cluster srv1c, database buh.
  • Download the .dt through Configurator: Administration → Download the database.
  • The client version must match the server version.

Verification#

The database is opened from the client computer, and the session is visible in session list. For access via browser and HTTP services — step 5: Apache.

Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up

Comments · 0

No comments yet.Sign in to comment, rate and see all comments.