Electrons streaming in a background electron and ion plasma may lead to the formation of electrostatic solitary wave (ESW) and hole structure which have been observed in various space plasma environments. Past studies on the formation of ESW are mostly based on the particle simulations due to the necessity of incorporating particle's trapping effects. In this study, the fluid aspects and thermodynamics of streaming instabilities in electron-ion plasmas including bi-streaming and bump-on-tail instabilities are addressed based on the comparison between fluid theory and the results from particle-in-cell simulations. The energy closure adopted in the fluid model is the polytropic law of d(pρ-γ)/dt=0 with γ being a free parameter. Two unstable modes are identified for the bump-on-tail instability and the growth rates as well as the dispersion relation of the streaming instabilities derived from the linear theory are found to be in good agreement with the particle simulations for both bi-streaming and bump-on-tail instabilities. At the nonlinear saturation, 70% of the electrons are trapped inside the potential well for the drift velocity being 20 times of the thermal velocity and the pρ-γ value is significantly increased. Effects of ion to electron mass ratio on the linear fluid theory and nonlinear simulations are also examined.