정의
setParametersetParameteris an administrative command for modifying options normally set on the command line. You must issue thesetParametercommand against the admin database.
호환성
이 명령은 다음 환경에서 호스팅되는 배포에서 사용할 수 있습니다.
MongoDB Enterprise: MongoDB의 구독 기반 자체 관리 버전
MongoDB Community: MongoDB의 소스 사용 가능 무료 자체 관리 버전
중요
이 명령은 MongoDB Atlas 클러스터에서 지원되지 않습니다. 모든 명령에 대한 Atlas 지원에 관해 자세히 알아보려면 지원되지 않는 명령을 참조하세요.
구문
db.adminCommand( { setParameter: 1, <parameter>: <value> } )
예제를 포함하여 사용 가능한 매개변수 는 자체 관리형 배포서버를 위한 MongoDB Server 매개변수를 참조하세요.
행동
지속성
Commands issued by the admin command setParameter do not survive server restarts. For a persistent option use the --setParameter command line option or the setParameter configuration file setting.
Stable API
apiStrict가 로 설정하다 에서 Stable 1 API V 를 사용하는 true 경우 를 setParameter 사용하여 서버 매개변수를 수정할 수 없습니다.