We study the scalar, vector and tensor two-gluon and trigluon glueball spectra in the framework of the 5-dimension dynamical holographic QCD model, where the metric structure is deformed self-consistently by the dilaton field. For comparison, the glueball spectra are also calculated in the hard-wall and soft-wall holographic QCD models. In order to distinguish glueballs with even and odd parities, we introduce a positive and negative coupling between the dilaton field and glueballs, and for higher spin glueballs, we introduce a deformed 5-dimension mass. With this set-up, there is only one free parameter from the quadratic dilaton profile in the dynamical holographic QCD model, which is fixed by the scalar glueball spectra. It is found that the two-gluon glueball spectra produced in the dynamical holographic QCD model are in good agreement with lattice data. Among six trigluon glueballs, the produced masses for 1±− and 2−− are in good agreement with lattice data, and the produced masses for 0−−, 0+− and 2+− are around 1.5 GeV lighter than lattice results. This result might indicate that the three trigluon glueballs of 0−−, 0+− and 2+− are dominated by the three-gluon condensate contribution.