1.JDK的卸载安装
卸载掉服务器本来的OPENJDK,安装ORELOC的JDK
检查是否已经安装了jdk
rpm -qa | grep jdk
如果有的话,就卸载了再装
rpm -e --nodeps java-1.7.0-openjdk
去Oracle下载一个JDK,上传到服务器,然后安装他
2. Maven的安装
下载、 解压、配置PATH
// 下载安装
// 配置path
export MAVEN_HOME=/usr/local/maven-3.3.9/apache-maven-3.3.9
export JAVA_HOME=
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$MAVEN_HOME/bin:$JAVA_HOME/bin
3.Docker安装
检查是否已有docker
rpm -qa | grep docker
如果有的话,就卸载了再装
rpm -e --nodeps ${docker}
更新yum源
yum update
安装必要的工具集
yum install -y yum-utils device-mapper-persistent-data lvm2
配置yum源
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
查看全部可以安装的docker版本
yum list docker-ce --showduplicates | sort -r
选择一个满意的安装
yum install ${docker-version}
验证docker是否安装成功,查看docker版本
你猜命令是什么?
4.MySQL 安装
wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
yum -y localinstall mysql57-community-release-el7-11.noarch.rpm
yum -y install mysql-community-server
systemctl start mysqld
systemctl enable mysqld
systemctl daemon-reload
grep 'temporary password' /var/log/mysqld.log
mysql -u root -p
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'Root@_123';
#远程登录
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'Root@_123' WITH GRANT OPTION;
# 创建ambari用户并授权
mysql> CREATE USER 'ambari'@'%' IDENTIFIED BY 'Ambari-123';
mysql> GRANT all privilege ON *.* TO 'ambari'@'%';
mysql> flush privileges;
5.Redis安装
下载redis
http://download.redis.io/releases/redis-5.0.8.tar.gz
安装c++环境
yum install -y gcc
安装
make && make install PREFIX=/usr/local/redis
配置