entOS7用阿里云Docker Yum源在线安装Docker 17.03.2
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
sudo yum install docker-ce-18.03.0.ce
systemctl enable docker
systemctl start docker
修改主机名
hostnamectl set-hostname linux1
reboot
ssh-keygen
java安装
vi /etc/profile
export JAVA_HOME=/home/jdk/jdk8
export CLASSPATH=$:CLASSPATH:$JAVA_HOME/lib/
export PATH=$PATH:$JAVA_HOME/bin
source /etc/profile
网友评论