A stator mechanism of linear motor. The stator mechanism includes multiple magnetic members. The magnetic members are sequentially arranged along a predetermined straight line with the magnetic poles of the same polarity adjacent to each other to repel each other. Each magnetic member includes at least two magnetic bodies, which are coaxially arranged with the magnetic poles of different polarities adjacent to each other to attract each other.