This is the sign you're looking for at the Napoli Centrale train station. Follow the signs for "Circumvesuviana." The train you want is the one to Sorrento. Pompeii is on the way to Sorrento. Some trains make fewer stops than others. Look for the "Express" or "Espresso" train.