China's consumer price index (CPI), a main gauge of inflation, rose 2.4 percent year-on-year in May, the National Bureau of Statistics said Wednesday.