Setting 1S on CentOS 8

Server 1C is one of the components of a software product 1C: Enterprise is intended for the organization of the client – server version of 1C Enterprise. The program 1C: Enterprise is intended for complex automation of the enterprises on the part of the accounting and management accounting in the enterprise.

In today’s article we will tell you how to install CentOS on 1C 8. This article assumes that you have already have software distributions server 1C Enterprise. Attention!!! All actions in the article are made on behalf of the root user.

Setup 1C server on CentOS 8

Step 1. Installing packages 1C

First install the packages servers you obtained from 1C. Go as root:

su

Then browse to the folder where you have located the installation packages 1C servers and perform group install packages with the following command:

yum install *

We performed a simultaneous installation of all packages on your server platform 1C Enterprise located in the folder. The output of the command:

The installation of the packages happens in the directory /opt/1C/v8.3/x86_64.

Step 2. Installing fonts for 1C

Next, install fonts Microsoft Core Fonts necessary for correct operation of the platform 1C Linux. They are needed in the case if you use the platform of 1C Enterprise 8 on your CentOS server. If you expect only a remote connection to the database on the server 1C, the font installation can be skipped.

Fonts you need to download the following link. Download all necessary. exe files fonts, with the exception of the file under the name wd97vwr32.exe because they contain the font files.

After the fonts have been downloaded rename the exe files alternately changing the extention from. exe to. zip and extract them by removing the output folder all files except *.ttf (the font files).

Then move all the font files in one folder /usr/share/fonts/Core_Fonts and update the font cache with the following command:

fc-cache –fv

This command will update the font cache and the system will see the required fonts.

Step 3. Installing dependencies

Now for the extra libraries required for proper functioning of the server 1C. The installation is performed with the following command:

yum install fontconfig freetype libgsf unixODBC

Step 4. The service starts

The server is now CentOS 1S almost installed. After installing start the server service 1C with the following command:

systemctl start srv1cv83

After that you can start check whether the server service or not by running the command:

systemctl status srv1cv83

Step 5. The HASP driver setup

After starting the server 1C: Enterprise, you must install the driver software and hardware security HASP. The produced installation package haspd-7.90-eter2centos.x86_64.rpm with the following command:

rpm-i http://ftp.etersoft.ru/pub/Etersoft/HASP/last/x86_64/CentOS/7/haspd-7.90-eter2centos.x86_64.rpm

Then install the second driver package for the protection with the command:

rpm-i http://ftp.etersoft.ru/pub/Etersoft/HASP/last/x86_64/CentOS/7/haspd-modules-7.90-eter2centos.x86_64.rpm

Step 6. Installing PostgreSQL

We can now proceed to setting up specialized databases postgreSQL is designed to work with the server 1C: Enterprise. Install postgresql CentOS 1C is performed from third-party repositories. First we import the GPG key of the repository postgreSQL with the command:

rpm --import http://repo.postgrespro.ru/keys/GPG-KEY-POSTGRESPRO

I then create a repository file postgrespro-1c using the following command:

echo [postgrespro-1c] > /etc/yum.repos.d/postgrespro-1c.repo

Then write the name of the repository with the command:

echo name=Postgres Pro 1C repo >> /etc/yum.repos.d/postgrespro-1c.repo

Next, append the base URL:

echo baseurl=http://repo.postgrespro.EN//pg1c-archive/pg1c-12.1/centos/8/os/x86_64/rpms/ >> /etc/yum.repos.d/postgrespro-1c.repo

After you include checking GPG signatures of the packages:

echo gpgcheck=1 >> /etc/yum.repos.d/postgrespro-1c.repo

and turn on the repository:

echo enabled=1 >> /etc/yum.repos.d/postgrespro-1c.repo

Now we need to update the package cache enabled repository postgreSQL. Executes this action with the following command:

yum makecache

Produced after the installation of postgreSQL packages:

yum install -y postgrespro-1c-12-server-12.1-1.el8.postgrespro x86_64-1c-12-contrib-12.1-1.el8.x86_64

which will install the necessary packages to run the database.

The output of the command is shown below.

Upon completion of the installation, you must initialize the database with the following command:

/opt/pgpro/1c-12/bin/pg-setup initdb

And just to add the database in startup. To do this, type:

/opt/pgpro/1c-12/bin/pg-enable setup service

Step 7. Configuring PostgreSQL

Start the database server postgreSQL:

service postgrespro-1c-12 start

Go under user postgres with the command:

su - postgres

Then go to the installation directory of SQL server. To do this, enter the command:

cd /opt/pgpro/1c-12/bin/

Log into the database:

./psql

Logging in to user postgres , you must specify the user password in order to be able to remotely connect to the database. Executes this action with the command:

ALTER USER postgres WITH ENCRYPTED PASSWORD 'yourpassword';

1C setting CentOS completed, it remains to create a database or import an existing one.

Step 8. The connection to the server 1S

Once was asked the password of the postgres user run on a windows machine the administration console of the server 1C. In the console select the menu item to Create a New Central server

Fill in the fields name and IP port:

Next, we set up our Central server and create a new cluster. For this being in the new hub server select the menu item to Create a New cluster:

Fill in the fields: the cluster name, the computer IP port. Port set default 1541.

Now create an information base. Go to the cluster that you created in the item Information database. While in the item Information database go to the menu to Create a New database.

Fill in the fields name, database server type of database, specify postgreSQL. In the database field specify the name of newly created database in the user field, the database server, specify the user name postgres and the password you previously set. Set the checkbox to Create a database if it is missing, and click OK. Thus, we have created a database on the server 1C.

Insights

That’s all. Setting 1S on CentOS 8 is fully completed. You now have installed and ready to work server 1C Enterprise where you can create a database or you can load your current database from the file version 1C and to get to work. Thank you for your attention.

Source: losst.ru

(Visited 3 times, 1 visits today)