OpenResty にアクセス
- ブラウザで開く:
http://<SERVER_IP>
重要なファイルとディレクトリ
- メイン設定:
/usr/local/openresty/nginx/conf/nginx.conf - 設定ディレクトリ:
/usr/local/openresty/nginx/conf - Lua ライブラリ:
/usr/local/openresty/lualib - Webルート
/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