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

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

相关文章
相关标签/搜索