In order to study the effect of liquid-solid interaction and surface temperature on drag reduction and heat transfer, nonequilibrium molecular dynamics simulation is performed to investigate the density profile, velocity profile, velocity slip and temperature profile offluid by changing liquid-solid interaction factor a and surface temperature. The result shows that there is a low density layer near the surface when a is small (weak liquid-solid interaction), larger a (strong liquid-solid interaction) can induce density oscillation and solid-like layer near the surface. Velocity slip will decrease as the increases of a. It's worth noting that for a < 0.02, the density oscillation becomes more obvious as the rises of temperature, which impairs drag reduction; For alpha > 0.02, the rises of temperature will impair the oscillation, which enhances drag reduction. Due to the existence of low density layer, the heat transfer capacity is very weak when a is small, but the capacity will be enhanced as the increases of alpha.