Truy cập OpenResty
- Mở trong trình duyệt:
http://<SERVER_IP>
File và thư mục quan trọng
- Cấu hình chính:
/usr/local/openresty/nginx/conf/nginx.conf - Thư mục Cấu hình:
/usr/local/openresty/nginx/conf - Thư viện Lua:
/usr/local/openresty/lualib - Thư mục gốc Web:
/usr/local/openresty/nginx/html - Thư mục nhật ký:
/usr/local/openresty/nginx/logs - Dịch vụ systemd:
/lib/systemd/system/openresty.service
Quản lý OpenResty
Kiểm tra trạng thái dịch vụ:
systemctl status openresty
Khởi động lại OpenResty:
systemctl restart openresty
Tải lại cấu hình:
systemctl reload openresty
Cấu hình kiểm thử:
openresty -t
Xem log:
journalctl -u openresty -f