美文网首页
ubuntu桌面使用记录

ubuntu桌面使用记录

作者: 调雨为酥 | 来源:发表于2019-11-16 23:49 被阅读0次

    修改apt软件包资源

    https://www.cnblogs.com/tlz888/p/9569234.html

    安装docker

    https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-engine---community-1
    修改docker镜像加速器

    sudo tee /etc/docker/daemon.json <<-'EOF'
    {
      "registry-mirrors": ["https://1ln6t4y7.mirror.aliyuncs.com"]
    }
    EOF
    sudo systemctl daemon-reload
    sudo systemctl restart docker
    

    安装jenkins

    参考官网docker安装 https://jenkins.io/zh/doc/book/installing/#docker

    docker run \
      -u root \
      --rm \
      -d \
      -p 8080:8080 \
      -p 50000:50000 \
      -v jenkins-data:/var/jenkins_home \
      -v /var/run/docker.sock:/var/run/docker.sock \
      jenkinsci/blueocean
    

    maven镜像仓库设置

    ~/.m2/settings.xml

    <settings xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
    <mirrors>
        <mirror>
          <id>alimaven</id>
          <name>aliyun maven</name>
          <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
          <mirrorOf>central</mirrorOf>        
        </mirror>
    </mirrors>
    </settings>
    

    安装MySQL

    根据官方的apt库来安装
    官方文档:https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/
    MySQL APT Repository下载:https://dev.mysql.com/downloads/repo/apt/
    安装正常操作apt步骤安装mysql-server

    sudo apt-get update
    sudo apt-get install mysql-server
    

    如果下载慢,需要配置代理HTTP和HTTPS都要设置。

    使用工具连接

    sudo mysql -u root
    

    需要设置密码和用户

    ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
    

    来自stackoverflow的解决方法: https://stackoverflow.com/questions/7864276/cannot-connect-to-database-server-mysql-workbench

    对外开发3306端口连接
    在文件/etc/mysql/mysql.conf.d/mysqld.cnf下修改bind-address为0.0.0.0然后service mysql restart重启。
    参考文档:
    https://www.a2hosting.com/kb/developer-corner/mysql/restricting-mysql-port-access
    https://blog.csdn.net/qq_35038153/article/details/78409608

    相关文章

      网友评论

          本文标题:ubuntu桌面使用记录

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