I have been using CentOS 7 for a long time, and now I want to try CentOS 8. CentOS 8 has a built-in visual management tool called Cockpit, which supports all common command line operations.

SpringBoot e-commerce project mall (50K + STAR) address: github.com/macrozheng/…

Cockpit profile

The Cockpit ® is an easy-to-use, web-based management tool designed for CentOS 8. The Cockpit ® is an easy-to-use, easy-to-use, and easy-to-use command-line management tool for Linux.

This is the Cockpit management interface, and it looks pretty cool!

8 to install CentOS

If you want to play the latest version of the Cockpit, you need to install CentOS 8.

  • CentOS 8The installation andCentOS 7Basically the same, this is the latest version8.5.2111, you can refer to the specific installationVirtual machine installation and use Linux, read this article enough!, image download address:Vault.centos.org/8.5.2111/is…

  • useCentOS 8Yum command installation software often encountered problems can not download, switch to ali cloud mirror source can be solved, used hereCentos vault - 8.5.2111. RepoWarehouse configuration;
Back up the original BaseOS configuration first
mv /etc/yum.repos.d/CentOS-Linux-BaseOS.repo /etc/yum.repos.d/CentOS-Linux-BaseOS.repo.bak
Download the new configurationSudo wget -o/etc/yum repos. D/CentOS - Linux - BaseOS. 'http://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repoCopy the code
  • The YUM repository configuration file is in/etc/yum.repos.dDirectory, and then modifyCentOS-Linux-AppStream.repoFile, direct copyCentOS-Linux-BaseOSIn theappstreamPartial;
[appstream] name= centos-8.5.2111-appstream-mirrors.aliyun.com baseurl=http://mirrors.aliyun.com/centos-vault/8.5.2111/AppStream/$basearch/os/ http://mirrors.aliyuncs.com/centos-vault/8.5.2111/AppStream/$basearch/os/ http://mirrors.cloud.aliyuncs.com/centos-vault/8.5.2111/AppStream/$basearch/os/ gpgcheck = 0 gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-OfficialCopy the code
  • Run the following command to clear the cache.
sudo yum clean all
sudo yum makecache
Copy the code
  • Then query an installation package information test, found that it can be used normally.

* Cockpit installation start

This is how to install and start the Cockpit.

  • CentOS 8The Cockpit is already installed by default.
# Configure cockpit
systemctl enable --now cockpit.socket
# Start Cockpit Service
systemctl start cockpit
Copy the code
  • CentOS 7If you want to use the Cockpit, you have to install it and open it up.
# installation
yum install cockpit
# Open service
firewall-cmd --permanent --zone=public --add-service=cockpit
Reload the protective wall
firewall-cmd --reload
Copy the code
  • Through the browser after the installation is complete access to the Cockpit, the use of Linux users can login (such as the root user), access the address: http://192.168.3.106:9090/

Cockpit using

We’ve been using the Cockpit command line to manage Linux servers, but now that the Cockpit is ready to use the graphical interface, let’s take a look at the features of the Cockpit.

  • throughAn overview ofYou can view basic server information, including CPU and memory usage, system information, and server configuration.

  • Click on theuseYou can view more detailed CPU, memory, disk, network and other monitoring information, which is basically an interface versiontopThe command;

  • throughstorageYou can view more detailed file system information, manage volume groups, and mount NFS.

  • throughnetworkYou can view the firewall and network monitoring information, you can open and close the firewall;

  • Click on theA firewallYou can view open service ports throughAdd the serviceYou can open the port. It’s still in usefirewalldThe command?

  • throughPodman containerManagement can download images and create run containers just like Docker;

  • For example, we can create an Nginx container based on an Nginx image and run it in80Port;

  • Access the server directly at this time80Port to access the Nginx home page;

  • throughaccountEasy to manage users in Linux, never againuseraddThe command;

  • Also, Cockpit will tell us if the server software needs to be updatedSoftware updatesUpdate operations can be performed;

  • throughapplicationThe function can download some server applications, currently only a few can be installed, looking forward to more options in the future;

  • If that doesn’t work for you, Cockpit also has a command line featureterminalUse namely;

  • The Cockpit also provides SELinux management to control its opening and closing.

conclusion

As the official visual management feature of CentOS 8, the Cockpit has many of the most popular server management functions. The interface is cool and easy to use. Upgrade to CentOS 8 friends, might as well try it!

The resources

Official website: cockpit-project.org/documentati…

In this paper, making github.com/macrozheng/… Already included, welcome everyone Star!