THE OFFICERS

Rafael Ramos

Ramos, who celebrated his 40th birthday this month, joined the NYPD in 2012 after working as a school security officer. He was a lifelong Brooklyn resident, living in the same Cypress Hills section where he had grown up.

He was married with two sons: a 13-year-old and one in college. Rosie Orengo, a friend from church, said he was a leader there and an active participant in the church’s group focusing on married life.

“He was always encouraging us in our marriages,” she said, recalling that the last online post she saw from him was about appreciating and deepening love.

Wenjian Liu

The 32-year-old Liu had more job experience and had been a member of the police force for seven years. He moved this year to a home in Brooklyn’s Gravesend section.

Liu had gotten married just two months ago.

FLORIDA OFFICER SHOT AND KILLED

Pinellas County Sheriff Bob Gualtieri said Sunday that police have arrested 23-year-old Marco Antonio Parilla Jr. on suspicion of first-degree murder.

The shooting does not appear to have any connection to the ambush killings of two New York police officers.

Authorities say Officer Charles Kondek previously served on the New York City Police Department for more than five years.

Moments before opening fire, Ismaaiyl Brinsley approached people on the street and asked them to follow him on Instagram, then told them, “Watch what I’m going to do,” Chief of Detectives Robert Boyce said.

A portrait of the Brooklyn-born gunman emerged as big-city police departments and union leaders around the country warned officers to change up their routines and insist on extra backup a day after Brinsley carried out what he portrayed online as retaliation for the slayings of black men at the hands of white police.

Brinsley was black; the slain officers were Asian and Hispanic.

Investigators were trying to determine if Brinsley had taken part in any protests over the deaths of Michael Brown and Eric Garner, whose names he invoked in his online threat, or simply latched on to the cause for the final act in a violent rampage.

They said he traveled frequently between the South and New York, where he fathered a child in Brooklyn, and had been in the city earlier in the week.

Brinsley, 28, had at least 19 arrests in Georgia and Ohio, spent two years in prison for gun possession and had a troubled childhood so violent that his mother was afraid of him, police said. He ranted online about police and the government and expressed “self-despair and anger at himself and where his life was,” Boyce said.

Boyce said Brinsley’s mother believed he had undiagnosed mental problems and may have been on medication at some point, but detectives were still trying to determine if he had a mental illness.

On Saturday afternoon, Brinsley approached a squad car from behind in Brooklyn’s Bedford-Stuyvesant section and fired four shots, killing Officers Rafael Ramos and Wenjian Liu. He then ran into a subway station and committed suicide.

Hours earlier, Brinsley had shot and wounded his ex-girlfriend at her home outside Baltimore, then made threatening posts online, including a vow to “put wings on” officers, and references to the Brown and Garner cases.

Baltimore-area police warned the New York department that Brinsley was in the city and bent on violence. But New York police were still getting the word out when Brinsley struck.

The slayings dramatically escalated tensions that have simmered for months over police killings of blacks.

The siege mentality was evident in several memos circulating among the rank and file at the 35,000-officer New York Police Department, the nation’s largest.

A union-generated message warned police officers that they should respond to every radio call with two cars — “no matter what the opinion of the patrol supervisor” — and not make arrests “unless absolutely necessary.” The president of the detectives union told members in a letter to work in threes when out on the street, wear bulletproof vests and keep aware of their surroundings.

“Cowards such as yesterday’s killer strike when you are distracted and vulnerable,” the letter read.

Another directive warned officers in Newark, N.J., not to patrol alone and to avoid people looking for confrontations. At the same time, a memo from an NYPD chief asked officers to avoid fanning rage by limiting comments “via all venues, including social media, to expressions of sorrow and condolence.”

The slayings come at a tense time. Police nationwide are being criticized for months for their tactics, following Garner’s death in a New York officer’s chokehold and Brown’s fatal shooting in Ferguson, Mo. Protests erupted in recent weeks after grand juries declined to charge the officers involved.

New York City Police Commissioner William Bratton and Mayor Bill de Blasio attended Sunday Mass at St. Patrick’s Cathedral, where Cardinal Timothy Dolan called for calm. Bratton later visited the families of both officers and laid flowers at a makeshift memorial at the site of the slayings.

“It’s a reflection that the community cares about the cops,” said Bratton, adding that the memorial was “very appropriate.”

Brooklyn Borough President Eric Adams also visited the memorial, calling on protest organizers to “hold off on any type of protest until these officers are laid to rest in a peaceful manner.”

The family of slain Officer Rafael Ramos also appealed for peace in the days ahead.

Cousin Ronnie Gonzalez said the family has already forgiven the gunman. “He’s in the hands of God now,” he said. “We don’t believe in vengeance; we just forgive.”

At an appearance with the Rev. Al Sharpton, Garner’s mother expressed her dismay over the killings of the officers.

“I’m standing here in sorrow about losing those two police officers. That was definitely not our agenda,” Gwen Garner said.

“We are going in peace, and anyone who’s standing with us, we want you to not use Eric Garner’s name for violence because we are not about that,” she added. “These two police officers lost their lives senselessly and our condolence to the family and we stand with the families.”