Tag : centos

First, check whether SSH-KEY has been generated ls -al ~/.ssh Second, generate a new SSH-KEY ssh-keygen -t rsa -C “your_email@example.com” III. Successful Generation Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: ba:dd:cc:eb:69:f2:eb:99:1a:9c:61:91:8d:8f:50:d0 your_email@example.com The key’s randomart image is: +–[ RSA 2048]—-+ | .o. | ..

Read more

Install git Install Git on CentOS Install java8 How To Install Java on CentOS and Fedora Installing maven Centos installs maven. Install mongodb3.2 Edit/etc/yum.repos.d/mongodb-org-3.2.repo [mongodb-org-3.2] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/ gpgcheck=0 enabled=1 Installation yum install -y mongodb-org Configure firewall iptables -A INPUT -p tcp -m tcp –dport 27017 -j ACCEPT setenforce 0 Follow system startup chkconfig mongod ..

Read more

The mongodb database is connected through a shell, and clusters deployed by replication can be connected as follows: mongos mongodb://ctl1m:27017,ctl2m:27017,ctl3m:27017/? replicaSet=rs0 So, how should I connect if it is a sharding cluster deployment?I have tried the following, but I will report an error: [root@ctl1m ~]# mongos mongodb://ctl1m:30000,ctl2m:30000,ctl3m:30000/ Error parsing command line: too many positional options ..

Read more

1. The default maximum number of connections for 1.mongodb sharding cluster is 819. I want to increase the number, but the adjustment has not been successful. [root@ctl1m ~]# mongo mongodb://10.0.1.121:30000 MongoDB shell version v3.4.9 connecting to: mongodb://10.0.1.121:30000 MongoDB server version: 3.4.9 2018-01-18T18:19:13.270+0800 I CONTROL [main] mongos> db.serverStatus().connections { “current” : 715, “available” : 104, “totalCreated” ..

Read more

Centos7 yum installs mongodbExecute systemctl start mongodLog:mongod.service – SYSV: Mongo is a scalable, document-oriented database.Loaded: loaded (/etc/rc.d/init.d/mongod)Active: failed (result: exit-code) since4 2016-08-18 20:54:19 CST; 3s agoDocs: man:systemd-sysv-generator(8)Process: 28344 ExecStop=/etc/rc.d/init.d/mongod stop (code=exited, status=0/SUCCESS)Process: 28692 ExecStart=/etc/rc.d/init.d/mongod start (code=exited, status=1/FAILURE)August 18 20: 54: 19 localhost.localdomainsystemd [1]: startingsysv: mongois Scalable, document-oriented database ….August 18 20: 54: 19 localhost.localdomainrunuser [28699]: ..

Read more

The server is Aliyun 64-bit centos7. My installation procedure is as follows Modify yum package management systemvim /etc/yum.repos.d/mongodb-org-3.2.repo Fill in configuration[mongodb-org-3.2]name=MongoDB Repositorybaseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/gpgcheck=0enabled=1 Yum installationyum install -y mongodb-org Error prompt, look at English is the connection timeout without other images, how do I configure other images? Or modify baseurl directly? Don’t you just download it yourself ..

Read more

It was installed on AriyunCentOs7Mongodb version2.4.9 Installed in/usr/local/mongodb/under There is no problem in starting manually. In/etc/rc.d/rc.localAdded in /usr/local/mongodb/bin/mongod –dbpath=/usr/local/mongodb/db –logpath=/usr/local/mongodb/logs/mongodb.log Is it related to IP? I remember that there is no problem with this setup, solve it Just got it yesterday, it’s probably sudo service mongo xxx, please check the official ..

Read more

Hello-world running in docker on centos has the following problems, please hurry! panic: standard_init_linux.go:178: exec user process caused “permission denied” [recovered]panic: standard_init_linux.go:178: exec user process caused “permission denied” goroutine 1 [running, locked to thread]:panic(0x6f3000, 0xc4201385b0) /usr/lib/golang/src/runtime/panic.go:500 +0x1a1 github.com/urfave/cli.HandleAction.func1(0xc420083748) /builddir/build/BUILD/docker-96d83a5ff6ec0eb9bb7b45192c3048fd3aef5e21/runc-81b254244390bc636b20c87c34a3d9e1a8645069/Godeps/_workspace/src/github.com/urfave/cli/app.go:478 +0x247 panic(0x6f3000, 0xc4201385b0)… So the subject should be solved. It’s selinux’..

Read more