To explore the influence of different wax components and the shear effect exerted by the pump and pipe wall in the process of crude oil pipeline transportation on the microbehavior of wax aggregation in crude oil at low temperatures, molecular dynamics models of binary and multivariate systems of crude oil with different wax components are established in this paper. The simulation results are compared with the existing experimental results and the NIST database to verify the rationality and accuracy of the models. By using the established binary model to simulate four crude oil systems containing different wax components, it can be found that the longer the wax molecular chain, the more easily the wax molecules aggregate. The influence of temperature on the aggregation process of wax molecules with different chain lengths is also studied. The lower the temperature, the greater the difference in wax molecular aggregation degree caused by the difference in molecular chain length. Nonequilibrium molecular dynamics is used to simulate the shear process of a multivariate system of crude oil, and the micromechanisms of the shear effect on the aggregation process of wax molecules are studied. Shearing can destroy the stable structure of crude oil, resulting in the orientation and conformational transformation of wax molecules, and obtaining the region of wax molecules sensitive to temperature and shear effects, the temperatures of which are below the wax precipitation point and the shear rate of which is lower than the maximum shear rate to prevent the molecular structure from being destroyed. At the same time, the sensitivity of wax components with different chain lengths to the shear effect is studied. The research results provide theoretical guidance for ensuring the safe and economic operation of waxy crude oil production.