The innate immune response of Charybdis japonica treated with Aeromonas hydrophila was explored using bioinformatics. Metabolomics data were integrated with a gut microbial 16S rRNA dataset, together with information on corresponding enzyme activity. The results of the study showed that after being infected with A. hydrophila, some beneficial genera of bacteria in the gut of C. japonica, such as Photobacterium, Rhodobacter, Polaribacter, Psychrilyobacter, Mesoflavibacter, Fusibacter and Phormidium, could directly inhibit Vibrio or produce extracellular polysaccharides with highly effective antibacterial properties. The intestinal probiotics of C. japonica such as Mesoflavibacter have a mutually reinforcing relationship with Phaeobacter, Colwellia, Bacillus, Psychrobacter and Cohaesibacter. Conditional pathogenic bacteria in the gut of healthy crabs may also have such a symbiotic relationship with intestinal probiotics, promoting their growth and reproduction. For example, Phormidium has a mutualistic relationship with Aeromonas and Azopira. Metabolites in the gut of C. japonica infected with A. hydrophila, including beta-alanine metabolism, nitrogen metabolism, inositol phosphate metabolism, galactose metabolism, histidine metabolism, ascorbate and arginine and proline metabolism were increased, with alanine metabolism being the most abundant. The activity of metabolite related enzymes such as lipid peroxidase, phenoloxidase, superoxide dismutase, nitric oxide synthase, glutathione transferase and mid-glutathione decreased and NO levels also decreased. The positive correlation with the probiotic flora suggests that metabolites increase with bacterial abundance and that microbial metabolites or co-metabolites can, in turn, achieve many pleiotropic effects to resist invasion by A. hydrophila. These results may contribute to further research in the resistance of C. japonica to invading pathogens.