Ketika saya menjalankan:
sudo /usr/local/nginx/sbin/nginx -t
Saya kembali:
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
Saya hanya ingin baris terakhir jadi saya jalankan:
sudo /usr/local/nginx/sbin/nginx -t | sed -e '$!d'
Tapi aku kembali sama tanpa sed.