ubuntu 换 mac

brew 安装时要按xcode问题

其实不需要的,分别运行以下三条命令就行了

git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh

cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

最后一条可能不是最新,bash里面会有提示的,复制粘贴就行了

安装项wget-get一样的brew

我这新创建的 /usr/local

# 安装brew 请在普通用户下执行 #

  $> ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"  

# 在这里演示一下安装wget #

brew install wget

# 也可能用brew安装一个NGINX #

brew install nginx

# 使用brew卸载NGINX #

brew uninstall nginx

# 修改nginx安装配置 #

brew edit nginx

# 搜索PHP安装包 #

brew searc /php/

# 更新源 #

brew update

# 查看旧的软件 #

brew outdated

# 更新软件 #

brew upgrade

# 更新软件包 #

brew upgrade wget

# 修复依赖 #

brew --prefix

# 强制卸载NGINX #

brew uninstall nginx --force

==============================

$ brew install htop

$ brew install vim

$ brew install git

$ brew install archey

$ sudo apt-get install nodejs

$ curl -L https://get.rvm.io | bash -s stable

$ source ~/.rvm/scripts/rvm

$ type rvm | head -1        # rvm 是函数(测试RVM)

  // 检测安装Ruby需要的依赖包      

$ rvm requirements

======================================

$ brew install mysql  

启动文件夹:用 brew --prefix mysql 查看

ln -sfv [配置名称].plist ~/Library/LaunchAgents [链接]

cp [配置名称].plist ~/Library/LaunchAgents/ [复制]

launchctl load -w ~/Library/[配置名称].plist

======================================

查看端口:

 lsof -ni

 lsof -ni | grep LISTEN

 netstat -an | grep tcp

 

相关推荐