Mac小白的探索之旅

发布时间:2019-10-16 17:29:11编辑:auto阅读(2555)

    最近把开发环境从Wiindows切换到了Mac OS X上, 原来在Windows上使用的软件, 有一些要么找不到, 要么就需要付费, 要么就不好用, 这几天折腾到自己满意了. 所以留下个印记.

    下载 jdk-8u151-macosx-x64

    http://download.oracle.com/ot...

    安装JDK

    打开 jdk-8u151-macosx-x64.dmg, 一路默认就好.

    配置环境变量

    vim /etc/profile
    export JAVA_HOME=$(/usr/libexec/java_home)
    export PATH=$JAVA_HOME:$PATH
    
    

    下载Maven

    http://apache.ip-connect.vn.u...

    配置maven

    vim /etc/profile
    export PATH=$PATH:/Users/smile/software/maven/bin
    

    下载 mysql-5.7.15-osx10.11-x86_64:

    https://cdn.mysql.com/archive...

    安装mysql:

    打开 mysql-5.7.15-osx10.11-x86_64.dmg, 一路默认就好, 安装完成后, 会弹出一个对话框, 记得复制下root用户的密码

    配置环境变量:

    export PATH=$PATH:/usr/local/mysql/bin
    

    修改root密码:

    SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpass');
    

    下载 datagrip-2017.2:

    https://download-cf.jetbrains...

    安装 brew

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    
    
    

    安装 git

    brew install git
    

    配置git

    git config --global user.name "yuchen352416"
    git config --global user.email "yuchen352416@163.com"
    

    生成SSH-Key

    ssh-keygen -t rsa -C "yuchen352416@163.com"
    

    安装 python3

    brew install python3
    

    配置 Sublime

    新建 Python3.sublime-build 文件(设置用Python3作为默认的解释器)
    {
        "shell_cmd": "python3 -u \"$file\"",
        "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
        "selector": "source.python",
    
        "env": {"PYTHONIOENCODING": "utf-8"},
    
        "variants":
        [
            {
                "name": "Customize Python",
                "shell_cmd": "python3 \"${file}\"",
            }
        ]
    }
    
    新建 Preferences.sublime-settings 文件(个性化设置)
    {
        "show_encoding": true,
        "color_scheme": "Packages/Color Scheme - Default/Breakers.tmTheme"
    }
    

    下载 ideaIC-2017.2.6

    https://download-cf.jetbrains...

    下载 WebStorm-2017.2.5

    https://download-cf.jetbrains...

    下载 datagrip-2017.2

    https://download-cf.jetbrains...

    下载 pycharm-community-2017.2.4

    https://download-cf.jetbrains...

关键字