在mac上安装并使用docker
docker最近实在火的不行,老高最近也在使用,顺便记录一下。
下载安装
下载和安装主要参考下面的文章
http://docs.docker.com/installation/mac/
docker最近实在火的不行,老高最近也在使用,顺便记录一下。
下载和安装主要参考下面的文章
http://docs.docker.com/installation/mac/
项目地址
zsh -----> http://www.zsh.org oh-my-zsh ----> http://ohmyz.sh
The last shell you’ll ever need!
为你的MAC、Linux安装zsh
# Centos
yum install zsh git -y
# OSX
brew install zsh git -y
# via curl
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
# via wget
wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O - | sh
# 为root用户修改默认shell为zsh
chsh -s /bin/zsh root
# 为当前用户修改默认shell为zsh
chsh -s /bin/zsh
# or
chsh -s `which zsh`
# 恢复命令
chsh -s /bin/bash
export PATH=$PATH:/usr/local/go/bin
#export PATH=$PATH:/Applications/MAMP/bin/php/php5.6.10/bin:/Users/GZM/composer:/Users/GZM/.composer/vendor/bin
#export GOPATH=/Users/GZM/work/go
#export GOPATH=/Volumes/Transcend/git/360/private_cloud_server_code/tools/gowork/
#export GOBIN=$GOPATH/bin
#export GO15VENDOREXPERIMENT=1
LC_CTYPE=en_US.UTF-8
LC_ALL=en_US.UTF-8
upgrade_oh_my_zsh
花了一天,终于编译好了小米路由器的openwrt,过程真是一波三折。。。值得一讲。
最近装机次数有点多,本来想写到这里的centos6 优化脚本与安全脚本,结果一想还是新开一个帖子吧。
centos源设置可以参考Centos源设置,老高推荐安装阿里源。
新机子先运行上面的脚本,再运行这个脚本
dig是一个很不错的工具,它比nslookup好用太多。
老高主要用dig判断DNS解析故障和DNS解析线路的问题。dig命令虽然好用,但是想要在各个系统中安装使用dig,安装方法还是要记录一下的。
那么如何安装呢?老高总结了linux服务器,openwrt,Windows等系统的安装dig的方法,希望能够帮助到你。