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:\ProgramStation\VMware\VMwareWorkstation\linux.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

 

 

  

【Linux】-NO.5.Linux.1.CentOS.1.001-【CentOS7 Foundation Configuration】-的更多相关文章

  1. 【转发】RedHat Enterprise Linux 6.4 使用 Centos 6 的yum源问题

    作为一名新手,学习Linux已经一个月了,其间遇到了不少问题,而今天笔者遇到的问题是 #yum install pam-devel #This system is not registered to ...

  2. 【原创】linux命令-Axel命令 - linux多线程下载 - 费元星 - 未来星开发团队

    [费元星版权Q:9715234] Axel 是 Linux 下一个不错的HTTP/FTP高速下载工具.支持多线程下载.断点续[费元星版权Q:9715234]传,且可以从多个地址或者从一个地址的多个连接 ...

  3. 【转】windows和linux中搭建python集成开发环境IDE

    本系列分为两篇: 1.[转]windows和linux中搭建python集成开发环境IDE 2.[转]linux和windows下安装python集成开发环境及其python包 3.windows和l ...

  4. linux权限---【600,644,700,755,711,666,777】 - - 博客频道 - CSDN.NET

    body { font-family: "Microsoft YaHei UI","Microsoft YaHei",SimSun,"Segoe UI ...

  5. 【Linux】-NO.86.Linux.6.C.1.001-【CentOS 7 Install GCC】-

    1.0.0 Summary Tittle:[Linux]-NO.86.Linux.6.C.1.001-[CentOS 7 Install GCC]- Style:Java Series:Log4j S ...

  6. 【Linux】-NO.8.Linux.4.Command.1.001-【Common Command】-

    1.0.0 Summary Tittle:[Linux]-NO.8.Linux.4.Command.1.001-[Common Command]- Style:Linux Series:Command ...

  7. 【Linux】-NO.9.Linux.5.Nexus.1.001-【CentOS 7 Install Nexus 3.3】-

    1.0.0 Summary Tittle:[Linux]-NO.9.Linux.5.Nexus.1.001-[CentOS 7 Install Nexus 3.3]- Style:Linux Seri ...

  8. 【Linux】-NO.6.Linux.2.JDK.1.001-【CentOS 7 Install JDK 8u121】-

    1.0.0 Summary Tittle:[Linux]-NO.6.Linux.2.JDK.1.001-[CentOS 7 Install JDK 8u121]- Style:Linux Series ...

  9. 【Linux】-NO.7.Linux.3.Maven.1.001-【CentOS 7 Install Maven 3.5】-

    1.0.0 Summary Tittle:[Linux]-NO.7.Linux.3.Maven.1.001-[CentOS 7 Install Maven 3.5]- Style:Linux Seri ...

随机推荐

  1. Solr7.4.0的API(Solrj)操作及项目中的使用

    一.SolrJ的概念 solr单机版服务搭建:https://www.cnblogs.com/frankdeng/p/9615253.html solr集群版服务搭建:https://www.cnbl ...

  2. Docker简介及Linux下安装

    什么是Docker? Docker是一个开源的引擎,可以轻松的为任何应用创建一个轻量级的.可移植的.自给自足的容器.开发者在笔记本上编译测试通过的容器可以批量地在生产环境中部署,包括VMs(虚拟机). ...

  3. Multi-Database Transaction Demo

    public ResultM UploadFile(FileInfoM pFileInfoM) { ResultM result = }; DbModel db = new DbModel(); Db ...

  4. [No0000162]如何不靠运气致富|来自硅谷著名天使投资人的40条致富经

    1. Seek wealth, not money or status. Wealth is having assets that earn while you sleep. Money is how ...

  5. iOS 模拟器运行不能联网 PAC Fetch failed with error

    app在模拟器是哪个启动成功会自动连接服务器,然后Xcode控制台报错, 模拟器 PAC Fetch failed with error [NSURLErrorDomain:-1001] 这类问题有好 ...

  6. ModelDriven & Preparable 接口

    一. Preparable接口 1.有prepare()方法,实现该接口的action在执行时,首先执行该方法,用于进行一些预处理.2.创建prepareXXX方法,则在执行XXX方法前,将先执行pr ...

  7. iOS-原生纯代码约束总结(一)之 AutoresizingMask

    一,概述 iOS有两大自动布局利器:autoresizing 和 autolayout(autolayout是IOS6以后新增).autoresizing是UIView的属性,一直存在,使用也比较简单 ...

  8. Javascript面向对象编程(二):构造函数的继承 作者:yuan一峰

    Javascript面向对象编程(二):构造函数的继承   作者: 阮一峰 日期: 2010年5月23日 这个系列的第一部分,主要介绍了如何"封装"数据和方法,以及如何从原型对象生 ...

  9. div总在页面最顶端

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx. ...

  10. es定制排序搜索结果

    GET /company/employee/_search { "query": { "constant_score": { "filter" ...