John Lackey threw a ton of pitches, allowed a bunch of baserunners — and got out of plenty of trouble.

“It was a grind. I did just enough to get it done,” Lackey said after allowing one unearned run over his five innings of the Los Angeles Angels’ season-opening 4-1 victory over the Texas Rangers on Monday night.

Lackey (1-0) threw 96 pitches, walked four and gave up four hits — including Ian Kinsler’s homer after catcher Mike Napoli dropped Kinsler’s foul pop for an error. The right-hander struck out five and stranded runners on third base four times.

“He made the pitches when he needed to,” Los Angeles manager Mike Scioscia said.

The Angels’ victory spoiled Ron Washington’s major league managerial debut. The Rangers squandered a string of opportunities, going 0-for-8 with runners in scoring position.