不同云区域Proxy安装错误记录

curl -I http://171.221.202.184:48081/download/agent_setup_pro.sh
出现地址重定向
解决方法
1. 进入中控机
cat /data/install/install.conf #查看nginx安装节点
2. 进入nginx miniweb.conf添加server_name
server {
    listen 48081;
    server_name 192.168.5.249 171.221.202.184;   #添加地址
    root /data/bkce/miniweb;

    location / {
        index index.html;
    }

    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }

    location ~ /\.ht {
        deny  all;
    }

    access_log  /data/bkce/logs/nginx/www_access.log;

  }

出现重启失败案列
问题原因:proxy默认链接gse内网IP,需要修改配置文件并配置相关端口策略。
例如agent
[root@VM-16-30-centos etc]# cat agent.conf 
{
"log":"/var/log/gse",
"cert":"/usr/local/gse/proxy/cert",
"proccfg":"/usr/local/gse/proxy/etc/procinfo.json",
"alarmcfgpath":"/usr/local/gse/plugins/etc",
"dataipc":"/var/run/ipc.state.report",
"runmode":0,
"alliothread":8,
"workerthread":24,
"level":"error",
"ioport":48533,
"filesvrport":59173,
"dataport":58625,
"btportstart": 60020,
"btportend": 60030,
"btSpeedLimit":100,
"proxylistenip":"172.27.16.30",
"agentip":"172.27.16.30",
"identityip":"172.27.16.30",
"proxytaskserver":[
{"ip":"171.221.202.184","port":48533},    #修改为外网地址
{"ip":"171.221.202.184","port":48533}
],
"btfileserver":[
{"ip":"172.27.16.30","port":59173}
],
"dataserver":[
{"ip":"172.27.16.30","port":58625}
],
"taskserver":[
{"ip":"172.27.16.30","port":48533}
],
"bizid": 0,
"cloudid":2,
"dftregid":"test",
"dftcityid":"test"
}

  

posted @ 2021-01-05 15:34  金元  阅读(156)  评论(0编辑  收藏  举报