vi /etc/hostname
vi /etc/hosts
192.168.122.1 singlenode
wget -O /etc/yum.repos.d/CentOS-Linux-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
yum clean all
&& yum makecache
yum -y install mysql*
chkconfig mysqld on
alter user 'root'@'localhost' identified with mysql_native_password by '123456';
mysql -uroot -p12346
desc table user;
update mysql.user set host='%' where user='root';
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
tar -zxvf jdk-8u181-linux-x64.tar.gz
vi /etc/profile
systemctl stop firewalld.service
systemctl disable firewalld.service
export JAVA_HOME=/opt/jdk8
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib
source /etc/profile
java -version
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name> <url>https://maven.aliyun.com/repository/public</url>
</mirror>
<localRepository>/opt/mavenresoucre</localRepository>