首页 > 技术文章 > meteor ---快速启动meteor和 mongodb 方法--MAC

shenggen 2015-06-12 17:44 原文

c:~ lsg$ cat .bash_profile

c:~ lsg$ vim .bash_profile --- 修改这个文件

按i 修改文件

shift+Z+Z 保存修改内容

添加如下代码

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 &'

修改完成后执行如下代码,使之生效

c:~ lsg$ scoure .bash_profile

以后每天一开机执行两个命令就可以啦

c:~ lsg$ lmd

c:~ lsg$ smeteor

 

推荐阅读