I am currently reading SGA 4$\frac{1}{2}$, exposé 2: Rapport sur la formule des traces.
The $L$-series associated to a scheme $X$ of finite type over $\mathbb{F}_{p}$ is defined as $$L(X,s):=\prod_{x\in X^{F}}(1-Fp^{-s\cdot\operatorname{deg}(x)})\text{,}$$ where $F$ is the Frobenius and $x$ runs through all closed points of $X$. Excuse me if the following question is stupid: How do I actually know that this $L$ series coincides with the $\zeta$ function associated to $s$, given by
$$\zeta(X,s)=\prod_{\mathfrak{m}\text{ maximal in }X}\frac{1}{1-(N\mathfrak{m})^{-s}}$$
How do I actually prove that these coincide in every case?