MongoDB service management
2012-08-21 10:10
176 查看
---------------------------stop mongoDB service--------------------------------------------------------------
$ ./mongo
MongoDB shell version: 1.5.4
connecting to: test
> use admin
switched to db admin
> db.shutdownServer()
Sat Jul 24 23:11:36 query failed : admin.$cmd { shutdown: 1.0 } to: 127.0.0.1
server should be down...
Sat Jul 24 23:11:36 trying reconnect to 127.0.0.1
Sat Jul 24 23:11:36 reconnect 127.0.0.1 failed couldn't connect to server {ip: "127.0.0.1", port: 27017}
Sat Jul 24 23:11:36 MessagingPort say send() errno:9 Bad file descriptor 127.0.0.1:27017
Sat Jul 24 23:11:36 Error: error doing query: unknown (anon):1421
> exit
bye
------------------------start MongoDB service------------------------------------------------------------------
root@jason:~ #cd /etc/init.d/
root@jason:/etc/init.d #service mongodb-standalone start
tail -f /var/log/mongodb/mongod.log
$ ./mongo
MongoDB shell version: 1.5.4
connecting to: test
> use admin
switched to db admin
> db.shutdownServer()
Sat Jul 24 23:11:36 query failed : admin.$cmd { shutdown: 1.0 } to: 127.0.0.1
server should be down...
Sat Jul 24 23:11:36 trying reconnect to 127.0.0.1
Sat Jul 24 23:11:36 reconnect 127.0.0.1 failed couldn't connect to server {ip: "127.0.0.1", port: 27017}
Sat Jul 24 23:11:36 MessagingPort say send() errno:9 Bad file descriptor 127.0.0.1:27017
Sat Jul 24 23:11:36 Error: error doing query: unknown (anon):1421
> exit
bye
------------------------start MongoDB service------------------------------------------------------------------
root@jason:~ #cd /etc/init.d/
root@jason:/etc/init.d #service mongodb-standalone start
tail -f /var/log/mongodb/mongod.log
相关文章推荐
- Windows 8.1激活出错情况(No Key Management Service(KMS) could be contacted)及最终解决方案
- Solaris 服务管理器(Service Management Facility, SMF)
- 使用MMS(MongoDB Monitoring Service)监控MongoDB
- add mongodb service to centos boot start
- Solution for "The Key Management Service(KMS) is unavailable"
- Install MongoDB as a windows service
- ITIL内部培训资料(IT服务持续性管理(IT Service Continuity Management) )
- java.lang.NoClassDefFoundError:com.ibm.ws.management.configservice.TypeRegistry
- A ChildWindow management service for MVVM applications
- [New Portal]Windows Azure Cloud Service (32) Windows Azure新的Management Portal简介
- Mongodb Management Studio
- Transaction Management with Liferay Service
- Service Management in C#.NET(C#.NET的服务管理器)
- Mongo client - cross-platform MongoDB management tool
- M202: MongoDB Advanced Deployment and Operations - Chapter 4: Sharded Cluster Management
- 通过Solaris10的SMF(Service Management Facility)来管理MySQL(附带MySQL安装)
- Install MongoDB as a windows service
- 我机也中病毒-MS Driver Management Service(原创)
- ubuntu 15.10 mongodb.service 起不起来解决方案
- IIS无Management Service Delegation