Cellulases are essential for the enzymatic saccharification of lignocellulose. They play a crucial role in breaking down the structure of lignocellulose to obtain fermentable sugars. In this study, we conducted on-site cellulase production by Trichoderma reesei RutC-30 through submerged fermentation. The effects of carbon source, nitrogen source, KH2PO4, and mineral elements on cellulase production were evaluated using the hydrolyzed total sugar concentration of ball-milled corn stover as an indicator. The optimal fermentation medium conditions for cellulase production were determined through orthogonal experimental design analysis. Additionally, by optimizing culture conditions, including inoculation, pH, and bottling volume, we achieved a total sugar concentration of 92.25 g/L. After the optimization, the FPA, CMCA, protein, and total sugar concentration increased by 75.49 %, 18.43 %, 89.71 %, and 17.83 %, respectively. Furthermore, corn stover pretreated by different methods was applied to induce cellulase production. Ball-milled and steam-exploded corn stover was identified as suitable incubation carbon sources with total sugar concentration up to 94.31 g/L. Our work exploits the cellulase induced by lignocellulose and then applies it to lignocellulose, enabling the customization and providing a reference for the production of cellulase with corn stover as an inducer.