
环境搭建
曾经沧海海
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
oclint
安装 brew tap oclint/formulae brew install oclint sudo gem install xcpretty 流程: xcodebuild -scheme scheme -workspace xcworkspace clean && xcodebuild -workspace xcworkspace -scheme shceme -configuration Debug -sdk iphoneos |xcpretty -r json-co原创 2021-11-16 17:22:19 · 278 阅读 · 0 评论 -
go get 下载包 modules disabled by GO111MODULE=auto
Go 版本是 1.12 及以下 .zshrc .bashrc 加入配置 source.zshrc # 启用 Go Modules 功能 export GO111MODULE=on # 配置 GOPROXY 环境变量 export GOPROXY=https://goproxy.io Go 版本是 1.13 及以上 go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.io,direct # 设置不走 proxy 的私有仓库...原创 2020-05-19 15:19:11 · 3313 阅读 · 0 评论 -
安装kibana
1、安装 brew install kibana 2、运行 kibana 3、访问:http://127.0.0.1:5601原创 2019-08-06 21:45:03 · 124 阅读 · 0 评论 -
安装 elasticsearch-head
1、下载 github地址:https://github.com/mobz/elasticsearch-head 2、安装 grunt-cli npm install -g grunt-cli 3、进入elasticsearch-head目录,安装grunt npm install grunt --save npm install 4、修改elasticsearch-head 配置...原创 2019-08-06 20:41:27 · 724 阅读 · 0 评论 -
mac安装ES
1、下载ES安装包 https://www.elastic.co/cn/downloads/elasticsearch 2、运行 进入安装目录 bin/elasticsearch 3、访问http://localhost:9200/,表明安装成功: 4、安装可视化界面elasticsearch-head ...原创 2019-08-06 20:33:20 · 1337 阅读 · 0 评论 -
mac 安装 MySQL-python
1、pip 安装 sudo pip install MySQL-python 2、报错:IndexError: string index out of range 解决方案: vim /usr/local/bin/mysql_config 找到 libs,修改为下图所示: 3、继续 pip 安装 sudo pip install MySQL-python 4、报错:ld:...原创 2019-07-03 18:33:25 · 315 阅读 · 0 评论 -
profile配置
export M2_HOME=/usr/local/Cellar/maven/3.6.0 export PATH=$PATH:$M2_HOME/bin #export JAVA_HOME=`/usr/libexec/java_home` export JAVA_7_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/...原创 2019-07-01 15:39:11 · 681 阅读 · 0 评论 -
mac 搭建php+nginx+mysql
1、安装 nginx brew search nginx brew install nginx 2、安装 php ~ brew search php ==> Formulae brew-php-switcher php-code-sniffer php@7.1 phplint ...原创 2019-07-01 15:01:21 · 253 阅读 · 0 评论 -
vsCode 格式化代码
【command】+【, 】打开设置 左侧栏-->扩展-->右边找到任何一个【在settings.json中编辑】 点击打开settings.json文件;输入以下配置: "editor.formatOnType": true, "editor.formatOnSave": true 注意:如果前一行没有逗号,请加上英文逗号 保存时会自动格式化代码 或者快捷键:【alt...原创 2019-06-25 10:13:24 · 979 阅读 · 0 评论 -
vsCode + go installAll失败解决方案
1、进入GOPATH/src目录下 src目录下会有几个文件夹,其中一个文件夹的下一级目录里会有git;找到这个目录 我的默认是:/src/gopkg.in/yaml.v2 将这个目录重命名一下改为:/src/golang.org/x 2、安装工具 git clone https://github.com/golang/tools.git git clone https://git...原创 2019-06-21 11:26:32 · 2215 阅读 · 0 评论 -
vsCode 搭建go环境
1、安装vsCode brew cask install visual-studio-code 2、搜索go 安装 3、打开go工作目录;如上一篇:/GOPATH/src/firstgo;打开main.go文件 保存:command+s 会弹出一个安装窗;点 installAll 安装失败解决方案 安装成功后,在vsCode的terminal窗口下执行: go run main.g...原创 2019-06-21 11:10:46 · 945 阅读 · 0 评论 -
mac部署go环境
1、先安装 homebrew brew install go 会很慢 失败了多试几次;安装完成后试试下面的命令 go version go env 2、配置环境路径:vim .bash_profile 添加以下内容: 其中GOPATH 是你的go项目目录;添加后执行source .bash_profile 生效 export GOPATH=/Users/xxx/go export G...原创 2019-06-21 10:59:36 · 733 阅读 · 0 评论