ติดตั้ง NGINX เว็บเซิร์ฟเวอร์จาก repository ทางการที่ nginx.org
ตำแหน่งเริ่มต้น
- เว็บรูต:
/usr/share/nginx/html - การกำหนดค่า:
/etc/nginx/nginx.confและ/etc/nginx/conf.d - บันทึก:
/var/log/nginx/
การเข้าถึง
เปิดเบราว์เซอร์ของคุณ: http://<server-ip>/
คำสั่งควบคุม Service
sudo systemctl start nginx sudo systemctl stop nginx sudo systemctl restart nginx sudo systemctl status nginx sudo systemctl reload nginx