The invention relates to a V2X Internet-of-vehicles safety communication 
system and method based on 5G. The V2X Internet-of-vehicles safety communication 
system comprises a cloud terminal, a vehicle terminal, a road side terminal and at least two 
pedestrian terminals, wherein the sum of the number of the road side terminals and the number of the 
pedestrian terminals is at least two; the cloud terminal comprises a 
certificate server, a cloud security module and an Internet-of-vehicle 
server; the vehicle end comprises a vehicle end short-distance 
direct communication module, a vehicle end 5G communication module, a vehicle terminal safety module and a vehicle terminal control module; the roadside end comprises a roadside end short-distance 
direct communication module, a roadside end 5G communication module, a roadside terminal safety module and a roadside terminal control module; the 
pedestrian terminal comprises a pedestrian end short-distance 
direct communication module, a pedestrian end 5G communication module, a pedestrian end safety module and a pedestrian end control module; V2X Internet-of-vehicles identity 
authentication and group security 
encryption communication are realized according to the characteristics of 5G and V2X Internet-of-vehicles, so that the V2X Internet-of-vehicles identity 
authentication and group security 
encryption communication are safe, reliable, simple and efficient.