Install mongodb 02 and chatterbotmongodb in ChatterBot linux

Source: Internet
Author: User
Tags install mongodb mongodb version dochub chatterbot

Install mongodb 02 and chatterbotmongodb in ChatterBot linux

Current Environment: centos 6.9

Mongodb version mongodb-linux-x86_64-3.4.4.tgz

Use link tool: studio-3t-x64.msi.zip

First, install mongodb:

1. Put the downloaded mongodb-linux-x86_64-3.4.4.tgz under opc
2. decompress the package to the current path;

3. Create two data/db folders under the root directory, which is the default storage location of mongodb data files.

1 mkdir -p /data/db

4. Run the MongoDB service in the command line

You can execute the mongod command in the bin directory of the mongo installation directory in the command line to start the mongdb service.

NOTE: If your database directory is not/data/db, you can specify it through -- dbpath.

The following are services.

[Root @ localhost/] # cd/opt/mongodb-linux-x86_64-3.4.4/bin [root @ localhost bin] # lltotal 232816-rwxr-xr-x. 1 root 4769592 Apr 20 2017 bsondump-rwxr-xr-x. 1 root 29404312 Apr 20 2017 mongo-rwxr-xr-x. 1 root 53966552 Apr 20 2017 mongod // start-rwxr-xr-x. 1 root 8520309 Apr 20 2017 mongodump-rwxr-xr-x. 1 root 6491029 Apr 20 2017 export-rwxr-xr-x. 1 root 6345814 Apr 20 2017 program files-rwxr-xr-x. 1 root 6641732 Apr 20 2017 Export Import-rwxr-xr-x. 1 root 6118188 Apr 20 2017 export oplog-rwxr-xr-x. 1 root 53347992 Apr 20 2017 mongoperf-rwxr-xr-x. 1 root 9678815 Apr 20 2017 mongoreplay-rwxr-xr-x. 1 root 9935423 Apr 20 2017 mongorestore-rwxr-xr-x. 1 root 30122568 Apr 20 2017 mongos-rwxr-xr-x. 1 root 6707676 Apr 20 2017 running stat-rwxr-xr-x. 1 root 6324847 Apr 20 2017 running top // stop

5. Use [root @ localhost bin] #./mongod to start the service (the database files required under/data/db will be generated during the first installation );

