当前位置:Gxlcms > 数据库问题 > meteor ---快速启动meteor和 mongodb 方法--MAC

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

时间:2021-07-01 10:21:17 帮助过:4人阅读

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

标签:

人气教程排行