เข้าใช้งาน OpenResty
- เปิดใน browser:
http://<SERVER_IP>
ไฟล์และไดเรกทอรีที่สำคัญ
- การตั้งค่าหลัก:
/usr/local/openresty/nginx/conf/nginx.conf - ไดเรกทอรีการกำหนดค่า:
/usr/local/openresty/nginx/conf - ไลบรารี Lua:
/usr/local/openresty/lualib - เว็บรูท:
/usr/local/openresty/nginx/html - ไดเรกทอรีบันทึก:
/usr/local/openresty/nginx/logs - บริการ Systemd:
/lib/systemd/system/openresty.service
จัดการ OpenResty
ตรวจสอบสถานะของ service:
systemctl status openresty
รีสตาร์ท OpenResty:
systemctl restart openresty
โหลดการตั้งค่าใหม่:
systemctl reload openresty
การตั้งค่าการทดสอบ:
openresty -t
ดู logs:
journalctl -u openresty -f