mongdb配置文件一

mongdb使用過程中,配置是很重要的,這篇文章我們將介紹一個簡單的mongdb配置:下篇文章我們介紹每個配置意義:

systemLog:
	verbosity:integer 
	destination:file 
	path:""
	quiet:true 
	logAppend:true 
	timeStampFormat:iso8601-utc 
storage:
	dbPath:"" 
	directoryPerDB:true 
	indexBuildRetry:false
	preallocDataFiles:true
	nsSize:16 
	smallFiles:false 
	syncPeriodSecs:60
	#quota:
		#enforced:false
		#maxFilesPerDB:8	
	journal:
		enable:true 
		#debugFlages:1 
		commitIntervalMs:100 
processManagement:
	fork:true 
	pidFilePath:"" 
net:
	bindIp:92.168.2.2 
	port:27017 
	#maxIncomingConnections: 
	#wireObjectCheck: 
	http:
		enabled:true 
		RESTInterfaceEnabaled:false
		#ssl:
			#mode:"requireSSL"
			#PEMKeyFile:""
operationProfiling:
	slowOpThresholdMs:100
	mode:"slowOp"
security:
	keyFile:""
	ClusterAuthMode:"keyFile"
	authorization:"disabled"
replication:
	oplogSizeMB:50
	replSetName:"repl_test"
	secondaryIndexPrefetch:"all"
		

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章