Ubuntu安装 vim ssh mysql8 jdk17
2022-11-12 本文已影响0人
不知不怪
1 安装ssh
sudo apt install openssh-server -y
ip a
# sudo service ssh status
# sudo systemctl status ssh
2 远程连接
3 安装jdk,mysql
sudo apt install openjdk-17-jdk-headless -y
sudo apt install mysql-server-8.0 -y
4 配置mysql密码和远程连接
sudo mysql -uroot -proot
mysql> use mysql;
mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
mysql> update user set host='%' where user='root' and host='localhost';
mysql> flush privileges;
mysql> quit;
sudo apt install vim -y
sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf
修改并保存:wq
bind-address = 0.0.0.0
重启
sudo systemctl restart mysql.service