c:~ lsg$ cat .bash_profileweb
c:~ lsg$ vim .bash_profile --- 修改這個文件mongodb
按i 修改文件vim
shift+Z+Z 保存修改內容bash
添加以下代碼svn
export CLICOLOR=1
export SVN_EDITOR='/usr/bin/vim'
alias smeteor='cd /Users/lsg/svn/web && export METEOR_ENV=dev && export MONGO_URL=mongodb://127.0.0.1:27017/meteor && export MONGO_OPLOG_URL=mongodb://127.0.0.1:27017/local && meteor run --port 8000'
alias lmd='/usr/local/bin/mongod -f /usr/local/etc/mongod.conf &'file
修改完成後執行以下代碼,使之生效im
c:~ lsg$ scoure .bash_profilemeteor
之後天天一開機執行兩個命令就能夠啦db
c:~ lsg$ lmd文件
c:~ lsg$ smeteor