The invention discloses a configuration item type constraint inference method based on name semantics, and provides a configuration item type inference and related constraint extraction method based on name semantics, wherein semantic information in a name and a type of a configuration item are fully mined, and consequently an aim of promoting configuration constraint extraction precision and eliminating constraint extraction boundedness is realized. A technical scheme comprises the following steps: firstly, reading a configuration file of a software system in advance, and obtaining the configuration item in the configuration file through parsing; secondly, finding out mapping between the system configuration item and a program source code through a characteristic mode; then, obtaining thetype of the configuration item through name analysis and program source code analysis; completing verification for the configuration type; and finally, inferring out the configuration constraint in cooperation with program analysis through a predefined template. According to the method provided by the invention, the semantic information in the name of the configuration item, particularly the constraint information contained in the configuration item type, is mined fully. The type of the configuration item is inferred through the name of the configuration item, meanwhile, grammar and semanticconstraint of the configuration item are extracted, difficulty in extraction of the configuration constraint is reduced greatly, the configuration constraint can be described in a fine granularity mode at the same time, and the method has good application scenes.