In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to install and use Cockpit on CentOS 8/RHEL 8, this article introduces the corresponding analysis and answer in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.
Cockpit is a Web-based server management tool that can be used in CentOS and RHEL systems. Recently released CentOS 8 and RHEL 8, where cockpit is the default server management tool. Its packages are available in the default CentOS 8 and RHEL 8 repositories. Cockpit is a useful Web-based GUI tool that enables system administrators to monitor and manage Linux servers, manage networks and storage in servers, containers, virtual machines, and check system and application logs.
Install and set up Cockpit on CentOS 8/RHEL 8
Log in to your CentOS 8/RHEL 8, open the terminal and execute the following dnf command:
[root@linuxtechi ~] # dnf install cockpit-y
Run the following command to enable and start the cockpit service:
[root@linuxtechi ~] # systemctl start cockpit.socket [root@linuxtechi ~] # systemctl enable cockpit.socket
Use the following command to allow Cockpit ports in the system firewall:
[root@linuxtechi] # firewall-cmd-- permanent-- add-service=cockpit [root@linuxtechi] # firewall-cmd-- reload
Verify that the cockpit service is up and running, and execute the following command:
[root@linuxtechi ~] # systemctl status cockpit.socket [root@linuxtechi ~] # ss-tunlp | grep cockpit [root@linuxtechi ~] # ps auxf | grep cockpit
Cockpit-status-centos8-rhel8
Access Cockpit on CentOS 8/RHEL 8
As we can see in the output of the above command, cockpit is listening on tcp port 9090, open your Web browser and type url: https://:9090.
CentOS8-cockpit-login-screen
The Cockpit login page in RHEL 8:
RHEL8-Cockpit-Login-Screen
Use a user name with administrator privileges, or we can log in with the password of the root user. If you want to assign administrator privileges to any local users, execute the following command:
[root@linuxtechi ~] # usermod-G wheel pkumar
Here pkumar is my local user.
After entering the user's password, select "Reuse my password for privileged tasks", then click "Log In", and then we see the following page:
Cockpit-dashboard-centos8
On the left column, we can see what can be monitored and configured through cockpit GUI
Suppose you want to check if any updates are available in CentOS 8/RHEL 8, click "System Updates":
Software-Updates-Cockpit-GUI-CentOS8-RHEL8
To install all updates, click "Install All Updates":
Install-Software-Updates-CentOS8-RHEL8
If you want to modify the network and add Bond interfaces and bridges, click Networking:
Networking-Cockpit-Dashboard-CentOS8-RHEL8
As you can see above, we have the option to create Bond interfaces, bridges, and VLAN tagged interfaces.
Suppose we want to create a br0 bridge and add an enp0s3 port to it, click "Add Bridge":
Specify the bridge name as br0, the port as enp0s3, and then click Apply.
Add-Bridge-Cockpit-CentOS8-RHEL8
On the next page, we will see that the bridge is active and gets the same IP as the enp0s3 interface:
Bridge-Details-Cockpit-Dashboard-CentOS8-RHEL8
If you want to check the system log, click "Logs", and we can view the log based on severity:
System-Logs-Cockpit-Dashboard-CentOS8-RHEL8
This is the answer to the question about how to install and use Cockpit on CentOS 8/RHEL 8. I hope the above content can be of some help to you. If you still have a lot of doubts to solve, you can follow the industry information channel for more related knowledge.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.