zoukankan      html  css  js  c++  java
  • 《OD学hadoop》第一周0625 LINUX作业一:Linux系统基本命令(一)

    1.  

    1)

    vim /etc/udev/rules.d/70-persistent-net.rules
    vi /etc/sysconfig/network-scripts/ifcfg-eth0
    TYPE=Ethernet
    UUID=57d4c2c9-9e9c-48f8-a654-8e5bdbadafb8
    ONBOOT=yes
    NM_CONTROLLED=yes
    BOOTPROTO=static
    DEFROUTE=yes
    IPV4_FAILURE_FATAL=yes
    IPV6INIT=no
    NAME="System eth0"
    HWADDR=00:0c:29:79:e6:ec
    IPADDR=172.16.53.100
    PREFIX=24
    GATEWAY=172.16.53.2
    LAST_CONNECT=1415175123
    DNS1=172.16.53.2

    虚拟机的网卡用的是虚拟网卡

    保存退出x或者 wq

    2)

    vi /etc/sysconfig/network

    NETWORKING=yes
    HOSTNAME=beifeng-hadoop-01

    关机:

    halt

    shoutdown -h now

    重启:reboot

    2. 

    从不用图形界面,只用命令行;

    命令行敲的很快;

    3. vi编辑器

    seed

    awk

    4. 本地yum

    xmanager

    mount -t iso9660 
    cd /etc/yum.repos.d/
    mount /dev/sr0 /mnt
    [root@beifeng-hadoop-01 yum.repos.d]# ls
    CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Media.repo CentOS-Vault.repo
    
    [root@beifeng-hadoop-01 yum.repos.d]# less CentOS-Media.repo
    # CentOS-Media.repo
    #
    # This repo can be used with mounted DVD media, verify the mount point for
    # CentOS-6. You can use this repo and yum to install items directly off the
    # DVD ISO that we release.
    #
    # To use this repo, put in your DVD and use it with the other repos too:
    # yum --enablerepo=c6-media [command]
    #
    # or for ONLY the media repo, do this:
    #
    # yum --disablerepo=* --enablerepo=c6-media [command]
    
    [c6-media]
    name=CentOS-$releasever - Media
    baseurl=file:///rhel #centos配置本地yum源
    
    file:///media/CentOS/
    file:///media/cdrom/
    file:///media/cdrecorder/
    gpgcheck=1
    enabled=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
  • 相关阅读:
    菜鸟系列docker——docker镜像下(5)
    菜鸟系列docker——docker镜像中(4)
    菜鸟系列docker——docker镜像上(3)
    菜鸟系列docker——docker仓库(2)
    菜鸟系列docker——docker基本概念(1)
    Postman工具内容梳理
    Fiddler抓包手机APP失败的处理
    微信
    微信文本的爬取
    如何写活类的装饰器
  • 原文地址:https://www.cnblogs.com/yeahwell/p/5618330.html
Copyright © 2011-2022 走看看