一:集群已做完
二:临时配置网络(ip,网关,dns)+永久配置
临时配置网络:
ip: [[email protected] ~]# ifconfig
[[email protected] ~]# ifconfig eno16777736 192.168.24.129/24
网关:[[email protected] ~]# route add default gw 192.168.24.1 netmask 255.255.255.0
[[email protected] ~]# route -n
Dns:[[email protected] ~]# vim /etc/resolv.conf
永久配置:
[[email protected] ~]# cd /etc/sysconfig/network-scripts/
[[email protected] network-scripts]# vim ifcfg-eno16777736
[[email protected] network-scripts]# systemctl restart network
三:集群内的机器设定主机名,利用/etc/hosts文件来解析自己的集群中所有的主机名,相应的,集群的配置应该改成使用主机名的方式
四:ssh登录,scp上传、下载,ssh秘钥登录,修改ssh server端的端口为8888然后进行登录和scp测试
五:整理bash命令类型,验证寻找一个命令的优先级
==> alias
==> Compound Commands
==> function
==> build_in
==> hash
==> $PATH
函数与内置优先级
[[email protected] ~]# function cd () { echo 123; }
[[email protected]
~]# cd
123
[[email protected]
~]# unset cd
六:通配符实验
~
家目录:切换到家目录cd~
~覆盖命令
[[email protected]
~]# echo hello world > a.txt
~追加命令
[[email protected]
~]# echo hello world >> b.txt