Pyrosequencing-based analyses revealed significant effects among low (N50), medium (N80), and high (N100) fertilization on community composition involving a long-term monoculture of lettuce in a greenhouse in both summer and winter. The non-fertilized control (CK) treatment was characterized by a higher relative abundance of Actinobacteria, Acidobacteria, and Chloroflexi; however, the average abundance of Firmicutes typically increased in summer, and the relative abundance of Bacteroidetes increased in winter in the N-fertilized treatments. Principle component analysis showed that the distribution of the microbial community was separated by a N gradient with N80 and N100 in the same group in the summer samples, while CK and N50 were in the same group in the winter samples, with the other N-level treatments existing independently. Redundancy analysis revealed that available N, NO3−-N, and NH4+-N, were the main environmental factors affecting the distribution of the bacterial community. Correlation analysis showed that nitrogen affected the shifts of microbial communities by strongly driving the shifts of Firmicutes, Bacteroidetes, and Proteobacteria in summer samples, and Bacteroidetes, Actinobacteria, and Acidobacteria in winter samples. The study demonstrates a novel example of rhizosphere bacterial diversity and the main factors influencing rizosphere microbial community in continuous vegetable cropping within an intensive greenhouse ecosystem.