sudo apt-get update
sudo apt-get install -y mysql-server mysql-clien
- 复制
/etc/mysql/debian.cnf
中的password,
可用sudo cat /etc/mysql/debian.cnf
查看 - 修改配置
sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf
[mysqld]
skip-grant-table
~# mysql -uroot -p
~# use mysql;
~# flush privileges;
~# ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密码';
~# flush privileges;
service mysql restart
- 安装java1.8
sudo apt install openjdk-8-jre-headless # version 8u265-b01-0ubuntu2~20.04
java -version
- 安装maven
su root
mkdir /usr/local/maven
cd /usr/local/maven
wget https://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
tar -zxvf apache-maven-3.6.3-bin.tar.gz
rm apache-maven-3.6.3-bin.tar.gz
sudo vim /etc/profile //修改配置文件,添加两行代码
export M2_HOME=/usr/local/maven/apache-maven-3.6.1
export PATH=${M2_HOME}/bin:$PATH
保存退出 :wq
source /etc/profile
mvn -v