访问 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