Comments (24)
补充 nodjs npm安装慢的方法:
不知道各位是否遇到这种情况,使用NPM(Node.js包管理工具)安装依赖时速度特别慢,为了安装Express,执行命令后两个多小时都没安装成功,最后只能取消安装,笔者20M带宽,应该不是我网络的原因,后来在网上找了好久才找到一种最佳解决办法,在安装时可以手动指定从哪个镜像服务器获取资源,我们可以使用阿里巴巴在国内的镜像服务器,命令如下:
npm install -gd express --registry=http://registry.npm.taobao.org
只需要使用–registry参数指定镜像服务器地址,为了避免每次安装都需要--registry参数,可以使用如下命令进行永久设置:
npm config set registry http://registry.npm.taobao.org
换了国内镜像,安装速度就很快了,特写篇博客分享这种方法,希望对大家有帮助
from quantaxis.
这个不是我的问题......安装mongodb就是注册服务呀。。。。没东西了呀。。
from quantaxis.
出个安装视频吧,大哥,我求你了
from quantaxis.
你exe文件下载安装好了吗
from quantaxis.
mongodb-win32-i386-v3.2-latest-signed.msi
装的是这个
from quantaxis.
安装好了吗
from quantaxis.
2017-05-05T12:29:35.800+0800 I CONTROL [main] Hotfix KB2731284 or later update is installed, no need to zero-out data files
2017-05-05T12:29:35.800+0800 I CONTROL [main] Trying to start Windows service 'MongoDB'
2017-05-05T12:29:35.800+0800 I STORAGE [thread1] Service running
2017-05-05T12:29:35.800+0800 I CONTROL [initandlisten] MongoDB starting : pid=1080 port=27017 dbpath=C:\mongod\db 32-bit host=AeroZB
2017-05-05T12:29:35.800+0800 I CONTROL [initandlisten] targetMinOS: Windows Vista/Windows Server 2008
2017-05-05T12:29:35.800+0800 I CONTROL [initandlisten] db version v3.2.13-3-gcd517dc
2017-05-05T12:29:35.800+0800 I CONTROL [initandlisten] git version: cd517dc32530d347dc48f1ffc6345f461a77b06f
2017-05-05T12:29:35.800+0800 I CONTROL [initandlisten] allocator: tcmalloc
2017-05-05T12:29:35.800+0800 I CONTROL [initandlisten] modules: none
2017-05-05T12:29:35.800+0800 I CONTROL [initandlisten] build environment:
2017-05-05T12:29:35.800+0800 I CONTROL [initandlisten] distarch: i386
2017-05-05T12:29:35.800+0800 I CONTROL [initandlisten] target_arch: i386
2017-05-05T12:29:35.800+0800 I CONTROL [initandlisten] options: { config: "c:\mongod\mongo.config", service: true, storage: { dbPath: "C:\mongod\db" }, systemLog: { destination: "file", path: "C:\mongod\log\mongodb.log" } }
2017-05-05T12:29:35.800+0800 I STORAGE [initandlisten] exception in initAndListen: 28663 Cannot start server. The default storage engine 'wiredTiger' is not available with this build of mongod. Please specify a different storage engine explicitly, e.g. --storageEngine=mmapv1., terminating
2017-05-05T12:29:35.800+0800 I CONTROL [serviceStopWorker] dbexit: rc: 49
from quantaxis.
安装完告诉我安装的地址
from quantaxis.
C:\Program Files\MongoDB\Server\3.2
from quantaxis.
exception in initAndListen: 28663 Cannot start server. The default storage engine 'wiredTiger' is not available with this build of mongod. Please specify a different storage engine explicitly, e.g. --storageEngine=mmapv1., terminating
from quantaxis.
你问题在这里 --storageEngine=mmapv1 命令行上多加一个
from quantaxis.
你是windows 32位吗
from quantaxis.
win7 32
from quantaxis.
我是按照你写的这个来的。
【写入windows 服务】
- 以【管理员身份】打开cmd 窗口, (非常重要,否则会报错)
- 输入:mongod --logpath "c:\mongod\log\mongodb.log" --logappend -dbpath "c:\mongodb\db" --serviceName "mongodbService" --install
- 在cmd 窗口中输入 services.msc , 就可以在服务窗口中找到 【mongodbService】 服务
*写入windows 服务时,必须给该服务起个名字 - net start mongodbService
应该怎么修改下啊?
from quantaxis.
问题原因:
你看你的报错
2017-05-05T12:29:35.800+0800 I STORAGE [initandlisten] exception in initAndListen: 28663 Cannot start server. The default storage engine 'wiredTiger' is not available with this build of mongod. Please specify a different storage engine explicitly, e.g. --storageEngine=mmapv1., terminating
这是说明你的这个版本是不包含'wiredTiger'这个默认的数据库引擎的,所以他让你换个引擎,比如 mmapv1.
'wiredTiger' 是mongodb 3.0版本以后的默认引擎,但是似乎只适用于64位的程序包,所以你就报错了
解决办法
mongod --logpath "c:\mongod\log\mongodb.log" --storageEngine=mmapv1 --logappend -dbpath "c:\mongodb\db" --serviceName "mongodbService" --install
from quantaxis.
2017-05-06T11:16:49.790+0800 I CONTROL [main] ***** SERVER RESTARTED *****
2017-05-06T11:16:49.837+0800 I CONTROL [main] Hotfix KB2731284 or later update is installed, no need to zero-out data files
2017-05-06T11:16:49.915+0800 I CONTROL [main] Trying to start Windows service 'MongoDB'
2017-05-06T11:16:49.915+0800 I STORAGE [thread1] Service running
2017-05-06T11:16:49.915+0800 I CONTROL [initandlisten] MongoDB starting : pid=584 port=27017 dbpath=c:\mongodb\db 32-bit host=AeroZB
2017-05-06T11:16:49.915+0800 I CONTROL [initandlisten] targetMinOS: Windows Vista/Windows Server 2008
2017-05-06T11:16:49.915+0800 I CONTROL [initandlisten] db version v3.2.13-3-gcd517dc
2017-05-06T11:16:49.915+0800 I CONTROL [initandlisten] git version: cd517dc32530d347dc48f1ffc6345f461a77b06f
2017-05-06T11:16:49.915+0800 I CONTROL [initandlisten] allocator: tcmalloc
2017-05-06T11:16:49.915+0800 I CONTROL [initandlisten] modules: none
2017-05-06T11:16:49.915+0800 I CONTROL [initandlisten] build environment:
2017-05-06T11:16:49.915+0800 I CONTROL [initandlisten] distarch: i386
2017-05-06T11:16:49.915+0800 I CONTROL [initandlisten] target_arch: i386
2017-05-06T11:16:49.915+0800 I CONTROL [initandlisten] options: { service: true, storage: { dbPath: "c:\mongodb\db", engine: "mmapv1" }, systemLog: { destination: "file", logAppend: true, path: "c:\mongod\log\mongodb.log" } }
2017-05-06T11:16:49.915+0800 I STORAGE [initandlisten] exception in initAndListen: 29 Data directory c:\mongodb\db not found., terminating
2017-05-06T11:16:49.915+0800 I CONTROL [serviceStopWorker] dbexit: rc: 49
from quantaxis.
问题是我创建了啊db
C:\mongod\db
2017-05-06T11:16:49.915+0800 I STORAGE [initandlisten] exception in initAndListen: 29 Data directory c:\mongodb\db not found., terminating
from quantaxis.
你有d盘吗
from quantaxis.
木有 ,虚拟机 就c 和e
from quantaxis.
md e:/data/db
md e:/data/log
mongod --logpath "e:/data/log" --storageEngine=mmapv1 --logappend -dbpath "e:/data/db " --serviceName "mongodbService" --install
from quantaxis.
为啥要用虚拟机?
from quantaxis.
mongod.exe --dbpath e:\data\db --storageEngine=mmapv1
mongod.exe --bind_ip yourIPadress --logpath "e:\data\log\mongodb.log" --logappend --dbpath e:\data\db --storageEngine=mmapv1 --serviceName "mongodb" --serviceDisplayName "mongodb" --install
from quantaxis.
http://www.runoob.com/mongodb/mongodb-window-install.html
from quantaxis.
卸载服务
卸载:mongod.exe --remove --serviceName "MongoDB"
from quantaxis.
Related Issues (20)
- 初始化数据报错 HOT 5
- QA_User和QA_Risk是不是被弃用了,但是在qactabase.py中还有在使用的地方
- Quantaxis 2.0.0.dev33版本的回测样例 HOT 3
- docker环境下的安装失败 HOT 1
- 无法获取通达信板块数据,Error save_tdx.QA_SU_save_stock_block exception HOT 1
- 使用docker pull 时报网络错误 HOT 3
- 回测示例求教:基于RSRS的ETF轮动策略(closed) HOT 1
- 大数据AI推荐
- 安装依赖时,报错metadata-generation-failed
- 有港股的财务数据吗 HOT 1
- 报jqdatasdk not installed HOT 2
- 请问下大盘指数日线图和分时图是如何save 的,存在哪个表里
- 关于自由现金流FINONE(322)和(321)的精确定义?
- Failed to init data in quantaxis cli HOT 2
- qatrader运行异常 HOT 2
- qa沟通渠道问题 HOT 2
- QUANTAXIS 的一般/高级财务方法 报错 KeyError: '581'
- save all: xdxr 不会增量更新。
- QATdx 期货数据 get_history_transaction_data 分时或者分笔数据没有夜盘数据
- 有没有人知道如何通过docker搭建2.0版本 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quantaxis.