During the shutdown period of the J-Y refined oil product pipeline, there is a significant difference between the temperature of the transported oil and the outside soil temperature, which leads to a pressure drop in the pipeline after the shutdown. When the pressure at the high point of the pipeline drops below the saturated vapor pressure, air resistance occurs inside the pipeline, making it impossible to maintain pressure. This further poses a potential threat to the safe operation of the pipeline system. The SPS software was used to establish a pipeline model to simulate the equivalent soil temperature distribution along the pipeline. Through simulation and analysis, the inlet temperature error at the terminal station was effectively corrected, thereby obtaining the average soil temperature along the pipeline and the temperature drop range after shutdown. A fitting equation was utilized to reveal the relationship of equivalent soil temperature change over time. Combined with the pre-pump temperature measurement value and the equivalent soil temperature value obtained from the simulation, a shutdown operation was carried out after the system had been running for a period of time, and the trend of temperature and pressure changes after shutdown was simulated by the SPS model. The analysis shows that the temperature difference between oil and soil shows an exponential relationship with the pressure preservation time after shutdown. If the temperature difference between oil and soil before shutdown is small enough, vaporization is less likely to occur in the whole line after shutdown. If the temperature difference between oil and soil before shutdown is negative, the pressure in the pipe will increase after shutdown.