It wasn’t too hot. It wasn’t too cold.

Investors welcomed Friday’s unemployment and jobs data from the government, which showed a near-perfect combination of surprisingly strong job growth and little indication of rising wages that could prompt the Federal Reserve to raise interest rates faster.

The Standard & Poor’s 500-stock, the Dow Jones industrial average and the Nasdaq composite index all closed more than 1.7 percent higher, driven by gains across a range of sectors.