เมื่อฉันวิ่ง:
sudo /usr/local/nginx/sbin/nginx -t
ฉันกลับมา:
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
ฉันแค่ต้องการบรรทัดสุดท้ายดังนั้นฉันจึงเรียกใช้:
sudo /usr/local/nginx/sbin/nginx -t | sed -e '$!d'
แต่ฉันกลับได้เหมือนเดิมโดยไม่ต้องใจเย็น ๆ