【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:\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】-的更多相关文章
- 【转发】RedHat Enterprise Linux 6.4 使用 Centos 6 的yum源问题
作为一名新手,学习Linux已经一个月了,其间遇到了不少问题,而今天笔者遇到的问题是 #yum install pam-devel #This system is not registered to ...
- 【原创】linux命令-Axel命令 - linux多线程下载 - 费元星 - 未来星开发团队
[费元星版权Q:9715234] Axel 是 Linux 下一个不错的HTTP/FTP高速下载工具.支持多线程下载.断点续[费元星版权Q:9715234]传,且可以从多个地址或者从一个地址的多个连接 ...
- 【转】windows和linux中搭建python集成开发环境IDE
本系列分为两篇: 1.[转]windows和linux中搭建python集成开发环境IDE 2.[转]linux和windows下安装python集成开发环境及其python包 3.windows和l ...
- linux权限---【600,644,700,755,711,666,777】 - - 博客频道 - CSDN.NET
body { font-family: "Microsoft YaHei UI","Microsoft YaHei",SimSun,"Segoe UI ...
- 【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 ...
- 【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 ...
- 【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 ...
- 【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 ...
- 【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 ...
随机推荐
- Pyramid Analytics宣布无缝集成BI Office和微软Power BI Desktop
全球领先的企业商业智能(BI)软件提供商Pyramid Analytics与微软联手,凭借完善的分析平台BI Office强化Power BI Desktop的个人生产力功能.新的“Publish t ...
- MySQL+Amoeba实现数据库读写分离
参考:https://www.cnblogs.com/liuyisai/p/6009379.html 一,Amoeba是什么 Amoeba(变形虫)项目,专注 分布式数据库 proxy 开发.座落与C ...
- Linux关闭IPV6
Linux关闭IPV6的方法 修改配置文件/etc/sysctl.conf添加以下1行 net.ipv6.conf.all.disable_ipv6 = 1 设置生效 sysctl -p 查看没有IP ...
- js模拟浏览器加载效果 pace.js 中文官方文档
2017年2月20日12:11:25 官网URL:http://github.hubspot.com/pace/docs/welcome/ 文档 http://github.hubspot.com/p ...
- [No0000143]Win10“卓越性能模式”
从不久之前Win10更新1803以来,微软不仅带来了一些新功能(和BUG),还悄悄地加入了一个“卓越性能模式”,老张想了想,不对呀,以前就有了一个“高性能模式”,这怎么就还多出个新的性能模式来,难道会 ...
- webpack.DefinePlugin
通过配置了DefinePlugin,那么这里面的标识就相当于全局变量,你的业务代码可以直接使用配置的标识.比如,你通过下面的设置: // webpack.config.js new webpack.D ...
- day3:数据类型 str
1,int 一个数字占用的bit数目 i = 2 print(i.bit_length()) i = 3 print(i.bit_length()) i = 5 print(i.bit_length( ...
- browse-agent type and curl post
https://www.jb51.net/web/499127.html http://www.atool.org/useragent.php query for type 用Curl测试POST ...
- mac mysql提示mysql.sock'
Warning: World-writable config file '/Applications/XAMPP/xamppfiles/etc/my.cnf' is ignored ERROR 200 ...
- [daily][ulimit][coredump] 快速简单粗暴的用coredump调试
http://www.cnblogs.com/hugetong/p/6898608.html 一个程序挂掉了, 怎么办? 启动coredump 写一个脚本: [root@T185 ~]# cat / ...