{"id":2948,"date":"2019-11-21T13:22:16","date_gmt":"2019-11-21T19:22:16","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=2948"},"modified":"2019-11-21T13:22:41","modified_gmt":"2019-11-21T19:22:41","slug":"how-to-install-centos-7","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=2948","title":{"rendered":"How To Install CentOS 7"},"content":{"rendered":"\n<p>What is CentOS<\/p>\n\n\n\n<p>CentOS is an open-source Linux distribution based on Red Hat Enterprise Linux (RHEL). CentOS 7 is viewed as the preferred option for web hosting due to its stability and active developer community.<\/p>\n\n\n\n<p><strong>In this tutorial, learn how to install CentOS 7 in a few simple steps.<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/phoenixnap.com\/kb\/wp-content\/uploads\/2019\/05\/how-to-install-centos-7.png\" alt=\"Step by step instructions on how to install CentOS 7\" class=\"wp-image-84140\"\/><\/figure><\/div>\n\n\n\n<p>Prerequisites<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Recommended minimum of 10GB of free disk space<\/li><li>CentOS 7 ISO install file<\/li><\/ul>\n\n\n\n<p>Follow the Steps to Install CentOS 7<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Download CentOS 7<\/h3>\n\n\n\n<p>To download the official and up-to-date CentOS 7 ISO file, navigate to&nbsp;<a href=\"https:\/\/www.centos.org\/download\/\">https:\/\/www.centos.org\/download\/<\/a>.<\/p>\n\n\n\n<p>Our recommendation for&nbsp;<strong>non-enterprise environments<\/strong>&nbsp;is to download the&nbsp;<strong>DVD ISO<\/strong>&nbsp;option, which includes the GUI.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/phoenixnap.com\/kb\/wp-content\/uploads\/2019\/05\/download-centos7-iso-instalation.png\" alt=\"Select DVD ISO option for CentOS 7 installation.\" class=\"wp-image-84746\"\/><\/figure><\/div>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><strong>Note<\/strong>: We recommend the&nbsp;<strong>Minimal ISO<\/strong>&nbsp;option only for production enterprise environments.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Create Bootable USB or DVD<\/h3>\n\n\n\n<p>Now that you have downloaded the ISO image, you can create a bootable USB, burn it on a DVD or load the image on a VM.<\/p>\n\n\n\n<p>Several applications can help you create a bootable USB. We recommend using&nbsp;<a href=\"https:\/\/www.balena.io\/etcher\/\" target=\"_blank\" rel=\"noreferrer noopener\">Etcher<\/a>. Download the application for your system (Windows, macOS or Linux), install and run.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/phoenixnap.com\/kb\/wp-content\/uploads\/2019\/04\/etcher-select-image.png\" alt=\"etcher running on a drive\" class=\"wp-image-76828\"\/><\/figure><\/div>\n\n\n\n<p>The setup is intuitive and easy:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Select the CentOS 7 ISO image.<\/li><li>Insert the USB flash.<\/li><li>Find the USB and select it in the&nbsp;<strong><em>Select drive<\/em><\/strong>&nbsp;step.<\/li><li>Click&nbsp;<strong>Flash.<\/strong><\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Boot the CentOS ISO File<\/h3>\n\n\n\n<p>Upon booting the CentOS 7 ISO file, you can begin the installation process. To do so, select&nbsp;<strong>Install CentOS 7<\/strong>. That will start the installer\u2019s graphical interface.<\/p>\n\n\n\n<p>If you are booting from a USB, click the&nbsp;<strong>Install to Hard Drive<\/strong>&nbsp;icon on the desktop. That will open the installation wizard.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/phoenixnap.com\/kb\/wp-content\/uploads\/2019\/04\/install-centos-e1556472367195.png\" alt=\"Select Install CentoOS 7\" class=\"wp-image-76834\"\/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Install CentOS<\/h3>\n\n\n\n<p>Before starting the installation process itself, select which language you would like to use during installation. The default option is English.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/phoenixnap.com\/kb\/wp-content\/uploads\/2019\/05\/select-languge-centos-installation-process.png\" alt=\"Select the language to be used for the installation process.\" class=\"wp-image-84145\"\/><\/figure><\/div>\n\n\n\n<p>Click&nbsp;<strong>Continue<\/strong>&nbsp;to confirm your selection.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/phoenixnap.com\/kb\/wp-content\/uploads\/2019\/05\/configure-installation-settings-centos.png\" alt=\"Select and configure custom option for the installation.\" class=\"wp-image-84146\"\/><\/figure><\/div>\n\n\n\n<p>There are a couple of settings you would want to configure. All items marked with a warning icon must be configured before you begin the installation.<\/p>\n\n\n\n<p>Some system configurations outlined below may differ based on use case.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Set Date and Time<\/h4>\n\n\n\n<p>To set a date and time for the system, click the&nbsp;<strong>Date &amp; Time&nbsp;<\/strong>icon under the&nbsp;<em>Localization<\/em>&nbsp;heading. Select a region\/time zone on the map of the world as seen below. Once you have selected your time zone, hit&nbsp;<strong>Done<\/strong>&nbsp;to save your changes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">Keyboard Layout<\/h4>\n\n\n\n<p>Select the&nbsp;<strong>Keyboard<\/strong>&nbsp;option under the&nbsp;<em>Localization<\/em>&nbsp;heading to set the keyboard layout.<\/p>\n\n\n\n<p>The system default is&nbsp;<em>English (US)<\/em>&nbsp;and the language you selected in the initial window. Click the&nbsp;<strong>plus<\/strong>&nbsp;icon to add more layouts. Move a layout to the top of the list to make it the default option.<\/p>\n\n\n\n<p>Click the&nbsp;<strong>Options<\/strong>&nbsp;button to define a key combination for switching between keyboard layouts. When you are satisfied with the settings defined, select the&nbsp;<strong>Done<\/strong>&nbsp;button to confirm the changes.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">System Language<\/h4>\n\n\n\n<p>Next, select the&nbsp;<strong>Language Support<\/strong>&nbsp;option under the&nbsp;<em>Localization<\/em>&nbsp;heading. The language selected in the&nbsp;<strong><em>Welcome to CentOS 7<\/em><\/strong>&nbsp;window will be the default system language. If necessary, select additional languages and hit the&nbsp;<strong>Done<\/strong>&nbsp;button once you are finished.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/phoenixnap.com\/kb\/wp-content\/uploads\/2019\/05\/select-language-support-centos.png\" alt=\"Choose the language for the support service.\" class=\"wp-image-84149\"\/><\/figure><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Software Selection<\/h4>\n\n\n\n<p>Select the Software Selection option under the&nbsp;<em>Software<\/em>&nbsp;heading. You will see a list of predefined&nbsp;<strong>Base Environment&nbsp;<\/strong>options and optional add-ons. This part entirely depends on your needs.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Minimal Install.<\/strong>&nbsp;This is the most flexible and least resource-demanding option. Excellent for production environment servers. Be prepared to customize the environment.<\/li><li><strong>Predefined Server Options.<\/strong>&nbsp;If you are 100% certain about the role of your server and don\u2019t want to customize it for its role, select one of the predefined server environments.<\/li><li><strong>GNOME Desktop and KDE Plasma Workspaces.<\/strong>&nbsp;These environments include a full graphical user interface.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/phoenixnap.com\/kb\/wp-content\/uploads\/2019\/05\/select-centos-base-enviorment.png\" alt=\"Select option for base installation of CentOS 7.\" class=\"wp-image-84152\"\/><\/figure><\/div>\n\n\n\n<p>When you have selected the base environment and optional add-ons, click the&nbsp;<strong>Done<\/strong>&nbsp;button. Wait for the system to check for software dependencies before you move on to the next option.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Select Installation Destination<\/h4>\n\n\n\n<p>Click the&nbsp;<strong>Installation Destination<\/strong>&nbsp;option under the&nbsp;<em>System<\/em>&nbsp;heading. Check your machine\u2019s storage under the&nbsp;<em>Local Standard Disks<\/em>&nbsp;heading. CentOS 7 will be installed on the selected disk.<\/p>\n\n\n\n<p><strong>Partitioning<\/strong><\/p>\n\n\n\n<p><strong>Option 1: Automatic Partitioning<\/strong><\/p>\n\n\n\n<p>Under the&nbsp;<em>Other Storage Options<\/em>&nbsp;heading, select the&nbsp;<strong><em>Automatically configure partitioning<\/em><\/strong>&nbsp;checkbox. This ensures the selected destination storage disk will automatically partition with the&nbsp;<strong>\/(root)<\/strong>,&nbsp;<strong>\/home<\/strong>&nbsp;and&nbsp;<strong>swap<\/strong>&nbsp;partitions. It will automatically create an LVM logical volume in the&nbsp;<strong>XFS file system<\/strong>.<\/p>\n\n\n\n<p>If you do not have enough free space, you can reclaim disk space and instruct the system to delete files.<\/p>\n\n\n\n<p>When finished, click the&nbsp;<strong>Done<\/strong>&nbsp;button.<\/p>\n\n\n\n<p><strong>Option 2: Manual Partitioning<\/strong><\/p>\n\n\n\n<p>Select the&nbsp;<strong><em>I will configure partitioning<\/em><\/strong>&nbsp;checkbox and choose&nbsp;<strong>Done.<\/strong><\/p>\n\n\n\n<p>If you want to use other file systems (such as&nbsp;<strong>ext4<\/strong>&nbsp;and&nbsp;<strong>vfat<\/strong>) and a non-LVM partitioning scheme, such as&nbsp;<strong>btrfs<\/strong>. This will initiate a configuration pop-up where you can set up your partitioning manually.<\/p>\n\n\n\n<p>This is an advanced setting option, very much based on your requirements.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Configuring KDUMP<\/h4>\n\n\n\n<p>KDUMP is enabled by default.<\/p>\n\n\n\n<p>To disable the KDUMP kernel crash dumping mechanism, select the&nbsp;<strong>KDUMP<\/strong>&nbsp;option under the&nbsp;<em>System<\/em>&nbsp;heading and uncheck the&nbsp;<strong><em>Enable kdump<\/em><\/strong>&nbsp;checkbox. Click the&nbsp;<strong>Done<\/strong>&nbsp;button to confirm your changes.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><strong>Note<\/strong>: KDUMP captures system information at the time of a crash. It helps you diagnose the cause of the crash. When enabled, kdump reserves a portion of system memory.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">Network and Hostname<\/h4>\n\n\n\n<p>Click the&nbsp;<em>Network &amp; Host Name&nbsp;<\/em>option under the&nbsp;<em>System<\/em>&nbsp;heading.<\/p>\n\n\n\n<p>For the hostname, type in the fully qualified domain name of your system. In our example, we will&nbsp;<a href=\"https:\/\/phoenixnap.com\/kb\/how-to-set-or-change-a-hostname-in-centos-7\">set the&nbsp;<strong>Hostname<\/strong><\/a>&nbsp;as&nbsp;<em>my_server.phoenixnap.com,<\/em>&nbsp;where&nbsp;<em>my_server<\/em>&nbsp;is the hostname while&nbsp;<em>phoenixnap.com<\/em>&nbsp;is the domain.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/phoenixnap.com\/kb\/wp-content\/uploads\/2019\/05\/configure-internet-conection-centos-installation.png\" alt=\"Configure ethernet settings.\" class=\"wp-image-84156\"\/><\/figure><\/div>\n\n\n\n<p>Select&nbsp;<strong>Configure\u2026<\/strong>&nbsp;and select to add&nbsp;<strong>IPv4<\/strong>&nbsp;settings or&nbsp;<strong>IPv6<\/strong>&nbsp;settings depending on what you have. Add static IP addresses to help identify your computer on the network. Bear in mind that your network environment\u2019s settings define these values.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/phoenixnap.com\/kb\/wp-content\/uploads\/2019\/05\/set-ipv4-ipv6-centos-installation.png\" alt=\"IPv4 and Ipv6 settings durring CentOS installation.\" class=\"wp-image-84157\"\/><\/figure><\/div>\n\n\n\n<p>To add a static IP address:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Select&nbsp;<strong>Manual<\/strong>&nbsp;from the&nbsp;<em>Method<\/em>&nbsp;drop-down.<\/li><li>Click the&nbsp;<strong>Add<\/strong>&nbsp;button to add a static IP address.<\/li><li>Enter the information for your network domain.<ul><li>IP Address<\/li><li>Netmask Address<\/li><li>Gateway Address<\/li><li>DNS Servers Address<\/li><\/ul><\/li><li>Click&nbsp;<strong>Save<\/strong>&nbsp;to confirm your changes.<\/li><\/ol>\n\n\n\n<p>By default, all detected Ethernet connections are disabled. Click the&nbsp;<strong>ON\/OFF toggle<\/strong>&nbsp;to enable the connection.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Security Policy<\/h4>\n\n\n\n<p>Select the&nbsp;<strong>Security Policy<\/strong>&nbsp;option under the&nbsp;<em>System<\/em>&nbsp;heading. Choose a profile from the list and hit&nbsp;<strong>Select profile.&nbsp;<\/strong>Hit the&nbsp;<strong>Done<\/strong>&nbsp;button to confirm your selection.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Start the Installation Process<\/h4>\n\n\n\n<p>Once everything is set up according to your liking, hit&nbsp;<strong>Begin Installation<\/strong>&nbsp;to start the install. This will start the initial installation process.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/phoenixnap.com\/kb\/wp-content\/uploads\/2019\/05\/define-root-user-password-centos-installation.png\" alt=\"How to define root user and password.\" class=\"wp-image-84159\"\/><\/figure><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Define Root Password<\/h4>\n\n\n\n<p>To define the root user, select the&nbsp;<strong>Root Password<\/strong>&nbsp;icon.<\/p>\n\n\n\n<p>Select a&nbsp;<strong>Root Password<\/strong>&nbsp;and re-enter it in&nbsp;<strong>Confirm<\/strong>&nbsp;field.<\/p>\n\n\n\n<p>Root user accounts should consist of at least 12 characters, including uppercase and lowercase letters, numbers, and special characters. We cannot stress enough the importance of a well-defined root password.<\/p>\n\n\n\n<p>Click the&nbsp;<strong>Done<\/strong>&nbsp;button to proceed.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/phoenixnap.com\/kb\/wp-content\/uploads\/2019\/05\/define-root-password-centos-install.png\" alt=\"Define root password for administering the system.\" class=\"wp-image-84162\"\/><\/figure><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Create User<\/h4>\n\n\n\n<p>To begin, select the&nbsp;<strong>User Creation<\/strong>&nbsp;option.<\/p>\n\n\n\n<p>Add a new system account user by defining the&nbsp;<strong>full name<\/strong>,&nbsp;<strong>user name<\/strong>, and&nbsp;<strong>password<\/strong>. We recommend you check the&nbsp;<strong><em>Make this user administrator<\/em><\/strong>&nbsp;and&nbsp;<strong><em>Require a password to use this account<\/em><\/strong>&nbsp;checkboxes. This will grant the user root privileges.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/phoenixnap.com\/kb\/wp-content\/uploads\/2019\/05\/create-user-centos-installation.png\" alt=\"Create user durring CentOS 7 installation.\" class=\"wp-image-84163\"\/><\/figure><\/div>\n\n\n\n<p>After you fill in all of the fields and define a&nbsp;<strong>secure password<\/strong>, select&nbsp;<strong>Done<\/strong>&nbsp;in the upper-left corner of the screen.<\/p>\n\n\n\n<p>Wait for the installation process to complete.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/phoenixnap.com\/kb\/wp-content\/uploads\/2019\/05\/reboot-centos-installation-succesful.png\" alt=\"Reboot system after CentOS 7 installation.\" class=\"wp-image-84164\"\/><\/figure><\/div>\n\n\n\n<p>Before you start using your new CentOS installation, reboot the system. Click the&nbsp;<strong>Reboot<\/strong>&nbsp;button.<\/p>\n\n\n\n<p>Log into the system by using the credentials you defined previously.<\/p>\n\n\n\n<p>Conclusion<\/p>\n\n\n\n<p>This tutorial outlined how to install CentOS 7, the latest version. By following this guide, you should have a successful installation and boot right into the system.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is CentOS CentOS is an open-source Linux distribution based on Red Hat Enterprise Linux (RHEL). CentOS 7 is viewed as the preferred option for web hosting due to its stability and active developer community. In this tutorial, learn how to install CentOS 7 in a few simple steps. Prerequisites Recommended minimum of 10GB of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-2948","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2948","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2948"}],"version-history":[{"count":2,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2948\/revisions"}],"predecessor-version":[{"id":2950,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2948\/revisions\/2950"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2948"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2948"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}