{"id":6,"date":"2024-12-13T12:28:56","date_gmt":"2024-12-13T12:28:56","guid":{"rendered":"https:\/\/paessens.org\/blog\/?p=6"},"modified":"2025-09-24T11:20:19","modified_gmt":"2025-09-24T09:20:19","slug":"how-to-install-and-set-up-cockpit-on-centos-9","status":"publish","type":"post","link":"https:\/\/paessens.org\/blog\/index.php\/2024\/12\/13\/how-to-install-and-set-up-cockpit-on-centos-9\/","title":{"rendered":"How to Install and Set Up Cockpit on CentOS 9"},"content":{"rendered":"\n<p class=\"is-style-text-subtitle wp-block-paragraph\">Prerequisites<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Server with CentOS 9<\/li>\n\n\n\n<li>Root or sudo privilege on server<\/li>\n<\/ul>\n\n\n\n<p class=\"is-style-text-subtitle wp-block-paragraph\">Installation Cockpit<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Login into the server. Fist step is to update the system:<\/p>\n\n\n\n<pre class=\"wp-block-code is-style-default\"><code><code>sudo yum update -y<\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Once updated and rebooted, install Cockpit<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>sudo yum install cockpit -y<\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">When installed, enable and start the Cockpit service<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>sudo systemctl enable --now cockpit.socket<\/code><\/code><\/pre>\n\n\n\n<p class=\"is-style-text-subtitle wp-block-paragraph\">Configuring Firewall<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If firewall is running, you need to allow traffic on port 9090. (Default port of Cockpit)<\/p>\n\n\n\n<pre class=\"wp-block-code is-style-default\"><code><code>sudo firewall-cmd --permanent --zone=public --add-service=cockpit<br>sudo firewall-cmd --reload<\/code><\/code><\/pre>\n\n\n\n<p class=\"is-style-text-subtitle wp-block-paragraph\">Accessing Cockpit Web Interface<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With Cockpit installed and the firewall configured, you can now access the web interface. Open a web browser and navigate to:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>http:\/\/your_server_ip:9090<\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Login with your CentOS server&#8217;s username and password to start managing your server through Cockpit&#8217;s web interface.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Prerequisites Installation Cockpit Login into the server. Fist step is to update the system: Once updated and rebooted, install Cockpit When installed, enable and start the Cockpit service Configuring Firewall If firewall is running, you need to allow traffic on<\/p>\n<p><a href=\"https:\/\/paessens.org\/blog\/index.php\/2024\/12\/13\/how-to-install-and-set-up-cockpit-on-centos-9\/\" class=\"awp-btn awp-btn-secondary awp-btn-bubble\">Continue Reading<span class=\"screen-reader-text\">How to Install and Set Up Cockpit on CentOS 9<\/span><i class=\"fa fa-arrow-right\"><\/i><span class=\"bubble_effect\"><span class=\"circle top-left\"><\/span><span class=\"circle top-left\"><\/span><span class=\"circle top-left\"><\/span>\t<span class=\"button effect-button\"><\/span><span class=\"circle bottom-right\"><\/span>\t<span class=\"circle bottom-right\"><\/span><span class=\"circle bottom-right\"><\/span><\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[6,8],"class_list":["post-6","post","type-post","status-publish","format-standard","hentry","category-centos-9","tag-centos","tag-cockpit"],"_links":{"self":[{"href":"https:\/\/paessens.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/6","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/paessens.org\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/paessens.org\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/paessens.org\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/paessens.org\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=6"}],"version-history":[{"count":3,"href":"https:\/\/paessens.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/6\/revisions"}],"predecessor-version":[{"id":25,"href":"https:\/\/paessens.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/6\/revisions\/25"}],"wp:attachment":[{"href":"https:\/\/paessens.org\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=6"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/paessens.org\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=6"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/paessens.org\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}