1 优化软件源,安装docker
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun systemctl enable docker #设置开机启动 #启动docker api #vi /usr/lib/systemd/system/docker.service #修改 ExecStart=/usr/bin/dockerd -H 0.0.0.0:2375 -H unix:///var/run/docker.sock #重启服务 systemctl daemon-reload systemctl restart docker #检测 netstat -anp|grep 2375 curl 127.0.0.1:2375/info
2 安装虚拟机工具
设置->安装虚拟机工具 可能会安装出错,根据安装提示补全依赖包,或者更新虚拟机版本
2.1.安装工具依赖
sudo yum install gcc perl makec sudo yum install -y "kernel-devel-uname-r == $(uname -r)"
重启系统,让安装生效
3 禁用防火墙
systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 vi /etc/selinux/config #禁用selinux
4 安装jdk
#查看默认安装的jdk,并卸载 rpm -qa | grepjava yum -y remove java-XXXXXXX tar zxvf jdk-8u211-linux-x64.tar.gz chmod 777 -R jdk1.8.0_211 vi /etc/profile export JAVA_HOME=/opt/jdk1.8.0_211 export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export PATH=$PATH:$JAVA_HOME/bin source /etc/profile
5 安装git
yum install git
6 安装maven
unzip apache-maven-3.3.9-bin.zip export MAVEN_HOME=/opt/apache-maven-3.3.9 export PATH=$PATH:$JAVA_HOME/bin:$MAVEN_HOME/bin