In this paper, we focus on two kinds of large deviations principles (LDPs) of the invariant measures of Langevin equations and their numerical methods, as the noise intensity ǫ → 0 and the dissipation intensity ν → ∞ respectively. First, by proving the weak LDP and the exponential tightness, we conclude that the invariant measure {µν,ǫ} of the exact solution satisfies the LDPs as ǫ → 0 and ν → ∞ respectively. Then, we study whether there exist numerical methods asymptotically preserving these two LDPs of {µν,ǫ} in the sense that the rate functions of invariant measures of numerical methods converge pointwise to the rate function of {µν,ǫ} as the step-size tends to zero. The answer is positive for the linear Langevin equation. For the small noise case, we show that a large class of numerical methods can asymptotically preserve the LDP of {µν,ǫ}ǫ>0 as ǫ → 0. For the strong dissipation case, we study the stochastic θ-method (θ ∈ [1/2, 1]) and show that only the midpoint scheme (θ = 1/2) can asymptotically preserve the LDP of {µν,ǫ}ν>0 as ν → ∞. These results indicate that in the linear case, the LDP as ǫ → 0 and the LDP as ν → ∞ for the invariant measures of numerical methods have intrinsic differences: the common numerical methods can asymptotically preserve the LDP of {µν,ǫ}ǫ>0 as ǫ → 0 while the asymptotical preservation of numerical methods for the LDP of {µν,ǫ}ν>0 as ν → ∞ depends on the choice of numerical methods. To the best of our knowledge, this is the first result of investigating the relationship between the LDPs of invariant measures of stochastic differential equations and those of their numerical methods.