我的电脑:MacBook Air (M1, 2020)
点击查看哪些软件已经适配M1芯片
vi ./bash_profile
进入编辑export JAVA_8_HOME="/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home"
export JAVA_HOME=$JAVA_8_HOME
修改JAVA_HOME为你的安装路径source ./bash_profile
使文件生效java -version
查看当前JDK版本IntelliJ IDEA Ultimate 2020.3
IntelliJ IDEA Community 2020.3
IDEA内嵌
自带git version 2.24.3 (Apple Git-128)
下载并安装桌面版(自带Server)
Docker For Mac 迅雷下载
docker run -v 宿主机绝对目录:容器绝对目录
略。
{
"version": "0.2.0",
"configurations": [
{
//只是个名字
"name": "(lldb) Launch",
//固定
"type": "lldb",
//固定
"request": "launch",
//执行你的代码生成的可执行文件
"program": "${workspaceFolder}/${fileBasenameNoExtension}.out",
//参数列表
"args": [],
"cwd": "${workspaceFolder}",
//先通过名为”Build with Clang“的Task(在task.json中定义的名字一致)进行编译
"preLaunchTask": "Build with Clang"
}
]
}
{
"version": "2.0.0",
"tasks": [
{
//Task名
"label": "Build with Clang",
//命令类型
"type": "shell",
//command和args拼接成完整命令;clang++ xxx.cpp -o xxx.out即将你的cpp文件编译生成.out可执行文件(后缀随意,没有后缀都行)
"command": "clang++",
"args": [
"-std=c++17",
"-stdlib=libc++",
"-g",
"${fileBasenameNoExtension}.cpp",
"-o",
"${fileBasenameNoExtension}.out"
],
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**",
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks",
"/Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include",
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include",
"/Library/Developer/CommandLineTools/usr/include"
],
"defines": [],
"macFrameworkPath": [
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks",
"/Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include",
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include",
"/Library/Developer/CommandLineTools/usr/include"
],
"compilerPath": "/usr/bin/clang",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "macos-clang-x64"
}
],
"version": 4
}
{
"C_Cpp.updateChannel": "Insiders",
"markdown.preview.fontSize": 16,
"editor.fontSize": 14,
"debug.onTaskErrors": "showErrors",
"workbench.colorTheme": "Default Dark+",
"workbench.preferredDarkColorTheme": "Default Dark+",
"debug.allowBreakpointsEverywhere": true,
"explorer.confirmDelete": false,
"editor.codeActionsOnSave": {
},
"code-runner.executorMap": {
//codeRunner插件对于cpp文件run的时候的使用命令
"cpp": " clang++ $dir$fileName -o $dir$fileNameWithoutExt.out && $dir$fileNameWithoutExt.out",
"objective-c": "cd $dir && gcc -framework Cocoa $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"php": "php",
"python": "python -u",
"perl": "perl",
"perl6": "perl6",
"ruby": "ruby",
"go": "go run",
"lua": "lua",
"groovy": "groovy",
"powershell": "powershell -ExecutionPolicy ByPass -File",
"bat": "cmd /c",
"shellscript": "bash",
"fsharp": "fsi",
"csharp": "scriptcs",
"vbscript": "cscript //Nologo",
"typescript": "ts-node",
"coffeescript": "coffee",
"scala": "scala",
"swift": "swift",
"julia": "julia",
"crystal": "crystal",
"ocaml": "ocaml",
"r": "Rscript",
"applescript": "osascript",
"clojure": "lein exec",
"haxe": "haxe --cwd $dirWithoutTrailingSlash --run $fileNameWithoutExt",
"rust": "cd $dir && rustc $fileName && $dir$fileNameWithoutExt",
"racket": "racket",
"scheme": "csi -script",
"ahk": "autohotkey",
"autoit": "autoit3",
"dart": "dart",
"pascal": "cd $dir && fpc $fileName && $dir$fileNameWithoutExt",
"d": "cd $dir && dmd $fileName && $dir$fileNameWithoutExt",
"haskell": "runhaskell",
"nim": "nim compile --verbosity:0 --hints:off --run",
"lisp": "sbcl --script",
"kit": "kitc --run",
"v": "v run",
"sass": "sass --style expanded",
"scss": "scss --style expanded",
"less": "cd $dir && lessc $fileName $fileNameWithoutExt.css",
"FortranFreeForm": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"fortran-modern": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"fortran_fixed-form": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"fortran": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"editor.wordWrap": "on",
"editor.wordWrapColumn": 150,
},
//指定lldb插件的shell脚本位置
"lldb.adapterEnv": {
"LLDB_DEBUGSERVER_PATH": "写你的shell脚本的放置位置"
}
}
随意命名,随意位置,配合lldb测试版插件生效;内容如下:
arch -arch arm64e /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/debugserver "$@"
sudo /usr/local/mysql/support-files/mysql.server stop
sudo su
cd /usr/local/mysql/bin
./mysqld_safe --skip-grant-tables
cd /usr/local/mysql/bin
mysql
无需用户名密码,直接回车即可进入alter user'root'@'localhost' identified with mysql_native_password by 'newpassword';
用你的新密码替换newpassword,无需password()函数;flush privileges;
sudo /usr/local/mysql/support-files/mysql.server restart
mysql -uroot -p
Navicat12 下载、安装与激活
RedisDesktopManager
AnotherRedisDesktopManager
SecureCRT+SecureFX