To enhance the anti-interference capability of an electrohydraulic force servo control system and increase the efficiency of the PID controller, this paper proposes a LBAS-PID controller. In LBAS, the random step created by the Lévy flight trajectory was used in the original algorithm to enhance the diversity of the population and convergence speed. In the force servo control system, LBAS-PID can enhance the performance of the system. First, the basic mathematical model of an electrohydraulic force servo control system was built based on theoretical analysis. The transfer function model was obtained by identifying the system parameters. Second, the introduced Lévy flight beetle antennae search algorithm was introduced and applied to ten benchmark functions, and the results were compared with those of other algorithms. Then, the proposed algorithm was applied in the PID controller to tune PID parameters in the force servo control system. To comprehensively evaluate performances of an electrohydraulic force servo control system that is controlled by the LBAS-PID controller, the frequency response analysis and temporal response analysis were obtained. The numerical analysis results indicate that an electrohydraulic force servo control system with an LBAS-PID controller could substantially increase the control characteristics of the system and restrain the external disturbances when different interference signals are examined.