Tag : ubuntu

By this problem make collapse, Baidu google tried still can’t, reshipment also can’t! !I can’t find all kinds of methods. Can you give me some advice? The error is as follows: 2017-03-21T19:16:41.552+0800 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused 2017-03-21T19:16:41.552+0800 E QUERY [thread1] Error: couldn’t ..

Read more

flytutu@flytutu-X550JK:~$ mongo MongoDB shell version: 3.2.6 connecting to: test 2016-06-02T12:30:02.242+0800 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused 2016-06-02T12:30:02.242+0800 E QUERY [thread1] Error: couldn’t connect to server 127.0.0.1:27017, connection attempt failed : connect@src/mongo/shell/mongo.js:229:14 @(connect):1:6 exception: connect failed Using terminal link, this problem has arisen, and online methods have also been tried, ..

Read more

See the official installation tutorial https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ After mongo is executed root@iZkZ:~# mongo Failed global initialization: BadValue Invalid or no user locale set. Please ensure LANG and/or LC_* environment variables are set correctly. Linux had better use its own package manager to install the software, instead of downloading the source code for compilation and installation, it ..

Read more

Linux command window directly Ctrl+C exits, then mongod will be closed $ mongod 2016-02-01T17:51:24.743+0800 I CONTROL [initandlisten] MongoDB starting : pid=19587 port=27017 dbpath=/data/db 64-bit host=iZ28krk4xlkZ Run in a configuration that uses Mongoose –fork does not work mongod –fork BadValue –fork has to be used with –logpath or –syslog try ‘mongod –help’ for more information According ..

Read more

Problem According to the document step by step, in fact, I in Ubuntu server down like this is no problem, and then in desktop sudo add-apt-repository \ “deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable” When we find this step, we will make mistakes. W: Failed to fetch https://download.docker.com/linux/ubuntu/dists/bionic/InRelease Could not wait for server fd ..

Read more

This is a backup script #! /bin/bash docker_name=mysql_container data_dir=/home/ubuntu/mysql_dump /usr/bin/docker exec -it $docker_name /usr/bin/mysqldump -u root -p root –all-databases > “$data_dir/data_`date +%Y%m%d`.sql” When sh is directly used for execution, a file with data can be generated, but through a timed task* * * * * /bin/sh /home/ubuntu/mysql_dump/mysql_dumps.sh, the backup file can be generated, the file ..

Read more

Environment: Ubuntu17.10Question:The following error occurred after executing the docker-compose command: Couldn’t connect to Docker daemon at http+unix://var/run/docker.sock – is it running? If it’s at a non-standard location, specify the URL with the DOCKER_HOST environment variable. Then, according to the online method, modify the/etc/default/doc file.ModifyDOCKER_OPTS=”-H tcp://127.0.0.1:4243 -H unix:///var/run/docker.sock”The following figure After saving and exiting, restart the ..

Read more