Evan Longoria homered off Max Scherzer in the fifth inning and the San Francisco Giants edged the Los Angeles Dodgers 1-0 on a blustery Monday night to take a 2-1 lead in their NL Division Series.

It was the Giants’ second shutout in the best-of-five series after winning the opener 4-0.

Game 4 is Tuesday at Dodger Stadium with Game 5 in San Francisco on Thursday, if necessary.

The Dodgers routed the Giants 9-2 to win Game 2, but mustered just five hits back at home. NL batting champion Trea Turner and Mookie Betts each went 0 for 4, and Corey Seager was 0 for 4 with a walk.

Longoria broke out of an 0-for-23 slump in a big way with his leadoff shot to left-center. He had just two hits in his last 40 at-bats. It was his first postseason homer since the 2013 ALDS with Tampa Bay. After that, Scherzer retired his final six batters.

CLICK HERE FOR MORE SPORTS COVERAGE ON foxnews.1eye.us

The Giants' other two hits were singles by Buster Posey and Kris Bryant. Their final 15 batters were retired, including in the ninth when Dodgers closer Kenley Jansen struck out the side.

San Francisco starter Alex Wood allowed two hits over 4 2/3 innings against his former team. The left-hander struck out four and walked two. Tyler Rogers got the win with 1 2/3 innings of relief. Camilo Doval pitched two perfect innings for the save.

Cool, gusty winds whipped the flags in center field and even caused Scherzer to stumble delivering an early pitch on a night with weather more akin to Oracle Park in San Francisco.

Napkins, peanut bags and plastic bags blew on the warning track and through the stands. A dusty haze obliterated the usual picturesque view of the San Gabriel Mountains and kept a pregame flyover from being seen except on the videoboard. A fan's white cap came flying out of the stands and landed on the field in the second inning.

The fierce wind blew steadily from left to right field throughout the game, ruffling the pants of the pitchers on the mound.

Scherzer tweaked his mechanics in his last bullpen session before Game 3. It worked. He pitched with a rhythm missing from his last three starts, when he struggled with his command, including in the NL wild-card game against St. Louis.

He retired 10 batters between Posey's single in the first and Bryant's two-out single in the fourth. Bryant made his first start of the season at first for the Giants.

Scherzer gave up one run and three hits in seven innings in taking the loss. The three-time Cy Young Award winner struck out 10 — his fifth career double-digit postseason strikeout total — and walked one on 110 pitches.

The tension was palpable into the later innings.

Pinch-hitter Steven Souza Jr. and Will Smith had one-out singles in the seventh, the Dodgers' first back-to-back hits of the game, off submariner Rogers. Pinch-hitter Austin Barnes struck out swinging.

With the sellout crowd of 53,299 on its feet chanting, "Let's go, Dodgers!", Betts hit a screaming liner into the glove of leaping shortstop Brandon Crawford to end the threat.

The Dodgers had three hits — all singles — through six innings.

Their first hit came off the bat of 41-year-old Albert Pujols, whose bloop single to right led off the third in his 75th career postseason game. Along with Pujols, the Dodgers started 37-year-old Scherzer and 36-year-old Justin Turner at third.

It was Pujols' first start and hit in the playoffs since the 2014 ALDS with the Los Angeles Angels. The three-time NL MVP hit .294 against left-handed pitching during the regular season.

Pujols singled again leading off the fifth before being replaced by pinch-runner Billy McKinney. It was his first multi-hit postseason game since his three-homer performance in Game 3 of the 2011 World Series for St. Louis.

MISSING MOM

Giants left fielder LaMonte Wade Jr.'s mother missed the first three games of the NLDS because she's in a competition of her own — a table tennis tournament.

"Shows where her priorities are, but, no, she's having fun with it. I get videos from my dad," Wade said. "They will definitely be watching."

UP NEXT

Neither manager had announced a starter for Game 4 on Tuesday.