Osx

ssh 登录乱码

July 21, 2016

问题 当OSX Terminal ssh登录 CentOS时 出现 warning: -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory 原因 OSX Terminal 用 UTF-8 编码,而且ssh连接时会试图将远程编码设为UTF-8 (等价代码 export LC_CTYPE=UTF-8)。 但是,一些系统,如 CentOS 7,不支持UTF-8。

OS X 安装 Nginx

June 20, 2016

install brew install nginx # config file position /usr/local/etc/nginx manage #start brew service start nginx #stop brew service stop nginx

OS X Homebrew源及包管理

June 6, 2016

改变源 cd /usr/local git remote set-url origin git://mirrors.ustc.edu.cn/brew.git 改变bottle源 echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bashrc 文件查看位置 brew list $pkgName brew info $pkgName