MAC
TyrantBoy
这个作者很懒,什么都没留下…
展开
-
Homebrew更换国内镜像源(中科大、阿里、清华)
Homebrew 主要有四个部分组成: brew、homebrew-core 、homebrew-bottles、homebrew-cask。名称说明brewHomebrew 源代码仓库homebrew-coreHomebrew 核心软件仓库homebrew-bottlesHomebrew 预编译二进制软件包homebrew-caskMacOS 客户端应用国内镜像源目前主要有中科大镜像、阿里镜像、清华镜像。首先查看自己本地的镜像源地址是什么,在命令行输原创 2020-08-07 12:12:15 · 30056 阅读 · 2 评论 -
Mac安装Homebrew报错:curl: (7) Failed to connect to raw.githubusercontent.com port 443
问题:Mac OS在安装Homebrew的时候,执行官方网站的安装命令/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"执行完报错:curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused在网上查询了下,发现是 github 的一些域名的 DN原创 2020-08-07 07:36:46 · 572 阅读 · 0 评论 -
git下载项目报错RPC failed; curl 18 transfer closed with outstanding read data remaining
最近clone项目的时候运行git clone时提示错误如下:error: RPC failed; curl 18 transfer closed with outstanding read data remaining可能报错原因1:缓存区溢出解决方法:在命令行输入下面的命令,可以增大缓存区git config http.postBuffer 524288000如果执行上面命令如果依...原创 2020-02-22 15:19:15 · 910 阅读 · 0 评论 -
Mac下使用Homebrew进行CocoaPods的安装及使用
PS:注意以下命令均在终端中执行一、安装前先看下电脑上面是否安装过cocoapods,如果安装过了,先卸载掉清理干净再去安装。sudo gem uninstall cocoapods //卸载cocoapods的命令然后再查下本地是否还有cocoapods的残余文件gem list --local | grep cocoapods //查询cocoapods的残余文件命令...原创 2019-12-16 13:09:13 · 1835 阅读 · 1 评论 -
Mac安装系统提示应用程序副本已损坏,不能用来安装macOS
刚开始以为我的安装盘抹除的时候出问题了,然后就上网查了下原因,说是打开终端命令修改一下时间,就可以了。问题原因:据说是2016年2月14日更新的证书后导致的问题,改到这个日期前就行了。解决方案:启动后断开网络 -> 打开左上角实用工具 -> 找到终端打开输入date 110713212015.3011 月、07日、13时、21分、2015年、30秒其实只要输入2016年2月...原创 2019-11-07 13:30:59 · 112489 阅读 · 36 评论 -
Mac系统下 usr/bin文件目录下无法操作解决方法
重启电脑,重启的时候按住 Command + R,这个时候会进入到恢复界面,进入到恢复界面在左上角找到Terminal终端,然后打开输入以下命令即可解决,因为最新的系统将Rootless修改成了enable,让我们在root权限下也不能随意的读写所有路径,所以有需要就可以关掉它csrutil disable如果想改回来,将 disable 改成 enable 即可csrutil ena...原创 2019-10-24 17:18:14 · 5764 阅读 · 0 评论 -
Mac系统文件及文件夹的显示与隐藏
文件显示命令:defaults write com.apple.finder AppleShowAllFiles -bool true文件隐藏命令:defaults write com.apple.finder AppleShowAllFiles -bool false原创 2019-10-24 17:09:18 · 162 阅读 · 0 评论