Configure the mongos process of the SHARD2 node
[root@shard2 bin]# cat < > /usr/local/mongodb/bin/mongos.conf
bind_ip=192.168.100.103
port=27025
logpath=/usr/local/mongodb/logs/mongos.log
fork=true
maxConns=5000
configdb=configs/192.168.100.101:27017,192.168.100.101:27018,192.168.100.101:27019
END
[root @ shard2 bin] # touch…/logs/mongos.log
[root @ shard2 bin] # chmod 777…/logs/mongos.log
[root @ shard2 bin] # mongos -f/usr/local/mongodb/bin/mongos.conf
about to fork child process, waiting until server is ready for connections.
forked process: 1562
child process started successfully, parent exiting
[root@shard2 ~]# netstat -utpln |grep mongo
tcp 0 0 192.168.100.103:27019 0.0.0.0:* LISTEN 1095/mongod
tcp 0 0 192.168.100.103:27020 0.0.0.0:* LISTEN 1122/mongod
tcp 0 0 192.168.100.103:27025 0.0.0.0:* LISTEN 12122/mongos
tcp 0 0 192.168.100.103:27017 0.0.0.0:* LISTEN 1041/mongod
tcp 0 0 192.168.100.103:27018 0.0.0.0:* LISTEN 1068/mongod
Read More:
- Mongodb start error: child process failed, exited with error number 1
- The transaction log for database ‘xxxx’ is full due to AVAILABILITY_REPLICA error message in SQL Ser…
- Error inflating class fragment error when loading custom fragment with fragment (valid)
- Mongodb — startup exception, error report ERROR:NUMBER 100
- Using UMI plugin keep alive to realize keep alive state storage in UMI Ant Design
- MongoDB Error: Failed to start mongod.service: Unit mongodb.service is masked
- To customize the aggregate function of Flink (Step-by-Step Tutorial)
- Log search of SQL execution on distributed green plus database master
- Mongodb caused 127.0.0.1:27017 unable to connect
- Mybatis uses step-by-step lazy loading to cause abnormal JSON conversion. The interface 500 reports an error
- How to solve MySQL error 1049 (42000): unknown database ‘database’
- Error: child process failed, exited with error number 1
- Solution to 1030 got error 28 from storage engine in MySQL
- PHP connection to MySQL database error: call to undefined function MySQL_ connect()
- Win7 system build PHP + MySQL + Apache environment + deploy ECSHOP project
- Failed to read auto-increment value from the storage engine in MySQL
- MySQL error STORAGE ENGINE failed
- MySQL error set: failed to start mysql.service : Unit mysql.service is masked.
- An error is reported when kettle connects Oracle database and MySQL database
- (error when importing database): MySQL 2006-mysql server has gone away