Rene Rivera had a run-scoring single in the bottom of the ninth inning and the Tampa Bay Rays beat the Boston Red Sox 2-1 on Thursday night.

Allan Dykstra opened the ninth with a single off Anthony Varvaro (0-1). Pinch-runner Tim Beckham went to second on Kevin Kiermaier's one-out single and scored the winning run on Rivera's hit down the third-base line.

Brad Boxberger (2-1) struck out one during a perfect ninth for the win.

The Rays have won in two in a row after dropping the four first games of a nine-game homestand.

Tampa Bay's Jake Odorizzi gave up one run, three hits, three walks and had three strikeouts in 6 2-3 innings.

Clay Buchholz allowed one run and two hits over six innings for Boston. He struck out 10 and walked three.

Buchholz didn't allow a run over 21 innings in his previous three road starts against the Rays, dating to 2012. The streak ended when the Rays tied it at 1 in the second on an RBI single by Logan Forsythe.

Boston opened the scoring earlier in the second on Daniel Nava's sacrifice fly.

Kiermaier made a diving catch in center charging toward the infield after first breaking the wrong way on Mookie Betts' fly with two on and two outs in the fifth.

The announced attendance for the three-game series was just 40,874, including 13,834 Thursday.

TRAINER'S ROOM

Red Sox: RF Shane Victorino (right hamstring) didn't play and may also sit out Friday.

Rays: RF Steven Souza Jr. started after leaving Wednesday's game with right forearm cramps. ... 1B James Loney (oblique) started a short rehab assignment at Class-A Charlotte. ... LHP Matt Moore (elbow surgery) could throw batting practice early next month.

UP NEXT

Red Sox: RHP Rick Porcello faces Baltimore Friday night after allowing eight runs in five innings to the Orioles Sunday.

Rays: Manager Kevin Cash expects no carryover Friday night against Toronto after an April 16 game when Edwin Encarnacion and Evan Longoria were hit by pitches. "We've got to win ballgames," he said.