In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Xiaobian to share with you how to install and use Cockpit on CentOS 8/RHEL 8, I believe most people still do not know how to, so share this article for your reference, I hope you have a lot of harvest after reading this article, let's go to understand it together!
Cockpit is a web-based server administration tool for CentOS and RHEL systems. CentOS 8 and RHEL 8 were recently released, where cockpit is the default server administration tool. Its packages are available in the default CentOS 8 and RHEL 8 repositories. Cockpit is a useful web-based GUI tool that allows system administrators to monitor and manage Linux servers, manage networking and storage in servers, containers, virtual machines, and examine system and application logs.
In this article, we will demonstrate how to install and set up Cockpit in CentOS 8 and RHEL 8.
Installing and setting 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
Allow Cockpit ports in the system firewall using the following command:
[root@linuxtechi ~]# firewall-cmd --permanent --add-service=cockpit[root@linuxtechi ~]# firewall-cmd --reload
Verify that the cockpit service is up and running by executing the following command:
[root@linuxtechi ~]# systemctl status cockpit.socket[root@linuxtechi ~]# ss -tunlp | grep cockpit[root@linuxtechi ~]# ps auxf|grep cockpitcockpit-status-centos8-rhel8cockpit-status-centos8-rhel8
Access Cockpit on CentOS 8/RHEL 8
As we can see in the output of the command above, cockpit is listening on tcp port 9090, open your Web browser and type url: https://:9090.
Cockpit landing page in RHEL 8:
Use a username with administrator privileges, or we can log in with the password of root. If you want to assign administrator privileges to any local user, execute the following command:
[root@linuxtechi ~]# usermod -G wheel pkumar
Here pkumar is my local user,
After entering the user password, select "Reuse my password for privileged tasks" and click "Log In" and we see the following page:
On the left-hand column, we can see content that can be monitored and configured via the cockpit GUI,
Suppose you want to check if there are any updates available in CentOS 8/RHEL 8, click "System Updates":
To install all updates, click Install All Updates:
If you want to modify the network and add Bond interfaces and bridges, click Networking:
As seen above, we have the option of creating Bond interfaces, bridges, and VLAN tagged interfaces.
Suppose we want to create a br0 bridge and add port enp0 s3 to it, click Add Bridge:
Specify the bridge name as br0, the port as enp0 s3, and click Apply.
On the next page, we will see that the bridge is active and has acquired the same IP as the enp0s3 interface:
If you want to check the system logs, click "Logs" and we can view logs according to severity:
The above is all the content of "How to install and use Cockpit on CentOS 8/RHEL 8", thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!
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.