"OD hadoop" first week 0625 Linux job one: Linux system basic commands (i)

Source: Internet
Author: User
Tags gpg

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.