<commit_before>= Install APIM API
:page-sidebar: apim_3_x_sidebar
:page-permalink: apim/3.x/apim_installguide_redhat_management_api.html
:page-folder: apim/installation-guide/redhat
:page-liquid:
:page-layout: apim3x
:page-description: Gravitee.io API Management - Installation Guide - Red Hat or CentOS - Management API
:page-keywords: Gravitee.io, API Platform, API Management, API Gateway, oauth2, openid, documentation, manual, guide, reference, api

:gravitee-component-name: APIM API
:gravitee-package-name: graviteeio-apim-management-api-3x
:gravitee-service-name: graviteeio-apim-management-api

== Prerequisites

The following steps assume you have configured your package management system as described in <<apim_installguide_redhat_introduction.adoc#configure-the-package-management-system-yum, Configure the package management system (yum)>>.

== Install the {gravitee-component-name} package

To install the last stable version of {gravitee-component-name}, run the following command:

[source,bash,subs="attributes"]
----
sudo yum install -y {gravitee-package-name}
----

== Run {gravitee-component-name}

These steps assume that you are using the default settings.

To configure {gravitee-component-name} to start automatically when the system boots up, run the following commands:

[source,bash,subs="attributes"]
----
sudo systemctl daemon-reload
sudo systemctl enable {gravitee-service-name}
----

To start and stop {gravitee-component-name}, run the following commands:

[source,bash,subs="attributes"]
----
sudo systemctl start {gravitee-service-name}
sudo systemctl stop {gravitee-service-name}
----

NOTE: These commands provide no feedback as to whether {gravitee-component-name} started successfully.
This information is written to the log files located in `/opt/graviteeio/apim/management-api/logs/`.

== View the logs

When `systemd` logging is enabled, the logging information is available using the `journalctl` commands.

To tail the journal, run the following command:
<commit_msg>update yum install doc for management-api<commit_after>= Install APIM API
:page-sidebar: apim_3_x_sidebar
:page-permalink: apim/3.x/apim_installguide_redhat_management_api.html
:page-folder: apim/installation-guide/redhat
:page-liquid:
:page-layout: apim3x
:page-description: Gravitee.io API Management - Installation Guide - Red Hat or CentOS - Management API
:page-keywords: Gravitee.io, API Platform, API Management, API Gateway, oauth2, openid, documentation, manual, guide, reference, api

:gravitee-component-name: APIM API
:gravitee-package-name: graviteeio-apim-rest-api-3x
:gravitee-service-name: graviteeio-apim-rest-api

== Prerequisites

The following steps assume you have configured your package management system as described in <<apim_installguide_redhat_introduction.adoc#configure-the-package-management-system-yum, Configure the package management system (yum)>>.

== Install the {gravitee-component-name} package

To install the last stable version of {gravitee-component-name}, run the following command:

[source,bash,subs="attributes"]
----
sudo yum install -y {gravitee-package-name}
----

== Run {gravitee-component-name}

These steps assume that you are using the default settings.

To configure {gravitee-component-name} to start automatically when the system boots up, run the following commands:

[source,bash,subs="attributes"]
----
sudo systemctl daemon-reload
sudo systemctl enable {gravitee-service-name}
----

To start and stop {gravitee-component-name}, run the following commands:

[source,bash,subs="attributes"]
----
sudo systemctl start {gravitee-service-name}
sudo systemctl stop {gravitee-service-name}
----

NOTE: These commands provide no feedback as to whether {gravitee-component-name} started successfully.
This information is written to the log files located in `/opt/graviteeio/apim/rest-api/logs/`.

== View the logs

When `systemd` logging is enabled, the logging information is available using the `journalctl` commands.

To tail the journal, run the following command:

{'fraction_non_alphanumeric': 0.10094246031746032, 'fraction_numerical': 0.00248015873015873, 'mean_word_length': 5.29173166926677, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7594186', 'n_tokens_mistral': 1235, 'n_tokens_neox': 1192, 'n_words': 389}