OpenResty 접속
- 브라우저에서 열기:
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 관리
서비스 상태 확인:
systemctl status openresty
OpenResty 재시작:
systemctl restart openresty
설정 리로드:
systemctl reload openresty
테스트 구성:
openresty -t
로그 보기:
journalctl -u openresty -f