Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| elearning:workbooks:redhat:rh124en:l111 [2024/11/12 11:23] – admin | elearning:workbooks:redhat:rh124en:l111 [2024/11/28 10:06] (Version actuelle) – admin | ||
|---|---|---|---|
| Ligne 5: | Ligne 5: | ||
| Last update : ~~LASTMOD~~ | Last update : ~~LASTMOD~~ | ||
| - | ======RH12412 - Service and daemon management====== | + | ======RH12412 - Service and Daemon Management====== |
| =====Contents===== | =====Contents===== | ||
| Ligne 562: | Ligne 562: | ||
| * This directive specifies targets that should be reached and units that should be started before the sshd unit. However, this directive does not specify a dependency, | * This directive specifies targets that should be reached and units that should be started before the sshd unit. However, this directive does not specify a dependency, | ||
| * **Wants=sshd-keygen.target**, | * **Wants=sshd-keygen.target**, | ||
| - | * This directive specifies a soft dependency. In other words, Systemd will try to start the **sshd-keygen.target** unit, but if this fails, the sshd unit will be started. | + | * This directive specifies a soft dependency. In other words, Systemd will try to start the **sshd-keygen.target** unit, but if this fails, the sshd unit will be started |
| The file also contains the following lines in the **[Service]** section: | The file also contains the following lines in the **[Service]** section: | ||
| Ligne 708: | Ligne 708: | ||
| </ | </ | ||
| - | ===2.2 - Overriding Default Configuration Files=== | + | ===2.2 - Overriding |
| Default configuration files can also be overridden by files in other directories: | Default configuration files can also be overridden by files in other directories: | ||
| Ligne 748: | Ligne 748: | ||
| ====LAB #3 - The systemd-analyze command==== | ====LAB #3 - The systemd-analyze command==== | ||
| - | To obtain an evaluation of the start-up | + | To consult |
| < | < | ||
| Ligne 756: | Ligne 756: | ||
| </ | </ | ||
| - | The **blame** option in the systemd-analyze command allows you to see the boot time of each Unit so that you can concentrate on the slowest: | + | The **blame** option in the systemd-analyze command allows you to see the boot time of each individual |
| < | < | ||
| Ligne 944: | Ligne 944: | ||
| * This line indicates which service should be started. | * This line indicates which service should be started. | ||
| - | ===4.1 - Checking | + | ===4.1 - Checking Target |
| The dependencies of a Target can be checked using the **systemctl list-dependencies** command: | The dependencies of a Target can be checked using the **systemctl list-dependencies** command: | ||
| Ligne 1131: | Ligne 1131: | ||
| </ | </ | ||
| - | ====LAB #5 - Services | + | ====LAB #5 - Managing |
| ===5.1 - Managing Single Instances=== | ===5.1 - Managing Single Instances=== | ||
| Ligne 1139: | Ligne 1139: | ||
| < | < | ||
| [root@redhat9 ~]# dnf install httpd | [root@redhat9 ~]# dnf install httpd | ||
| - | Updating Subscription Management repositories. | ||
| - | Last metadata expiration check: 1:59:56 ago on Thu 26 Sep 2024 12:57:02 PM CEST. | ||
| - | Dependencies resolved. | ||
| - | ================================================================================================================================================================================================================== | ||
| - | | ||
| - | ================================================================================================================================================================================================================== | ||
| - | Installing: | ||
| - | | ||
| - | Installing dependencies: | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | Installing weak dependencies: | ||
| - | | ||
| - | | ||
| - | | ||
| - | |||
| - | Transaction Summary | ||
| - | ================================================================================================================================================================================================================== | ||
| - | Install | ||
| - | |||
| - | Total download size: 2.2 M | ||
| - | Installed size: 6.0 M | ||
| - | Is this ok [y/N]: y | ||
| - | Downloading Packages: | ||
| - | (1/11): apr-util-bdb-1.6.1-23.el9.x86_64.rpm | ||
| - | (2/11): apr-util-openssl-1.6.1-23.el9.x86_64.rpm | ||
| - | (3/11): apr-util-1.6.1-23.el9.x86_64.rpm | ||
| - | (4/11): redhat-logos-httpd-90.4-2.el9.noarch.rpm | ||
| - | (5/11): apr-1.7.0-12.el9_3.x86_64.rpm | ||
| - | (6/11): mod_http2-2.0.26-2.el9_4.x86_64.rpm | ||
| - | (7/11): httpd-core-2.4.57-11.el9_4.1.x86_64.rpm | ||
| - | (8/11): httpd-filesystem-2.4.57-11.el9_4.1.noarch.rpm | ||
| - | (9/11): httpd-2.4.57-11.el9_4.1.x86_64.rpm | ||
| - | (10/11): httpd-tools-2.4.57-11.el9_4.1.x86_64.rpm | ||
| - | (11/11): mod_lua-2.4.57-11.el9_4.1.x86_64.rpm | ||
| - | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ||
| - | Total 1.2 MB/s | 2.2 MB | ||
| - | Running transaction check | ||
| - | Transaction check succeeded. | ||
| - | Running transaction test | ||
| - | Transaction test succeeded. | ||
| - | Running transaction | ||
| - | Preparing | ||
| - | Installing | ||
| - | Installing | ||
| - | Installing | ||
| - | Installing | ||
| - | Installing | ||
| - | Running scriptlet: httpd-filesystem-2.4.57-11.el9_4.1.noarch | ||
| - | Installing | ||
| - | Installing | ||
| - | Installing | ||
| - | Installing | ||
| - | Installing | ||
| - | Installing | ||
| - | Running scriptlet: httpd-2.4.57-11.el9_4.1.x86_64 | ||
| - | Verifying | ||
| - | Verifying | ||
| - | Verifying | ||
| - | Verifying | ||
| - | Verifying | ||
| - | Verifying | ||
| - | Verifying | ||
| - | Verifying | ||
| - | Verifying | ||
| - | Verifying | ||
| - | Verifying | ||
| - | Installed products updated. | ||
| - | |||
| - | Installed: | ||
| - | apr-1.7.0-12.el9_3.x86_64 | ||
| - | httpd-core-2.4.57-11.el9_4.1.x86_64 | ||
| - | redhat-logos-httpd-90.4-2.el9.noarch | ||
| - | |||
| - | Complete! | ||
| </ | </ | ||