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. zgrep用法

    http://manpages.ubuntu.com/manpages/trusty/man1/zgrep.1.html NAME Zgrep - search compressed files fo ...

  2. MSDN2001 快捷方式丢失的处理方法

    1.  C:\Windows\hh.exe,右键 - 发送快捷方式到桌面 2. 给快捷方式改名为:MSDN2001 3. 右键快捷方式 - 属性- 快捷方式选项卡中的目标填写: C:\Windows\ ...

  3. [实战]MVC5+EF6+MySql企业网盘实战(4)——上传头像

    写在前面 最近又开始忙了,工期紧比较赶,另外明天又要去驾校,只能一个功能一个功能的添加了,也许每次完成的功能确实不算什么,等将功能都实现了,然后在找一个好点的ui对前端重构一下. 系列文章 [EF]v ...

  4. (广度搜索)A - Prime Path(11.1.1)

    A - Prime Path(11.1.1) Time Limit:1000MS    Memory Limit:65536KB    64bit IO Format:%I64d & %I64 ...

  5. linux 下安装 redis

    https://redis.io/ 1.下载 $ cd /usr/local/ $ wget http://download.redis.io/releases/redis-4.0.7.tar.gz ...

  6. 在Spring的Bean注入中,即使你私有化构造函数,默认他还是会去调用你的私有构造函数去实例化

    在Spring的Bean注入中,即使你私有化构造函数,默认他还是会去调用你的私有构造函数去实例化. 如果我们想保证实例的单一性,就要在定义<bean>时加上factory-method=” ...

  7. minikube k8 ingress--https://kubernetes.io/docs

    https://ehlxr.me/2018/01/12/kubernetes-minikube-installation/[Kubernetes 学习笔记之 MiniKube 安装 in CHINA] ...

  8. [hyperscan] hyperscan 1到1.5 --!!

    [hyperscan][pkg-config] hyperscan 从0到1路线图 接续前文,继续深入理解: 概述: 1.  自动机理论,是hyperscan的理论基础. https://zh.wik ...

  9. ORA-01950: no privileges on tablespace XXX

    原因是该表空间没有为用户提供配额空间 alter user WANGGUAN quota unlimited on TS_ACCT_DAT_01; 在表空间中为该用户设置磁盘配额即可

  10. SQL join的介绍

    学员表 SELECT * FROM tb_address; SELECT * FROM tb_student 1.JOIN关联两个表数据,将匹配数据展示,数据无匹配值则不展示 注释:INNER JOI ...