1.
1)
vim/etc/udev/rules.d/ --persistent-Net.rulesVI/etc/sysconfig/network-scripts/ifcfg-Eth0type=Ethernetuuid=57d4c2c9-9e9c-48f8-a654-8e5bdbadafb8onboot=yesnm_controlled=YesBootproto = staticDefroute=Yesipv4_failure_fatal=Yesipv6init=NoNAME="System eth0"HWADDR=xx: 0c: in: -: E6:ecipaddr =172.16.53.100PREFIX= -gateway=172.16.53.2Last_connect=1415175123dns1=172.16.53.2
The virtual machine's network card is using the virtual network card
Save Exit X or Wq
2)
Vi/etc/sysconfig/network
Networking=yes
Hostname=beifeng-hadoop-01
Shutdown:
Halt
Shoutdown-h now
Restart: reboot
2.
Never use the graphical interface, only the command line;
The command line knocks quickly;
3. VI Editor
Seed
Awk
4. Local Yum
Xmanager
Mount-T iso9660 cd/etc/yum.repos.d/
Mount/dev/sr0/mnt
[[Email protected]-hadoop- on Yum. repos.d]#lsCentOS-base.repo Centos-debuginfo.repo Centos-media.repo centos-Vault.repo[[email protected]-hadoop- on Yum. repos.d]# Lesscentos-media.repo# CentOS-media.repo## This repo can is used with mounted DVD Media, verify theMountPoint for# CentOS-6. can use this repo andYumToInstallitems directly off the# DVD ISO that we release.## to use this repo, putinchyour DVD and use it with the other repos too:#Yum--enablerepo=c6-Media [command]## or forOnly the media repo, Dothis:##Yum--disablerepo=\*--enablerepo=c6-Media [Command][c6-Media]name=centos-$releasever-Mediabaseurl=file:///Rhel #centos配置本地yum源file:///media/centos/file:///media/cdrom/file:///media/cdrecorder/gpgcheck=1enabled=0Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-6
"OD hadoop" first week 0625 Linux job one: Linux system basic commands (i)