With the transformation of modern medical models, the medical needs of patients have changed from treatment to safe, comfortable, and painless treatment. Therefore, it is clinically important to find an ideal analgesia model to reduce the pain after total knee arthroplasty and minimize the impact of surgical trauma on the body pressure. This article aims to study the effects of lower limb nerve block combined with local infiltration analgesia of the joint cavity on the hemodynamics and postoperative analgesia effects of knee joint replacement in elderly patients by comparing the effects of the subanaesthetic dose of ketamine on the hemodynamics and postoperative analgesia effect of knee joint replacement in elderly patients’ intraoperative analgesia program. This article proposes that 90 patients requiring unilateral total knee replacement were randomly divided into 3 groups, with 30 patients in each group, age 65–85 years, average age 75 years, ASA I ∼ II grade, and body mass index 13.89 ∼ 37.26. Use a multifunctional monitor to monitor the patient’s continuous blood pressure (SBP/DBP) and mean arterial pressure (MAP), heart rate (HR), electrocardiogram (ECG), intraoperative pulse oxygen saturation (SpO2), and end-tidal carbon dioxide (PETCO2). The following are monitored: record the heart rate (HR), systolic blood pressure (SBP), and diastolic blood pressure before induction of anesthesia (T0), before the upper tourniquet (T1), and after the upper tourniquet (T2), before tourniquet withdrawal (T3), and after tourniquet withdrawal (T4), mean arterial pressure (MAP). The three groups of patients had different degrees of itching, vomiting, nausea, and other adverse reactions. The experimental results in this article show that, in elderly patients with epidural anesthesia, the use of propofol and dexmedetomidine to maintain the patient’s BIS value between 60 and 70 can meet the depth of sedation required for surgery without important surgical operation knowledge.