2.0.1版本,由1.x升级而来
/opt/1panel/apps/openresty/openresty/conf/default/default.conf
该配置文件nginx_status为http协议80端口
但是openresty状态获取链接是
服务内部错误: Get "https://127.0.0.1/nginx_status": dial tcp 127.0.0.1:443: connect: connection refused
2.0.1版本,由1.x升级而来
/opt/1panel/apps/openresty/openresty/conf/default/default.conf
该配置文件nginx_status为http协议80端口
但是openresty状态获取链接是
服务内部错误: Get "https://127.0.0.1/nginx_status": dial tcp 127.0.0.1:443: connect: connection refused
卸载 openresty 重新安装一下 (不会丢失数据)
找到问题了
我安装openresty的时候修改了默认端口为8080和8443
卸载后使用默认80和443端口安装
虚拟主机使用域名加端口
可以正常获取状态了