Are you asking about home cheesemaking? As in pasteurizing because you would prefer to eliminate potential pathogens and competing bacteria?
If so, the best way is to heat to 145° and hold at that temp for 30 minutes. Better flavor and protein integrity with that method. Be sure to leave the stirring spoon in the entire time. I like to cover the pot with aluminum foil as that helps the temp stay consistent after reaching 145°.
161° for 15 seconds also works.
Then cool and proceed with cheesemaking.
If you want it to be legally pasteurized, you would need a licensed dairy facility, a pasteurizer's license, the proper Grade A (or equivalent) pasteurizer, etc.