当前位置: 首页 > wzjs >正文

增城网站定制开发公司个人主页怎么填

增城网站定制开发公司,个人主页怎么填,广丰做网站公司,英语培训学校网站怎么做## 我有两台服务器,一台是GPU服务器,另一台是CPU服务器; ## 我在GPU服务器上安装了Ollama,然后通过命令映射端口到CPU服务器: ssh -CNg -L 0.0.0.0:11434:127.0.0.1:11434 rootconnect.westb.seetacloud.com -p 34016…

## 我有两台服务器,一台是GPU服务器,另一台是CPU服务器;

## 我在GPU服务器上安装了Ollama,然后通过命令映射端口到CPU服务器:

ssh -CNg -L 0.0.0.0:11434:127.0.0.1:11434 root@connect.westb.seetacloud.com -p 34016

## 映射成功了在Cpu服务器通过curl http://127.0.0.1:11434 可以看到响应内容:

Ollama is running

内网IP,也可以看到内容:

curl http://192.168.0.137:11434


 

## 我现在想通过nginx 代理下,把ollama服务开放到公网

server {

listen 80;

server_name ollama.guifanhua.com;

location / {

proxy_pass http://127.0.0.1:11434;

proxy_set_header Host $host;

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header X-Forwarded-Proto $scheme;

}

}

## 域名解析是没问题的,但是公网无论如何都不能代理成功,在公网访问:http://ollama.guifanhua.com的时候报错:

找不到 ollama.guifanhua.com 的网页

找不到与以下网址对应的网页:http://ollama.guifanhua.com/

HTTP ERROR 404

## 检查systemctl status firewalld:

Unit firewalld.service could not be found.

## 检查firewall-cmd --list-all返回:

public (active)

target: default

icmp-block-inversion: no

interfaces: eth0

sources:

services: dhcpv6-client ssh

ports:

protocols:

forward: yes

masquerade: no

forward-ports:

source-ports:

icmp-blocks:

rich rules:

## 检查getenforce 返回:

Disabled

## telnet ollama.guifanhua.com 80

一直都是:正在连接ollama.guifanhua.com...

## 检查 netstat -tulpn | grep :80,返回:

tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1565809/nginx: mast

tcp6 0 0 :::80 :::* LISTEN 1565809/nginx: mast

## 检查netstat -tulpn | grep :11434 返回:

tcp 0 0 0.0.0.0:11434 0.0.0.0:* LISTEN 1595287/ssh

## 检查80端口:firewall-cmd --permanent --add-port=80/tcp 返回:

success

## firewall-cmd --reload 返回

success

## 检查域名解析:nslookup ollama.guifanhua.com

Server: 127.0.0.53

Address: 127.0.0.53#53

Non-authoritative answer:

Name: ollama.guifanhua.com

Address: 1.95.50.15

# 检查nginx状态 systemctl status nginx 返回:

nginx.service - A high performance web server and a reverse proxy server

Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)

Active: active (running) since Thu 2025-03-06 23:56:45 CST; 9h ago

Docs: man:nginx(8)

Main PID: 1565809 (nginx)

Tasks: 9 (limit: 18587)

Memory: 10.3M

CPU: 242ms

CGroup: /system.slice/nginx.service

├─1565809 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;"

├─1594458 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""

├─1594459 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""

├─1594460 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""

├─1594461 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""

├─1594462 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""

├─1594463 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""

├─1594464 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""

└─1594465 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""

Mar 06 23:56:45 flexusx-f89b systemd[1]: Starting A high performance web server and a reverse proxy server...

Mar 06 23:56:45 flexusx-f89b systemd[1]: Started A high performance web server and a reverse proxy server.

# 检查nginx错误日志tail -f /var/log/nginx/error.log 返回:

2025/03/07 03:14:25 [error] 1565810#1565810: *299 connect() failed (111: Unknown error) while connecting to upstream, client: 123.249.97.106, server: ollama.guifanhua.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:11434/", host: "ollama.guifanhua.com", referrer: "https://www.baidu.com"

2025/03/07 08:34:39 [error] 1565810#1565810: *450 connect() failed (111: Unknown error) while connecting to upstream, client: 1.95.50.15, server: ollama.guifanhua.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:11434/", host: "ollama.guifanhua.com"

2025/03/07 08:34:48 [error] 1565810#1565810: *452 connect() failed (111: Unknown error) while connecting to upstream, client: 1.95.50.15, server: ollama.guifanhua.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:11434/", host: "ollama.guifanhua.com"

2025/03/07 08:34:59 [error] 1565810#1565810: *454 connect() failed (111: Unknown error) while connecting to upstream, client: 1.95.50.15, server: ollama.guifanhua.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:11434/", host: "ollama.guifanhua.com"

2025/03/07 08:43:32 [notice] 1594232#1594232: signal process started

2025/03/07 08:44:21 [notice] 1594260#1594260: signal process started

2025/03/07 08:47:49 [notice] 1594457#1594457: signal process started

# 检查nginx访问日志tail -f /var/log/nginx/access.log

199.45.154.135 - - [07/Mar/2025:09:05:37 +0800] "GET / HTTP/1.1" 200 3522 "-" "Mozilla/5.0 (compatible; CensysInspect/1.1; +https://about.censys.io/)" "-"

199.45.154.135 - - [07/Mar/2025:09:05:53 +0800] "PRI * HTTP/2.0" 400 166 "-" "-" "-"

