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--
This article mainly introduces "installation tutorial of Linux system Centos7". In daily operation, I believe that many people have doubts about the installation tutorial of Linux system Centos7. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "installation tutorial of Linux system Centos7". Next, please follow the editor to study!
Installed version of the image file
CentOS-7-x86_64-DVD-1511
Downloads are available on all major websites.
After the virtual machine is created, put the image file into the VM DVD CD-ROM drive
Turn on the virtual machine
Select Install CentOS 7 for installation
Enter
Select the installation language (the language of the installation process is not the language after the system installation)
Select disk
It is best to install the system with minimum installation and choose the required software package.
At the same time, you can set the machine name and configure the network
When you are finished, click start installation to proceed to the next installation step
Set the password of the administrator root
Choose to restart the system after the installation process is complete
Enter the user and password to log in, and the whole installation process is over.
After logging in, I found that the ifconfig command could not be used, and the result was that the software package net-tools.x86_64 was not installed. Well, it had to be installed by yum install.
[root@centos7 ~] # vi / etc/sysconfig/network-scripts/ifcfg-eth0
TYPE= "Ethernet"
BOOTPROTO= "static"
IPADDR=192.168.1.218
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=218.108.248.200
DEFROUTE= "yes"
PEERDNS= "yes"
PEERROUTES= "yes"
IPV4_FAILURE_FATAL= "no"
IPV6INIT= "yes"
IPV6_AUTOCONF= "yes"
IPV6_DEFROUTE= "yes"
IPV6_PEERDNS= "yes"
IPV6_PEERROUTES= "yes"
IPV6_FAILURE_FATAL= "no"
NAME= "eth0"
UUID= "0fdc93a8-ec13-4fbe-90f3-bbfa4b83e514"
DEVICE= "eno16777736"
ONBOOT= "yes"
"/ etc/sysconfig/network-scripts/ifcfg-eth0" 20L, 406C written
After configuring the address and DNS information, you can connect to the network normally. In order to facilitate SSH connection, it is necessary to configure fixed IP.
[root@centos7 ~] # ifconfig
Eno16777736: flags=4163 mtu 1500
Inet 192.168.1.218 netmask 255.255.255.0 broadcast 192.168.1.255
Inet6 fe80::20c:29ff:fee0:b1d3 prefixlen 64 scopeid 0x20
Ether 00:0c:29:e0:b1:d3 txqueuelen 1000 (Ethernet)
RX packets 925 bytes 639103 (624.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 472bytes 59555 (58.1KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
After the address configuration is completed, you can configure the yum source.
[root@centos7 yum.repos.d] # wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
[root@centos7 yum.repos.d] # ll
Total 32
-rw-r--r--. 1 root root 1572 May 18 2015 CentOS7-Base-163.repo
-rw-r--r--. 1 root root 1664 Dec 9 2015 CentOS-Base.repo
-rw-r--r--. 1 root root 1309 Dec 9 2015 CentOS-CR.repo
-rw-r--r--. 1 root root 649 Dec 9 2015 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root 290 Dec 9 2015 CentOS-fasttrack.repo
-rw-r--r--. 1 root root 630 Dec 9 2015 CentOS-Media.repo
-rw-r--r--. 1 root root 1331 Dec 9 2015 CentOS-Sources.repo
-rw-r--r--. 1 root root 1952 Dec 9 2015 CentOS-Vault.repo
[root@centos7 yum.repos.d] # mv CentOS-Base.repo CentOS-Base.repo.1117
[root@centos7 yum.repos.d] # mv CentOS7-Base-163.repo CentOS-Base.repo
At this point, on the "Linux system Centos7 installation tutorial" study is over, I hope to be able to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.