Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

请问后期有一键部署的快捷方式吗 #6

Open
cfy3133 opened this issue Jan 16, 2023 · 9 comments
Open

请问后期有一键部署的快捷方式吗 #6

cfy3133 opened this issue Jan 16, 2023 · 9 comments

Comments

@cfy3133
Copy link

cfy3133 commented Jan 16, 2023

请问后期有一键部署的快捷方式吗

@leeyoshinari
Copy link
Owner

暂时没计划做容器化部署,因为平台只需要部署一次就可以了,不需要经常部署。

@cfy3133
Copy link
Author

cfy3133 commented Jan 30, 2023

那个nigix的配置怎么弄的,好像没有写得很清楚,能麻烦写详细点吗?不太知道怎么弄的那个

@leeyoshinari
Copy link
Owner

这是我的nginx配置文件,仅供参考

#user  nobody;
worker_processes  1;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

#pid        logs/nginx.pid;


events {
    worker_connections  1024;
}


http {
    include       mime.types;
    default_type  application/octet-stream;

    log_format  main   '$remote_addr - $remote_user [$time_iso8601] $request_method $request_uri $server_protocol $status $body_bytes_sent $upstream_response_time "$http_referer" "$http_user_agent" "$http_x_forwarded_for"';

    access_log  logs/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;
    client_max_body_size 4096M;
    gzip  on;
    fastcgi_intercept_errors on;

    upstream myplatform-server {
	server 127.0.0.1:15200;
	#server 127.0.0.1:15201;
    }

    server {
        listen       80;
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            root   html;
            index  index.html index.htm;
        }

        # error_page  404   = /404.html;

        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
        location /platform {
                 proxy_pass  http://myplatform-server;
                 proxy_set_header Host $proxy_host;
                 proxy_set_header X-Real-IP $remote_addr;
                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         }
		location /platform/static {
				alias /home/MyPlatform/static;
		}
		location /shell {
				proxy_pass http://myplatform-server;
				#proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
		}
    }
}

@cfy3133
Copy link
Author

cfy3133 commented Feb 1, 2023

太难了,搞了两天都没有部署起来

@cfy3133
Copy link
Author

cfy3133 commented Feb 1, 2023

nginx的日志报错2023/01/31 23:16:24 [error] 22759#0: *90 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.3.191, server: localhost, request: "GET /platform HTTP/1.1", upstream: "http://127.0.0.1:15200/platform", host: "192.168.3.4",其中upstream, client: 192.168.3.191这个啥意思请问下

@leeyoshinari
Copy link
Owner

检查一下 15200端口是不是监听状态;再看看Nginx配置是不是正确的,能不能根据URL请求正确路由到后端服务。(可真是Linux小白呀)

@cfy3133
Copy link
Author

cfy3133 commented Feb 2, 2023

image

@cfy3133
Copy link
Author

cfy3133 commented Feb 2, 2023

image

@leeyoshinari
Copy link
Owner

1、config.conf 中的 collectorAgentAdress 是 collector-agent 的地址;请仔细阅读每个字段的解释;
2、如果需要修改端口,请看部署步骤的第10步;
3、请仔细看并理解架构图;
4、请仔细阅读部署步骤;
5、请去了解Nginx;
6、如果有哪些不理解的,请看注意事项的第一条的 查看更多;

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants