zoukankan      html  css  js  c++  java
  • redhat--1

    ----------------

    ----------------

    免密码ssh远程登录设置

    2. In host1, copy the ssh-key to the host2 hosts
    # ssh-keygen
    # ssh-copy-id -i ~/.ssh/id_rsa.pub  HOST2_IP

    ----------------

    /etc/sysconfig/network-scripts/ifcfg-eth0  文件

    DEVICE="eth0"
    BOOTPROTO="dhcp"
    HWADDR="00:23:AE:70:03:48"
    IPV6INIT="yes"
    IPV6_AUTOCONF="yes"
    NM_CONTROLLED="yes"
    ONBOOT="yes"
    TYPE="Ethernet"
    UUID="83f8ca51-7085-4e4e-a6ca-d358faa795ad"

     ##############

    参考文档:

    http://blog.csdn.net/hzhsan/article/details/44098537/ [kvm bridge、nat方式介绍]

    http://www.chenyudong.com/archives/libvirt-kvm-bridge-network.html   [libvirt kvm 虚拟机上网 – Bridge桥接]

    https://www.douban.com/group/topic/15558388/        [VirtualBox虚拟机网络设置(四种方式)]

    #############

    ----------

    vi /etc/yum.repos.d/

    [name]
    name=Red Hat Enterprise Linux $releasever - $basearch -Source
    baseurl=http://download.englab.nay.redhat.com/rel-eng/RHEL-6.8-20160407.0/compose/Server/x86_64/os/
    enable=0
    gpgcheck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release


    -------------

    Three ways to configure virt-who on RHEL6.8

    1,
    vi /etc/sysconfig/virt-who
    2,
    vi /etc/virt-who.d/myvirt-who
    3,
    CLI  virt-who  --args

    -------------

    how to configue virt-who

    # Environmental variables for virt-who service can be specified here.
    #
    # These environmental variables are only used when starting virt-who as service,
    # otherwise you must specify them manually.
    #
    # Note that if some value contains special character, it must be escaped
    # or the value must be quoted - for example ampersand in the password or
    # backslash separating domain and username in username field.
    
    配置这个文件中的参数即可

    ---------------

    use command "tail" to output the last part of files on time

    tail -f /var/log/rhsm/rhsm.log

    ----------------

    restart and stop service

    /etc/init.d/virt-who  restart
    /etc/init.d/virt-who stop

    -----------------------

    how to config the subscription manager

    hostname=subscription.rhsm.stage.redhat.com
  • 相关阅读:
    快速查看表结构(zml)
    康尼机电的发送邮件的功能2
    康尼机电的发送邮件的功能1
    8.2文件控制总览只循环了第一行
    ClientScript.RegisterStartupScript
    康尼机电的委托协议中的点击操作显示标签卡的功能
    1020 Tree Traversals (25 分)
    1017 Queueing at Bank (我自己写的模拟时间的版本)
    1016 Phone Bills ( vector的使用)
    1015 Reversible Primes
  • 原文地址:https://www.cnblogs.com/li-daphne/p/5387255.html
Copyright © 2011-2022 走看看