当前位置:首页 > 操作系统 > MacOs

meteor ---快速启动meteor和 mongodb 方法--MAC

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

 

meteor ---快速启动meteor和 mongodb 方法--MAC

标签:

本文系统来源:http://www.cnblogs.com/shenggen/p/4572232.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