Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the new features and usage of RHEL8

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Today I will talk to you about RHEL8's new features and how to use them. Many people may not know much about them. In order to let you know more, Xiaobian summarizes the following contents for you. I hope you can gain something according to this article.

RHEL8 How to configure a network

Continued service support in RHEL8

Network dependent services management has been transferred to NetworkManager and is no longer a network

Modify ip address is not recommended to modify the configuration file, restart NetwrokManager service new ip does not take effect

[root@RHEL8-xuegod.cd ~]# vim /etc/sysconfig/network-scripts/ifcfg-ens33

BOOTPROTO="static"

IPADDR=192.168.112.131

PREFIX=24

GATEWAY=192.168.112.2

DNS1=192.168.112.2

Restart the NIC with nmcl connection down/up ens33

recommended to use

[root@RHEL8-xuegod.cd ~]#nmcli connection modify ens33 ipv4.addresses 192.168.1.63/24 ipv4.method manual ipv4.gateway 192.168.1.1 ipv4.dns 192.168.1.1

If you want to use the previous method, you need to install this package network-scripts.

vim /etc/sysconfig/network-scripts/ifcfg-ens33

Restart may not work the first time

RHEL8 How to configure yum source

In RHEL8, the software source is divided into two parts

One is BaseOS.

One is AppStream.

In Red Hat Enterprise Linux 8.0, a unified ISO automatically loads BaseOS and AppStream installation source repositories.

It already exists in the CD link, but you need to configure the.repo file separately

BaseOS repository- BaseOS repository provides the underlying core OS content in the form of traditional RPM packages

AppStream repository-The Application Stream repository provides all the applications you might want to run in a given user space.

How do you know you need two yum sources? repodata

On Red Hat Enterprise Linux 8, a new version of the YUM tool based on DNF technology (YUM v4) ensures software installation.

YUM v4 has the following advantages over YUM v3 previously used on RHEL 7:

improve performance

Support modular content

Well-designed stable API for integration with tools

For details, please see the official document: dnf.readthedocs.io/en/latest/cli_vs_yum.html

YUM v4 is compatible with YUM v3 when using the command line, editing, or creating configuration files.

For installing software, you can use the yum command and its specific options as you did on RHEL 7.

Same configuration as yum

[root@RHEL8-xuegod.cd ~]#cd /etc/yum.repos.d/

[root@RHEL8-xuegod.cd ~]#vim rhel8-local.repo

Use yum to install nginx. In RHEL8, nginx has been added to the appstream source. You can install it directly.

How to use DNF

DNF package manager overcomes some of the bottlenecks of YUM package manager and improves user experience, memory footprint, dependency analysis, speed and more. DNF uses RPM, libsolv and hawkey libraries for package management operations.

The DNF release date is May 11, 2015.

How to use:

View DNF libraries available in the system

Dnf repolist

View all DNF libraries available and unavailable in the system

Dnf repolist all

List all RPM packages

Dnf list

List all installed RPM packages

Dnf list installed

List all RPM packages available for installation

Dnf list available

Search for RPM packages in the software library

Dnf search nano

Find the provider of a file

Dnf provides /bin/bash

View package details

Dnf info nano

installation package

Dnf install nano

remove a package

Dnf remove nano

Remove unwanted orphaned packages

Dnf autoremove

Delete cached unwanted packages

Dnf clean all

Get help using a command

Dnf help clean

View DNF command execution history

Dnf history

View all package groups

Dnf grouplist

Install a package group

Dnf groupinstall 'security tools'

Install specific software from specific package libraries

Dnf -enablerepo=epel install nginx

Reinstall specific software packages

Dnf reinstall nano

4. Cockpit (aircraft cockpit) use method

View the server in a web browser and use the mouse to perform system tasks. Easy to manage storage, configure networks, and check logs.

1)RHEL 8 automatically installs Cockpit and the firewall ports required for Cockpit are automatically opened

2)The Cockpit interface can be used to apply Policy-Based Decryption (PBD) rules to disks on managed systems

3)For systems registered in an Identity Management (IdM) domain, Cockpit defaults to using IdM resources centrally managed by the domain

4)Cockpit menus and pages can be navigated in mobile browsers

5)Virtual machines can be created and managed from the Cockpit Web interface

6)The Virtual Machines page can now be added to the Cockpit interface, which enables users to create and manage libvirt-based virtual machines

interactive session

Install Cockpit

Yum -y install cockpit

Cockpit enabled

Systemctl enable --now cockpit.socket

Set the boot to start and start the service at the same time. One command can be done to learn 666

Using Cockpit

Cockpit listens on port 9090

Open firefox and go to https://Address: 9090

Log in with your system user

Language can be set

Remote access to cockpit

Open the native chrome browser and enter 192.168.112.132: 9090, you can open it and continue to visit

Create logical volumes using cockpit (RHCSA tested?)

View in System

logical volume expansion so easy

After reading the above, do you have any further understanding of RHEL8's new features and how to use them? If you still want to know more knowledge or related content, please pay attention to the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report