In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail what configurations need to be done after minimizing the installation of CentOS 6.x. The content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
One, / boot partition backup
Second, network configuration
Modify the hostname:
The code is as follows:
# vi / etc/sysconfig/network
NETWORKING=yes
# HOSTNAME=localhost.localdomain
HOSTNAME=CentOS-1
# you can also set up a gateway here
# GATEWAY=192 . 168.30.1
Set the network to DHCP to get
The code is as follows:
Vi / etc/sysconfig/network-scrip/ifcfg-eth0
DEVICE= "eth0"
BOOTPROTO= "dhcp"
HWADDR= "08:00:27:A7:AB:97"
NM_CONTROLLED= "no"
ONBOOT= "no"
TYPE= "Ethernet"
UUID= "9622f9e1-6218-4c56-9f45-7ae29b477e89"
Set static IP
The code is as follows:
Vi / etc/sysconfig/network-scrip/ifcfg-eth0
[root@CentOS-3 ssh] # cat / etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
HWADDR=08:00:27:e2:62:9b
NM_CONTROLLED=no
ONBOOT=yes
TYPE=Ethernet
IPADDR=192.168.30.223
NETMASK=255.255.255.0
GATEWAY=192.168.30.1
DNS=8.8.8.8
USERCTL=no
IPV6INIT=no
Third, install the wget tool
The code is as follows:
Yum install wget
Fourth, source configuration
The code is as follows:
Cd / etc/yum.repos.d
Mv CentOS-Base.repo bak-CentOS-Base.repo
Wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
Yum clean all
Yum makecache
Fifth, ssh key configuration
Https://www.yisu.com/os/RedHat/63316.html
VI. Sudo configuration
Seventh, the installation of compilation environment and tools
The code is as follows:
Yum groupinstall "Development Libraries"Development Tools"
The configuration that needs to be done after minimizing the installation of CentOS 6.x is shared here. I hope the above content can be of some help and learn more knowledge. If you think the article is good, you can share it for more people to see.
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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.