In conclusion, 0.05 μg·kg− 1·h− 1 naloxone increased the number of NK cells, CD4+/CD8+ T cell ratio and the analgesic effects after thoracoscopic resection of lung cancer on PCIA, meanwhile reduced analgesics dose and PONV after the operation. This evidence concerns the gene CD8A and lung cancer.