1)建立标准目录结构
[root@hadoop102 ~]# mkdir -p /opt/software
[root@hadoop102 ~]# mkdir -p /opt/module
2)repo 源获取
[root@hadoop102 ~]# curl -o /etc/yum.repos.d/CentOS-aliyun.repo https://mirrors.aliyun.com/repo/Centos-7.repo
[root@hadoop102 ~]# wget -O /etc/yum.repos.d/CentOS-aliyun.repo https://mirrors.aliyun.com/repo/Centos-7.repo
[root@hadoop102 ~]# curl -s -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
3)修改终端变色
[root@hadoop102 ~]# vim /etc/profile.d/myenv.sh
PS1="[\[\e[33;1m\]\u@\[\e[0m\]\[\e[32;1m\]\h\[\e[0m\]\[\e[35;1m\] \W\[\e[0m\]]\\$ "
[root@hadoop102 ~]# source /etc/profile
4)安装依赖包
[root@hadoop102 ~]# yum install -y wget net-tools lrzsz zip unzip sshpass expect jq tree