美文网首页
Ubuntu安装 vim ssh mysql8 jdk17

Ubuntu安装 vim ssh mysql8 jdk17

作者: 不知不怪 | 来源:发表于2022-11-12 11:11 被阅读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  
    

    相关文章

      网友评论

          本文标题:Ubuntu安装 vim ssh mysql8 jdk17

          本文链接:https://www.haomeiwen.com/subject/mvaxxdtx.html