CMHopeSunshine / nonebot-plugin-learning-chat

Nonebot2插件,让Bot学习群友的发言和表情包。/ Nonebot2 plugin to learn what your group members say.
GNU Affero General Public License v3.0
157 stars 5 forks source link

Linux服务器有办法远程访问webui吗 #11

Open IllusiveBull opened 1 year ago

IllusiveBull commented 1 year ago

服务器小白,我尝试了开放nonebot对应端口和防火墙后在自己主机访问.**..***:nb端口/learning_chat/login被拒绝了,在不装图形化的前提下有什么办法吗?在服务器命令行里curl localhost:nb端口/learning_chat/login能正常看到html代码

CMHopeSunshine commented 1 year ago

说明并没有开放成功,我的建议是使用反向代理服务器nginxapache

LibrationCrisis commented 1 year ago

可以尝试把服务器地址127.0.0.1改成0.0.0.0

CMHopeSunshine commented 1 year ago

不装UI可以用吗。因为是centos7.9 我曾经尝试装桌面环境但是一直有问题,所以有没有办法解决没有ui的问题

可以用,web ui也可以设为外部访问

YaoKong commented 1 year ago

安个cpolar内网穿透

HL-Light commented 5 months ago

说明并没有开放成功,我的建议是使用反向代理服务器nginxapache

你好,请问nginx反向代理配置是写成如下这样吗

  server{
                listen 80;
                server_name xxxx.xx.xxx;
                underscores_in_headers on;
                location / {
                  proxy_pass http://127.0.0.1:xxx/learning_chat/login;
                }
        }
CMHopeSunshine commented 5 months ago

说明并没有开放成功,我的建议是使用反向代理服务器nginxapache

你好,请问nginx反向代理配置是写成如下这样吗

  server{
                listen 80;
                server_name xxxx.xx.xxx;
                underscores_in_headers on;
                location / {
                  proxy_pass http://127.0.0.1:xxx/learning_chat/login;
                }
        }

不要/login

Windsland52 commented 1 week ago

没有公网ip吗