The invention relates to a method for producing seeds by adopting cucumis melo facility in a greenhouse. According to the method, seeds of cucumis melo are produced in the solar greenhouse in early spring, the ratio of male and female parents is 1:5, male parents are 7 days earlier sown than female parents, planting and thorough watering are performed after a seedling has three leaves and one bud, intertillage is performed, a mulching film is covered, single stem training is performed on the female parents, vine-hanging cultivation is performed, pinching is performed when the seedling has 20-22 leaves, 16-19 nodes are used for fruit reserving, 3-4 vines are reserved for the male parents and hung, lateral buds are removed, 3-4 lateral vines are selected for pollination, emasculation is performed on female flowers at four o'clock in the afternoon one day earlier before the female flowers blossom, male flowers are well sleeved with sleeves, the well-sleeved male flowers are picked up at 5-7 o'clock next day, the emasculated female flowers are subjected to cross pollination at 7-10 o'clock and well sleeved with bags after pollination is completed, three hybrid melons are reserved, and two melons are selected when the three hybrid melons grow to the size of an egg. According to the method, the greenhouse is used for seed breeding of the cucumis melo, the flowering periods of wild species of various cucurbitaceae and vegetables are avoided, cross breeding probability is reduced, the seed purity is greatly improved, influence of adverse weather on melon growth is reduced, and the produced seed quality is better guaranteed.