随笔分类 -  mac

一些mac配置
摘要:mac终端: sudo killall -HUP mDNSResponder windows命令提示符: ipconfig /flushdns Linux: service nscd restart centos7以上 systemctl restart nscd 阅读全文
posted @ 2023-05-12 13:48 yanglei.xyz 阅读(28) 评论(0) 推荐(0) 编辑
摘要:vi ~/.zshrc 修改配置文件 DISABLE_AUTO_UPDATE="false"改为DISABLE_AUTO_UPDATE="true"DISABLE UPDATE PROMPT="true"意思是禁用更新提示 应用修改 source ~/.zshrc 阅读全文
posted @ 2023-04-25 11:25 yanglei.xyz 阅读(375) 评论(0) 推荐(0) 编辑
摘要:安装 brew install redis 常用命令 #启动redis服务 brew services start redis #关闭redis服务 brew services stop redis #重启redis服务 brew services restart redis #开机启动redis命 阅读全文
posted @ 2022-11-11 16:57 yanglei.xyz 阅读(286) 评论(0) 推荐(0) 编辑
摘要:/bin/bash -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" 阅读全文
posted @ 2022-11-11 16:41 yanglei.xyz 阅读(34) 评论(0) 推荐(0) 编辑
摘要:一、 问题描述 Homebrew安装git时出现问题 curl: (60) SSL certificate problem: certificate has expired More details here: https://curl.haxx.se/docs/sslcerts.html If y 阅读全文
posted @ 2022-01-19 22:04 yanglei.xyz 阅读(746) 评论(0) 推荐(0) 编辑
摘要:打开个人目录下的ohmyzsh(zsh) 的配置文件: ~/.zshrc 找到 DISABLE_AUTO_UPDATE 一行,将行首的注释'#'去掉,则可禁用ohmyzsh自动检查更新。 如果想手动检查更新,可以手动执行 > upgrade_oh_my_zsh 阅读全文
posted @ 2021-07-20 09:29 yanglei.xyz 阅读(1081) 评论(0) 推荐(0) 编辑
摘要:rm -f ~/Library/Application\ Support/Dock/*.db && killall Dock 阅读全文
posted @ 2021-05-10 09:50 yanglei.xyz 阅读(40) 评论(0) 推荐(0) 编辑
摘要:sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh) 阅读全文
posted @ 2021-05-10 09:49 yanglei.xyz 阅读(75) 评论(0) 推荐(0) 编辑
摘要:ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew install wget 阅读全文
posted @ 2021-05-10 09:48 yanglei.xyz 阅读(89) 评论(0) 推荐(0) 编辑
摘要:alias ll='ls -alFh' 阅读全文
posted @ 2021-05-10 09:47 yanglei.xyz 阅读(135) 评论(0) 推荐(0) 编辑
摘要:MAC OS 本质上还是 Unix 系统, Unix 系统大多默认情况下非root用户是无法使用小于1024的常用端口的.这时候如果你开发中需要在普通用户下用到80端口, 比如 tomcat, 比如 vitualbox 下构建了一个 http 服务, 若你想直接通过 浏览器的 localhost 访 阅读全文
posted @ 2021-05-10 09:46 yanglei.xyz 阅读(280) 评论(0) 推荐(0) 编辑
摘要:今天在mac操作svn看了很多的帖子,走了很多弯路,现在写下自己的心得,希望后面的小伙伴少走弯路。 mac 下已经自带了svn环境 。使用svn --version 查看版本号,正确显示 如果没有,请先安装svn 安装方法: 如果你有安装XCode,只需要在code > Preferences > 阅读全文
posted @ 2021-05-10 09:45 yanglei.xyz 阅读(3930) 评论(0) 推荐(0) 编辑
摘要:先安装oh-my-zsh: https://www.cnblogs.com/yanglei-xyz/p/14030630.html 然后在idea设置: 阅读全文
posted @ 2020-11-24 15:58 yanglei.xyz 阅读(1563) 评论(0) 推荐(1) 编辑
摘要:1、安装zsh: curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh 国内地址: sh -c "$(curl -fsSL https://gitee.com/pocmon/ohmyzsh 阅读全文
posted @ 2020-11-24 15:40 yanglei.xyz 阅读(1949) 评论(0) 推荐(1) 编辑
摘要:/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" 上面不行,可以用这个国内地址: /bin/zsh -c "$(curl -fsSL https://gi 阅读全文
posted @ 2020-11-24 15:31 yanglei.xyz 阅读(100) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示