zoukankan      html  css  js  c++  java
  • 【Linux】-NO.5.Linux.1.CentOS.1.001-【CentOS7 Foundation Configuration】-

    1.0.0 Summary

    Tittle:【Linux】-NO.5.Linux.1.CentOS.1.001-【CentOS7 Foundation Configuration】-

    Style:Linux

    Series:CentOS

    Since:2017-04-16

    End:2017-04-16

    Total Hours:0.5

    Degree Of Diffculty:1

    Degree Of Mastery:1

    Practical Level:1

    Desired Goal:1

    Archieve Goal:1

    Gerneral Evaluation:1

    Writer:kingdelee

    Related Links:

    http://www.cnblogs.com/kingdelee/

    1.1.0 Install wget

    if use minimal install Centos7, it haven't wget command,use above command install wget.

    yum -y install wget
    

    1.1.1 configur native yum

    Aliyun yum:

    http://mirrors.aliyun.com/help/centos?spm=5176.bbsr150321.0.0.d6ykiD

    mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bk
    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
    yum clean all
    yum makecache
    

    163 yum:

    mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bk
    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
    yum clean all
    yum makecache
    

    1.2.0 Install Vim:

    Check exsist or not:

    rpm -qa|grep vim 
    

    If exsist like this:

    If not then Install:

    yum -y install vim*
    

    1.3.0 Config Vim:  

    Two Option:

    1.set /etc/vimrc will synchronzie all user.

    2.at /home/...user create .vimrc

    set nu         // 这是设置显示行号
    set  showmode   //设置在命令行界面最下面显示当前模式等。
    set   ruler     // 在右下角显示光标所在的行数等信息
    set autoindent   // 设置每次单击Enter键后,光标移动到下一行时与上一行的起始字符对齐
    syntax on    // 即设置语法检测,当编辑C或者Shell脚本时,关键字会用特殊颜色显示
    

    Manual link:

    http://download.csdn.net/detail/u013233097/9616121  

    1.4.0 Install VMware Tools:  

    mount linux.iso:

     D:ProgramStationVMwareVMwareWorkstationlinux.iso

    mount -t iso9660 /dev/cdrom /mnt
    cp /mnt/VMwareTools-10.0.10-4301679.tar.gz /tmp/
    umount /dev/cdrom
    tar -zxvf /tmp/VMwareTools-10.0.10-4301679.tar.gz -C /tmp/
    /tmp/vmware-install.pl
    

      

    related link:

    http://pubs.vmware.com/workstation-12/index.jsp?lang=zh_CN&topic=/com.vmware.ws.using.doc/GUID-08BB9465-D40A-4E16-9E15-8C016CC8166F.html

    1.5.0 Set Static IP By Bridge Network

      

    1.5.1 set bridge network in vmware

     

    1.5.2 get the dns

    192.168.43.1

     

    relate link:

    http://blog.csdn.net/heyabo/article/details/7727012#comments

    https://my.oschina.net/kingdelee/blog/388210

    1.6.0 update hostname:

    vim /etc/sysconfig/network
    NETWORKING=yes
    NETWORKING_IPV6=no
    HOSTNAME=hadoop1
    
    vim /etc/hosts
    127.0.0.1 localhost
    192.168.43.199 hadoop1
    192.168.43.199 localhost
    
    vim /etc/hostname
    
    hadoop1
    

      

    hostname

    reboot

      

    1.7.0 ssh without password

    use lee, the same way when use root:

    su lee
    ssh-keygen -t rsa

    cat ~/.ssh/id_rsa.pub | ssh lee@localhost "cat - >> ~/.ssh/authorized_keys"
    chmod 600 ~/.ssh/authorized_keys
    chomd 700 ~/.ssh/

      

    use root:

    vim /etc/ssh/sshd_config
    

    find and set "#" to the line like this:

    #  RSAAuthentication yes
    #  PubkeyAuthentication yes
    #  AuthorizedKeysFile  .ssh/authorized_keys
    
    /bin/systemctl start sshd.service
    

     

    related link: 

    centos 7 免密登录:

    http://www.cnblogs.com/hobinly/p/6039844.html 

    CentOS 7 SSH配置免密码登录

    http://blog.csdn.net/newstruts/article/details/46424191

    CentOS7配置免密码登陆

    http://blog.csdn.net/a237428367/article/details/50464153

     

     

      

  • 相关阅读:
    Vue常用语法
    Vue--过滤器、指令、插件
    使用vue-cli创建项目
    electron Ctrl+滚轮事件 放大缩小
    axios 处理超时问题 记录
    electron 清除所有cookie记录
    electron用默认浏览器打开链接的3种实现方式
    electron 不支持Ctrl+滚动条放大缩小,自己动手做了一个react组件
    排序算法记录
    umi react 集成 spreadjs
  • 原文地址:https://www.cnblogs.com/kingdelee/p/6680699.html
Copyright © 2011-2022 走看看