返回列表

bat批处理 启动redis mong node express

默认分类 2014/09/20 18:53

1、打开之后跳到指定目录:

@echo off
cd C:\Users\home\Desktop\fecampus\fe_api
cmd

2、启动mongo

@echo off
cd C:\
@echo on
mongodb2.4.10\bin\mongod.exe -f C:\mongodb\mongo.conf

3、启动redis

@echo off
cd C:\
@echo on
redis64\bin\redis-server.exe C:\redis\redis.windows.conf

注:

I'm getting an error trying to get discourse up and running in a docker container.

The problem comes from the redis.conf line:

logfile stdout

I'm getting the error:

*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 74
>>> 'logfile stdout'
Can't open the log file: Permission denied

If I change the line to logfile "" everything starts up fine.

4、启动node express

@echo off
cd C:\
@echo on
node Users\home\Desktop\fecampus\fe_api\app.js