1.bash:ifconfig:command not found
sudo yum install -y net-tools
2.如果Linux系统是通过复制得到 需要更改hostname
vi /etc/hostname 所有系统重启 reboot
3.修改host
vi /etc/hosts
192.168.2.61 sugar01
192.168.2.62 sugar02
192.168.2.63 sugar03
192.168.2.64 sugar04
192.168.2.65 sugar05
4.
ssh-copy-id sugar02
ssh-copy-id sugar03
ssh-copy-id sugar04
ssh-copy-id sugar05
5.将第一台主机的hosts文件拷贝给其他主机
scp /etc/hosts root@sugar02:/etc/hosts
scp /etc/hosts root@sugar03:/etc/hosts
scp /etc/hosts root@sugar04:/etc/hosts
scp /etc/hosts root@sugar05:/etc/hosts
6.上传安装包到系统中
yum install -y lrzsz
使用命令rz
7.安装jdk(解压即可用)
tar -zxvf (jdk压缩包)
8.安装unzip
yum install -y unzip
9.安装tomcat(解压即可用)
unzip (tomcat压缩包) -d (要安装到的路径)
10.配置环境变量
yum install -y vim
vim /etc/profile
JAVA_HOME=/opt/soft/jdk1.8
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
CATALINA_HOME=/opt/soft/tomcat85
PATH=$PATH:$CATALINA_HOME/bin:$JAVA_HOME/bin
11.将配置文件拷贝到其他主机
scp /etc/profile root@sugar02:/etc/profile
scp /etc/profile root@sugar03:/etc/profile
scp /etc/profile root@sugar04:/etc/profile
scp /etc/profile root@sugar05:/etc/profile
原文:https://www.cnblogs.com/Tsugar/p/12259791.html