BEIJING — Pork is up. Vegetables are up. Gasoline is up. Even the official numbers, usually tame, are up.

Prices are rising in China — and that could complicate Beijing’s efforts to prop up a slowing economy and navigate President Trump’s trade war.

Chinese officials said Monday that an index of consumer prices rose in August for the third consecutive month. The increases are not particularly sharp, and Chinese economists point to a number of temporary factors pushing up prices, like floods that have damaged crops and a swine flu epidemic that led farmers to cull pigs.

Still, investors and the Chinese public alike are casting a wary eye on prices.

Angus Tong, a 37-year-old Beijing resident, said his landlord wanted to nearly double the rent for his family’s $1,200-a-month apartment. Rent already absorbs a third of his income and his wife’s, while the family’s monthly food bills have risen.