Rising oil and commodity prices gave global stock markets a boost Tuesday, with most major indexes closing or trading higher. China was a notable exception, where the stock market had rallied on Monday but fell Tuesday as investors remained wary of a sustained improvement in the real economy of the country.