One: The cluster has done two: temporary Configuration network (IP, gateway, DNS) + permanent configuration
To configure the network temporarily:
IP: [[email protected] ~]# ifconfig
[Email protected] ~]# ifconfig eno16777736 192.168.24.129/24
Gateway: [[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
Permanent configuration:
[Email protected] ~]# cd/etc/sysconfig/network-scripts/
[Email protected] network-scripts]# vim ifcfg-eno16777736
[Email protected] network-scripts]# systemctl Restart Network
Three: The machine in the cluster to set the hostname, the use of/etc/hosts file to resolve all the host names in their own cluster, the corresponding, the cluster configuration should be changed to use the host name of the way
Four: SSH login, scp upload, download, ssh key login, modify the SSH server port to 8888 and then login and SCP test
Five: Organize the bash command type to verify the priority of finding a command
==> Alias
==> Compound Commands
==> function
==> build_in
==> Hash
==> $PATH
function with built-in priority [[email protected] ~]# function CD () {echo 123;}
[[Email protected]~]# CD]
123
[[Email protected]~]# unset CD
Six: Wildcard experiment
~ Home directory: Switch home directory cd~
~ Overwrite command
[[Email protected]~]# echo Hello world > A.txt
~ Append command
[[Email protected]~]# echo Hello world >> b.txt
Network Configuration and Shell basics