Tag:mongodb

  • Brew installation of mongodb under the MAC method tutorial

    Time:2019-10-23

    Homebrew is a common software installation tool for macs In my opinion, brew installation is relatively simple. How to install it Install the mongo wenxuezhangdeMacBook-Pro:~ wenxuezhang$ brew install mongodb This figure has been installed successfully, install directory is/usr/local/Cellar/mongo / 3.2.9 Starting the server for the first time requires some preparation. By default, mongodb data file […]

  • Mo tianlun document open test, three good gifts you take

    Time:2019-10-23

    Event detailsMok documents are organized by technical experts and uploaded to the database related solutions. Currently support PDF, PPT, WORD, TXT format files, users can browse all documents online free, but also through the ink value to download to the local. Now open beta, invite you to become a technical expert and upload documents, three […]

  • Mongoose error: getaddrinfo ENOTFOUND localhost localhost:27017

    Time:2019-10-23

    { Error: getaddrinfo ENOTFOUND localhost localhost:27017 at errnoException (dns.js:50:10) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26) code: ‘ENOTFOUND’, errno: ‘ENOTFOUND’, syscall: ‘getaddrinfo’, hostname: ‘localhost’, host: ‘localhost’, port: 27017 } mongoose.connect(‘mongodb://localhost:27017/db1’,{ poolSize:5, useNewUrlParser: true },err=>{ if(err){ console.error(err) }else { Console.log (‘mongodb successfully connected ‘) } }) Try changing localhost to 127.0.0.1 mongoose.connect(‘mongodb://127.0.0.1:27017/db1’,{ poolSize:5, useNewUrlParser: true },err=>{ if(err){ console.error(err) […]

  • Mongodb installation and operation

    Time:2019-10-21

    I. database installation under win Enter the Mongo official website and select the corresponding MSI version to download. During installation, the mongod service installation and some database configurations are checked by default. For example, the existing database connection tool Robo 3T can cancel the compass installation checked by default. If the startup service reports MP […]

  • Three popular databases of NoSQL, memcached, redis and mongodb

    Time:2019-10-21

    Preface NoSQL, generally refers to non relational database. With the continuous development of the Internet, the traditional relational database has been unable to cope with the new Internet model websites, especially the super large-scale and high concurrent SNS type pure dynamic websites, which has exposed many problems that are difficult to overcome, while the non […]

  • Ubuntu 14.04 installation of mongodb and PHP mongodb driver

    Time:2019-10-21

    Explain Mongodb is a very famous NoSQL database. The following is the installation of mongodb under Ubuntu 14.04, as well as the configuration for PHP (driver installation, etc.), which is applicable to homestead. Install mongodb 1. add source sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv 7F0CEB10 echo ‘deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen’ | sudo tee /etc/apt/sources.list.d/mongodb.list sudo […]

  • Laravel installation jenssegers / laravel mongodb expansion and the pit encountered

    Time:2019-10-20

    Mongodb is used in the project, so we found jenssegers / laravel mongodb with the most stars on the largest same-sex dating website. Package installation 1. Find the package version corresponding to the local laravel according to readme. 2. Use composer require in the development environment 3. Configure config / app.php /* * mongoDB */ […]

  • A detailed explanation of how to store files in PHP mongodb gridfs

    Time:2019-10-20

    <?php //Initialize gridfs $conn = new mongo(); // connect to mongodb $DB = $conn – > Photos; // select database $grid = $DB – > getgridfs(); // get gridfs object Gridfs can store files in three ways The first way to store files directly $id = $grid->storeFile(“./logo.png”); The second kind of binary stream for storing […]

  • Alibaba cloud CentOS deployment Vue family bucket + node + koa2 + Mongo project

    Time:2019-10-19

    Written in front If you have any questions about the first deployment project of front-end development, please put forward them in time to avoid misleading other children’s shoes. Tap ~, Update system sudo yum update Install Mongo 1. Add mongodb source Create a file named mongodb-org-4.0.repo under / etc / yum. Repos. D /. And […]

  • How to query the document ID in mongodb by PHP Library

    Time:2019-10-19

    One of my new jobs at IBM is as a logistics developer. That means I spend most of my time dealing with databases. In my workflow, I spent some time on mongodb – a document database. But I ran into some problems in retrieving records by ID. The following code is the final version. I […]

  • Explanation of mongodb master-slave replication instance

    Time:2019-10-18

    Master-slave replication can be used for database backup, fault recovery, read-write separation. Mongodb version 3.2 is used in this experiment. Let’s check the help of mongodb first. [[email protected] mongodb]# mongod –help Omission Master/slave options (old; use replica sets instead): –master master mode –slave slave mode –source arg when slave: specify master as <server:port> –only arg […]

  • Installing mongodb under Windows

    Time:2019-10-18

    One: Download mongodb installation package Download address: https://www.mongodb.com/downl… It is recommended to download the MSI installation package II. Install mongodb Double click the downloaded mongodb installation package to install It’s very easy to install the software under windows. You only need next. You only need to pay attention to the following two points. 1: as […]