标签:yum源更换 获取 jdk mkdir bash install log date 节点
docker cp 文件地址 容器ID:容器地址
mkdir /opt/jdk
mkdir /opt/scala
mkdir /opt/zookeeper
mkdir /opt/mysql
tar xivf tar包 -C /opt/对应目录
root用户
vim ~/.bash_profile
非root用户只对当前用户生效
vim /home/用户名/.bash_profile
JAVA_HOME=/opt/jdk/jdk1.8.0_221
PATH=$PATH:$JAVA_HOME/bin
export JAVA_HOME
SCALA_HOME=/opt/scala/scala-2.12.9
PATH=$PATH:$SCALA_HOME/bin
export SCALA_HOME
ZK_HOME=/opt/zookeeper/apache-zookeeper-3.5.5-bin
PATH=$PATH:$ZK_HOME/bin
export ZK_HOME
root用户,对所有用户生效
source ~/.bash_profile
非root用户,只对当前用户生效
source /home/用户名/.bash_profile
java -version
scala -version
zookeeper新的版本-bin的使编译后的包,与之前是反的。。得注意下
zoo.cfg
cp zoo_sample.cfg zoo.cfg
server.1=172.15.0.2:2888:3888
server.2=172.15.0.3:2888:3888
server.3=172.15.0.4:2888:3888
myid
文件在
zoo.cfg
中有个dataDir属性,在后面的目录下面创建一个myid文件,内容就是当前节点号
172.16.0.2 --> 1
172.16.0.3 --> 2
172.16.0.4 --> 3
zkServer.sh start
wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql-community-server
systemctl start mysqld.service
systemctl status mysqld.service
grep "password" /var/log/mysqld.log
mysql -uroot -p
set global validate_password_policy=0;
set global validate_password_length=1;
ALTER USER 'root'@'localhost' IDENTIFIED BY 'root';
grant all on *.* to root@'%' identified by 'root';
标签:yum源更换 获取 jdk mkdir bash install log date 节点
原文地址:https://www.cnblogs.com/njpkhuan/p/11611957.html