Influenza, a severe respiratory disease caused by the influenza virus, has long been a prominent threat to human health. An increasing number of studies have demonstrated that oral administration with probiotics may increase the immune response to lung infection via the gut-lung axis leading to the alleviation of the pulmonary disease. In this study, we evaluated the effects of oral administration of Pediococcus pentosaceus MIANGUAN2 (MIANGUAN2) on influenza infection in a mouse model. Our results showed that oral administration of MIANGUAN2 significantly improved weight loss, lung index, and lung pathology, and decreased lung viral load of influenza-infected mice. Additionally, MIANGUAN2-treated mice showed significantly lower levels of TNF-α, IL-1β, IFN-γ, and IL-12p70 and higher production of IL-4 in the lung. In accordance with this, the transcriptome analysis of the lung indicated that MIANGUAN2-treated mice had reduced expression of inflammation markers, such as TNF, apoptosis, and the NF-Kappa B pathway. Furthermore, the administration of MIANGUAN2 restored the SCFAs profiles through regulating the gut microbiota. SCFA-producing bacteria, such as p_Firmicutes, f_Lachnospiraceae, and f_Ruminococcaceae, were enriched in the MIANGUAN2-treated group compared with PBS-treated group. Consistently, the concentrations of SCFAs in the MIANGUAN2 group were significantly higher than those in the PBS-treated group. In addition, the concentrations of SCFAs were positively correlated with SCFA-producing bacteria, such as Ruminococcus, while being negatively correlated with the virial titers and proinflammatory cytokines. In conclusion, this animal study suggests that Pediococcus pentosaceus MIANGUAN2 may alleviate the influenza infection by altering the gut microbiota composition and increasing the levels of gut microbiota-derived SCFAs.