我正在尝试使用MEAN堆栈构建一个简单的CRUD应用程序,到目前为止这是我的文件树:
%macro status_client(ClientID,dsn=project3.data_credit);
%local credit ;
%let credit=NOTFOUND;
proc sql noprint;
select upcase(class)
into :credit trimmed
from &dsn
where ClientID = &CliendID.
;
quit;
%if (&credit. = GOOD ) %then %do;
proc print data = &dsn ;
where ClientID = &CliendID. ;
var ClientID duration purpose saving_status;
run;
%end;
%else %if (&credit = NOTFOUND) %then %put Client &clientid not found.;
%else %put Client &clientid has &credit credit.;
%mend status_client;
运行-app
-node_modules
-server
-config
-db.js
-controllers
-user.api.js
-models
-user.js
-routes
-api.js
-web.js
-package.json
-server.js
时出现以下错误:
mongod
所以我尝试将文件夹的路径指定为2017-12-03T15:25:53.243-0500 I CONTROL [initandlisten] MongoDB starting : pid=57220 port=27017 dbpath=/data/db 64-bit host=Carloss-MacBook-Pro.local
2017-12-03T15:25:53.244-0500 I CONTROL [initandlisten] db version v3.4.10
2017-12-03T15:25:53.244-0500 I CONTROL [initandlisten] git version: 078f28920cb24de0dd479b5ea6c66c644f6326e9
2017-12-03T15:25:53.244-0500 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.2m 2 Nov 2017
2017-12-03T15:25:53.244-0500 I CONTROL [initandlisten] allocator: system
2017-12-03T15:25:53.244-0500 I CONTROL [initandlisten] modules: none
2017-12-03T15:25:53.244-0500 I CONTROL [initandlisten] build environment:
2017-12-03T15:25:53.244-0500 I CONTROL [initandlisten] distarch: x86_64
2017-12-03T15:25:53.244-0500 I CONTROL [initandlisten] target_arch: x86_64
2017-12-03T15:25:53.244-0500 I CONTROL [initandlisten] options: {}
2017-12-03T15:25:53.247-0500 I STORAGE [initandlisten] exception in initAndListen: 29 Data directory /data/db not found., terminating
2017-12-03T15:25:53.247-0500 I NETWORK [initandlisten] shutdown: going to close listening sockets...
2017-12-03T15:25:53.247-0500 I NETWORK [initandlisten] shutdown: going to flush diaglog...
2017-12-03T15:25:53.247-0500 I CONTROL [initandlisten] now exiting
2017-12-03T15:25:53.247-0500 I CONTROL [initandlisten] shutting down with code:100
,但仍然无效。我错误地写了这条路吗?
这就是我在/server/config/db
文件中的内容:
db