1

我在 Ubuntu 14.04.2 上安装了 mongodb 3.0.2,并将wiredTiger 配置为存储引擎。

我更改 /etc/mongodbConfig.conf 文件 -> /etc/mongod.conf

然而

sudo service mongod start

不启动 MongoDb

** service mongod start : error 
Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. service mongod start

但是当我使用它时,我收到以下错误

initctl: Unknown job: mongod

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start mongod

我的mongod.conf

storage:
    dbPath: "/data/wt"
    engine: "wiredTiger"
        wiredTiger:
        engineConfig:
            cacheSizeGB: 8
        collectionConfig:
            blockCompressor: snappy
replication:
    oplogSizeMB:  1024
    replSetName: "rs0"
net:
    bindIp: "0.0.0.0"
    port: 27017
systemLog:
    destination: file
    path: "/var/log/mongodb/mongodb.log"
4

0 回答 0