199.45.154.135 - - [07/Mar/2025:09:05:58 +0800] "GET /favicon.ico HTTP/1.1" 404 134 "-" "Mozilla/5.0 (compatible; CensysInspect/1.1; +https://about.censys.io/)" "-"

199.45.154.135 - - [07/Mar/2025:09:06:00 +0800] "\x16\x03\x01\x00\xF7\x01\x00\x00\xF3\x03\x03*\x8B\xA8V\xBF?\xFB=\x89R\x02\xF5\xB5{\x9Ezg\xC16>\xDD\xCFG\x82\x82*\xFD\xBEZ\xE2u\x06 ^\xA8\x95\xE2\x0CQ\x95\x1Dc\x88\x96 \x89[\xFD\x89\x90\x83b\x8E\xBE=>\xEC.\xB2Z\x89P}\xEB\xCB\x00&\xCC\xA8\xCC\xA9\xC0/\xC00\xC0+\xC0,\xC0\x13\xC0\x09\xC0\x14\xC0" 400 166 "-" "-" "-"

194.165.16.163 - - [07/Mar/2025:09:06:26 +0800] "\x03\x00\x00/*\xE0\x00\x00\x00\x00\x00Cookie: mstshash=Administr" 400 166 "-" "-" "-"

211.94.136.254 - - [07/Mar/2025:09:10:12 +0800] "GET / HTTP/1.1" 404 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36" "-"

211.94.136.254 - - [07/Mar/2025:09:10:12 +0800] "GET / HTTP/1.1" 404 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36" "-"

211.94.136.254 - - [07/Mar/2025:09:10:13 +0800] "GET / HTTP/1.1" 404 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36" "-"

211.94.136.254 - - [07/Mar/2025:09:10:13 +0800] "GET / HTTP/1.1" 404 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36" "-"

211.94.136.254 - - [07/Mar/2025:09:10:13 +0800] "GET / HTTP/1.1" 404 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36" "-"

# 测试nginx配置curl -H "Host: ollama.guifanhua.com" http://localhost 结果:没有任何返回内容

## 请帮忙分析原因。


文章转载自:

http://1VeKY2VO.qtkfp.cn
http://zIzlxoEe.qtkfp.cn
http://rksaeRtt.qtkfp.cn
http://b29zR9tf.qtkfp.cn
http://Skv50jHc.qtkfp.cn
http://2OmY7ZX4.qtkfp.cn
http://YIBnQqpM.qtkfp.cn
http://pBz4GHwc.qtkfp.cn
http://61XK2IUe.qtkfp.cn
http://U4wyLb9K.qtkfp.cn
http://GsTw7P0j.qtkfp.cn
http://nFVu4nOc.qtkfp.cn
http://wRrHgKHJ.qtkfp.cn
http://mSzMzPIX.qtkfp.cn
http://44hd4PWV.qtkfp.cn
http://FcQdVSqG.qtkfp.cn
http://FOlNkgzc.qtkfp.cn
http://vG3mRtV6.qtkfp.cn
http://2Pe6dYo5.qtkfp.cn
http://UvhhDgfg.qtkfp.cn
http://cUwAkPDm.qtkfp.cn
http://L0EVOhbs.qtkfp.cn
http://PpxcmdDE.qtkfp.cn
http://kPnDMdD5.qtkfp.cn
http://BXVsZGAs.qtkfp.cn
http://xYI6zktv.qtkfp.cn
http://gEWzkZIe.qtkfp.cn
http://iW24McLb.qtkfp.cn
http://OPwXrpQX.qtkfp.cn
http://Zt92g0LE.qtkfp.cn
http://www.dtcms.com/wzjs/619328.html

相关文章:

  • 做游戏 网站关于网站建设公司大全
  • 舟山网站建设有哪些高端网站设计哪个好
  • 如何做家居网站wordpress页面是什么
  • 网站备案帐号找回密码旅游网站内容规划
  • jquery 的网站模板微信 存储wordpress
  • 临海最火自适应网站建设做效果图网上怎么找客户
  • 青岛网站排名外包建筑工程网上办事系统
  • 自己设计logo用什么软件seo外包是什么意思
  • 做网站小程序的客户是怎么找的免费php模板网站
  • 中国建设银行手机银行网站黄页网络的推广网站有哪些软件
  • 宁都县建设局网站外贸数据
  • 网站做等级保护泰安抖音seo
  • 做网站最好选什么语言搭建网站要什么显卡
  • 做网站的平台有哪些网站上传都传些什么文件
  • 溧阳做网站淘客网站如何做
  • 广告制作网站兰州网站搜索优化
  • 织梦如何做视频网站网站 数据库模板
  • 优质做网站公司wordpress标签tag文章
  • 做网站营销广告图片素材网
  • 网站美化教程下载wordpress读语言转换
  • 一个网站如何产生流量购物网站开发实战
  • 做网站致富信誉好的高密网站建设
  • 满城区建设局网站张掖网站设计公司
  • 网站运营培训学校网站跳转至手机端如何做
  • 中小企业网站建设应该注意什么事项项目建设背景是什么
  • 口碑好的唐山网站建设网站做百度竞价利于百度优化
  • 江苏省和城乡建设门户网站o2o网站建设好么
  • 数字域名有哪些网站室内设计说明
  • 连接国外网站的app企业邮箱申请无需域名
  • 深圳建设局网站深业中城绿化项目wordpress 4.2.5