The effect of four composting treatments,such as cattle manure(C),cattle manure and straw (CSt),cattle manure and soil(CSo),cattle manure,straw and soil(CStSo) on greenhouse gases(GHGs) emission were studied by using the static chamber-gas chromatograph techniques,so as to provide a reference for GHGs emission reduction and composting model optimization. The results showed compost temperature and air temperature in greenhouse both took on rising-descending-rising trend during composting period. But the air temperature was higher than compost temperature at the same observation time. Overall, the compost temperature of CSt,CStSo treatments were higher than those of C,CSo treatments,indicating that adding wheat straw could increase the compost temperature. The emission flux of carbon dioxide (CO_2),methane(CH_4),and nitrous oxide(N_2O) under C treatment increased with the time going on, and the maximum value appeared between the sixth and seventh week. The trend of GHGs emission flux of CSt,CSo,and CStSo treatments first increased and then declined,the maximum emission flux of CO_2 and CH_4 appeared on the second week,the maximum emission flux of N_2O was observed during the fifth and sixth week. The order of average CO_2 emission flux was CSt >CStSo >CSo >C,among which all treatments were significantly different except C and CSo treatments. The order of average CH_4emission flux was C >CSt >CStSo >CSo,among which CSt,CSo,CStSo treatments were significantly different with C treatment, and CSt treatment was also significantly different with CSo treatment. The order of average N_2O emission flux was CSo >CSt >CStSo >C,among which C and CSo treatments were significantly different. The global warming potential(GWP) of CSt,CSo,and CStSo treatments were 3.25,2.61,and 2.59 times of C treatment respectively,which showed that cattle manure compost gave out the lowest amount of GHGs. Based on the GHGs emission amount and realistic compost constituent,CStSo treatment was recommended to apply after increasing the ratio of cattle manure and soil.