1 [root @ localhost bin] #. /mongod // start 2 2017-11-28T23: 47: 58.383-0800 I CONTROL [initandlisten] MongoDB starting: pid = 3289 port = 27017 dbpath =/data/db 64-bit host = localhost. localdomain 3 2017-11-28T23: 47: 58.383-0800 I control [initandlisten] db version v3.4.4 4 2017-11-28T23: 47: 58.383-0800 I CONTROL [initandlisten] git version: limit 5 2017-11-28T23: 47: 58.383-0800 I control [initandlisten] allocator: tcmalloc 6 2017-11-28T23: 47: 58.383-0800 I CONTROL [initandlisten] modules: none 7 2017-11-28T23: 47: 58.383-0800 I control [initandlisten] build environment: 8 2017-11-28T23: 47: 58.383-0800 I CONTROL [initandlisten] distarch: x86_64 9 2017-11-28T23: 47: 58.383-0800 I control [initandlisten] target_arch: x86_6410 2017-11-28T23: 47: 58.383-0800 I CONTROL [initandlisten] options: {} 11 2017-11-28T23: 47: 58.406-0800 I storage [initandlisten] 12 2017-11-28T23: 47: 58.406-0800 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is stronugly recommended with the WiredTiger storage engine13 2017-11-28T23: 47: 58.406-0800 I storage [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem14 2017-11-28T23: 47: 58.406-0800 I STORAGE [initandlisten] wiredtiger_open config: create, cache_size = 256 M, session_max = 20000, eviction = (threads_min = 4, threads_max = 4), config_base = false, statistics = (fast), log = (enabled = true, archive = true, path = journal, compressor = snappy), file_manager = (close_idle_time = 100000), checkpoint = (wait = 60, log_size = 2 GB), statistics_log = (wait = 0), 15 2017-11-28T23: 47: 59.270-0800 I control [initandlisten] 16 2017-11-28T23: 47: 59.270-0800 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.17 2017-11-28T23: 47: 59.270-0800 I control [initandlisten] ** Read and write access to data and configuration is unrestricted.18 2017-11-28T23: 47: 59.270-0800 I CONTROL [initandlisten] ** WARNING: you are running this process as the root user, which is not recommended.19 2017-11-28T23: 47: 59.270-0800 I CONTROL [initandlisten] 20 2017-11-28T23: 47: 59.272-0800 I control [initandlisten] 21 2017-11-28T23: 47: 59.272-0800 I CONTROL [initandlisten] ** WARNING:/sys/kernel/mm/transparent_hugepage/enabled is 'alway '. 22 2017-11-28T23: 47: 59.272-0800 I control [initandlisten] ** We suggest setting it to 'never '23 2017-11-28T23: 47: 59.272-0800 I CONTROL [initandlisten] 24 2017-11-28T23: 47: 59.275-0800 I CONTROL [initandlisten] ** WARNING:/sys/kernel/mm/transparent_hugepage/defrag is 'always '. 25 2017-11-28T23: 47: 59.275-0800 I control [initandlisten] ** We suggest setting it to 'never '26 2017-11-28T23: 47: 59.275-0800 I CONTROL [initandlisten] 27 2017-11-28T23: 47: 59.339-0800 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic. data '28 2017-11-28T23: 47: 59.435-0800 I INDEX [initandlisten] build index on: admin. system. version properties: {v: 2, key: {version: 1}, name: "incompatible_with_version_32", ns: "admin. system. version "} 29 2017-11-28T23: 47: 59.435-0800 I INDEX [initandlisten] building index using bulk method; build may temporarily use up to 500 megabytes of RAM30 2017-11-28T23: 47: 59.436-0800 I INDEX [initandlisten] build index done. scanned 0 total records. 0 secs31 2017-11-28T23: 47: 59.438-0800 I command [initandlisten] setting featureCompatibilityVersion to 3.432 2017-11-28T23: 47: 59.439-0800 I NETWORK [thread1] waiting for connections on port 27017

 

Note! The default port is 27017;

The installation is complete;

Check Method: [root @ localhost bin] #./mongo. This indicates that the current version is displayed on the client;

[root@localhost bin]# ./mongoMongoDB shell version v3.4.4connecting to: mongodb://127.0.0.1:27017MongoDB server version: 3.4.4Welcome to the MongoDB shell.For interactive help, type "help".For more comprehensive documentation, see    http://docs.mongodb.org/Questions? Try the support group    http://groups.google.com/group/mongodb-userServer has startup warnings: 2017-11-28T23:47:58.406-0800 I STORAGE  [initandlisten] 2017-11-28T23:47:58.406-0800 I STORAGE  [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine2017-11-28T23:47:58.406-0800 I STORAGE  [initandlisten] **          See http://dochub.mongodb.org/core/prodnotes-filesystem2017-11-28T23:47:59.270-0800 I CONTROL  [initandlisten] 2017-11-28T23:47:59.270-0800 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.2017-11-28T23:47:59.270-0800 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.2017-11-28T23:47:59.270-0800 I CONTROL  [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended.2017-11-28T23:47:59.270-0800 I CONTROL  [initandlisten] 2017-11-28T23:47:59.272-0800 I CONTROL  [initandlisten] 2017-11-28T23:47:59.272-0800 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.2017-11-28T23:47:59.272-0800 I CONTROL  [initandlisten] **        We suggest setting it to 'never'2017-11-28T23:47:59.272-0800 I CONTROL  [initandlisten] 2017-11-28T23:47:59.275-0800 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.2017-11-28T23:47:59.275-0800 I CONTROL  [initandlisten] **        We suggest setting it to 'never'2017-11-28T23:47:59.275-0800 I CONTROL  [initandlisten] > 

Open Port: Open Port 27017 on the firewall to use external machine links;

Run the command [root @ localhost bin] # vi/etc/sysconfig/iptables
Add

-A input-m state -- state NEW-m tcp-p tcp -- dport 27017-j ACCEPT

Save and exit;

Install studio-3t on the outside can be linked;

 

 

 

If you need an environment package, you can leave your contact information in the comments. I will send you a copy.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.