Although Ligilactobacillus salivarius Li01 (Li01) has shown much promise in preventing multiple gastrointestinal diseases, the potential of the probiotic in alleviating constipation and the related mechanisms remain unclear. In this study, the effects of Li01 were evaluated in a loperamide-induced constipation mouse model. The results demonstrated that Li01 intervention can relieve constipation symptoms by improving water content, quantity, and morphology of feces and act as an intestinal barrier structure protector. Furthermore, Li01 can modulate gut motility (gastrointestinal transit rate), the fluid transit-associated expression of aquaporins, and the serum parameters vasoactive intestinal peptide, substance P, and somatostatin. Constipation significantly increased the levels of 5-hydroxytryotamine (5-HT) in serum (p < 0.01) and decreased the levels in the intestine (p < 0.001). Due to its function of elevating the expression of tryptophan hydroxylase 1, this was reversed after Li01 treatment. Li01 also promoted the expression of 5-HT receptor 3 and 4, indicating that the 5-HT signaling pathway may play a critical role in the mechanism by which Li01 alleviate constipation symptoms. Additionally, Li01 significantly altered the gut microbiota composition by enhancing the ratio of Firmicutes/Bacteroidetes and increasing the abundance of Rikenellaceae_RC9 genera. Based on the above results, Li01 may have the potential to effectively alleviate constipation by regulating the 5-HT pathway and alteration of the gut microbiota.