Getting Started with PostgreSYS
This section will guide you through the installation process and the initial steps to use PostgreSYS.
At the end, you will be able to access the Web interface to start configuring the components of your environment.
We recommend reading the Platform Architecture to better understand the details of each component.
- PgSmart Agent
-
Download the package
Terminal inputwget --user=USUARIO --password=SENHA https://repo.tecnisys.com.br/yum/pgsys/pgsmart/4.0.0/rhel-8-x86_64/pgsmart-agent-4.0.0-1.el8.x86_64.rpm
-
Install the RPM
Terminal inputrpm -ivh pgsmart-agent-4.0.0-1.el8.x86_64.rpm
-
Start the service
Terminal inputsystemctl enable --now pgsmart-agent
-
Retrieve the connection key
Terminal inputcat /opt/pgsmart-agent/pgsmart.yml | grep connectionKey
noteFor more details about the installation process, refer to [PgSmart Agent Installation].
- PgSmart Client
-
Download the package
Terminal inputwget --user=USUARIO --password=SENHA https://repo.tecnisys.com.br/yum/pgsys/pgsmart/4.0.0/rhel-8-x86_64/pgsmart-client-4.0.0-1.el8.x86_64.rpm
-
Install the RPM
Terminal inputrpm -ivh pgsmart-client-4.0.0-1.el8.x86_64.rpm
-
Register the Agent
Terminal inputpgsmart config agent
3.1. Detalhamento dos passos
- Select
Agent Registration
- Select
Register
and enter the Agent information: - Press
<enter>
to use the default hostname or IP of the server where the PgSmart Agent is installed. - Press
<enter>
to use the default port used by the Agent. - Press
<enter>
to use the Agent's default alias (nickname). - Enter the connection key obtained in the previous step -
PgSmart Agent - Get the Connection Key
. - Press
<enter>
to confirm the Agent registration.
- Select
- PgSmart Web
-
Install via CLI
Terminal inputpgsmart install
- Press
<enter>
to selectPostgreSYS Environment Administration and Operation
. - Using
<space>
and<enter>
, selectMetadata Database
along withPgSmart Client
(already selected by default). - Press
<enter>
to proceed with the selection ofPgSmart Web
. - Press
<enter>
to register the Tecnisys Repository (yes
is already selected by default).- Enter the repository address (
<enter>
to select the official Tecnisys repository).
- Enter the repository address (
- Enter your
Username
. - Enter your
Password
. - Press
<enter>
to confirm the GPG key verification (yes
is already selected by default).
- Press
-
Access PgSmart Web
https://<IP where the service was installed>:4435
- Using Docker
A quick and simple way to run the web interface is using the Docker image.
With it, you will have both PgSmart CLI and PgSmart Web in a single container.
-
Log in to the official Tecnisys repository
Terminal inputdocker login -u <seu email> repo.tecnisys.com.br
-
Pull the image
Terminal inputdocker pull repo.tecnisys.com.br/pgsys/pgsmart-client:4.0.0
-
Run a container (mapping the access port to PgSmart Web)
Terminal inputdocker run -p 4435:4435 -d pgsmart-client
-
Optionally, access the PgSmart CLI in the running container
Terminal inputdocker exec -it <container-id> bash