diff --git a/TSG发布版本更新记录/TSG-21.11/hbase/create_table b/TSG发布版本更新记录/TSG-21.11/hbase/create_table index 9fcf1b9..5eacc38 100644 --- a/TSG发布版本更新记录/TSG-21.11/hbase/create_table +++ b/TSG发布版本更新记录/TSG-21.11/hbase/create_table @@ -1,4 +1,9 @@ create_namespace 'tsg_galaxy' -create 'tsg_galaxy:relation_account_framedip', {NAME => 'radius', VERSIONS => 1} \ No newline at end of file +create 'tsg_galaxy:relation_account_framedip', {NAME => 'radius', VERSIONS => 1} + + +-- Phoenix创建视图 +CREATE view "tsg"."report_result"( ROWKEY VARCHAR PRIMARY KEY, "detail"."excute_sql" VARCHAR, "detail"."read_rows" UNSIGNED_LONG, "detail"."result_id" UNSIGNED_INT, "response"."result" VARCHAR); +CREATE view "tsg_galaxy"."relation_account_framedip" ( ROWKEY VARCHAR PRIMARY KEY, "radius"."framed_ip" VARCHAR, "radius"."last_found_time" UNSIGNED_LONG); \ No newline at end of file diff --git a/TSG发布版本更新记录/TSG-21.11/nginx/nginx.conf b/TSG发布版本更新记录/TSG-21.11/nginx/nginx.conf new file mode 100644 index 0000000..cb4755b --- /dev/null +++ b/TSG发布版本更新记录/TSG-21.11/nginx/nginx.conf @@ -0,0 +1,118 @@ +worker_processes auto; + +events { + worker_connections 2048; +} + +http { + + include mime.types; + default_type application/octet-stream; + sendfile on; + keepalive_timeout 65; + keepalive_requests 10000; + vhost_traffic_status_zone; + vhost_traffic_status_filter_by_host on; + # + client_max_body_size 1024M;(设置客户端请求体最大值) + client_body_buffer_size 128k;(配置请求体缓存区大小,) + + + upstream qgwService { + server 192.168.44.10:8183; + server 192.168.44.13:8183; + } + + upstream jobAdmin { + server 192.168.44.10:8184; + server 192.168.44.13:8184; + } + + upstream hos { + server 192.168.44.10:8186; + server 192.168.44.13:8186; + } + upstream nacos { + server 192.168.44.11:8848; + server 192.168.44.14:8848; + server 192.168.44.15:8848; + } + + server { + listen 9999; + server_name localhost; + location / { + proxy_pass http://qgwService; #请求转发到查询引擎集群 + proxy_http_version 1.1; #指定使用http1.1版本 + proxy_read_timeout 21600; #等待后端服务响应的最大时长 + gzip on; #开启压缩 + gzip_comp_level 6; #压缩级别 + gzip_min_length 1k; #启用gzip压缩的最小文件,小于设置值的文件将不会压缩 + gzip_types application/json; #压缩文件类型 + gzip_vary on; #是否传输gzip压缩标志 + } + } + + server { + listen 8181; + server_name localhost; + location / { + proxy_pass http://jobAdmin; + } + } + server { + listen 9913; + server_name localhost; + location /status { + vhost_traffic_status_display; + vhost_traffic_status_display_format html; + } + + } + #hos非加密 + server { + listen 9098; + server_name localhost; + proxy_set_header Host $http_host; + client_max_body_size 1024m; + + location / { + if ($request_method = GET) { + return 302 https://$host:9097$request_uri; + } + proxy_pass http://hos$request_uri; + } + } + + #hos加密 + server { + listen 9097 ssl; + server_name localhost; + proxy_set_header Host $host:9098; + client_max_body_size 1024m; + ssl_certificate /usr/local/nginx/conf/server.crt; + ssl_certificate_key /usr/local/nginx/conf/server.key; + location / { + proxy_pass http://hos; + } + } + server { + listen 8848; + server_name localhost; + location / { + proxy_pass http://nacos; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header REMOTE-HOST $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + } + server { + listen 8849 ssl; + server_name localhost; + ssl_certificate /usr/local/nginx/conf/server.crt; + ssl_certificate_key /usr/local/nginx/conf/server.key; + location / { + proxy_pass http://nacos; + } + } +}