Commit 4acc59e9 authored by root's avatar root

重新排版

parent 6527f2d1
#!/bin/bash
SC_IMAGE_URL="docker pull harbor.hw.jiankangyouyi.com:5000/search-center-public/"
SC_IMAGE_NAME="search-center"
SC_IMAGE_VERSION="v1.0"
REPALCE_IMAGE="${SC_IMAGE_URL}${SC_IMAGE_NAME}:${SC_IMAGE_VERSION}"
echo ${REPALCE_IMAGE}
#/bin/bash
#镜像相关
SC_IMAGE_URL=harbor.hw.jiankangyouyi.com:5000/search-center-public/
SC_IMAGE_NAME=search-center
SC_IMAGE_VERSION=v1.0
#部署目录
DEPLOY_DIR=/home/tianye/
#search-center配置文件目录
APP_CONF_DIR=${DEPLOY_DIR}/search-center/conf/app
#是否使用外部es
ES_ISUSE_STATUS=false
#es默认账号密码
ES_HOST=192.168.1.201
ES_USERNAME=app_search-center
ES_PASSWORD=3HPDm0OdmoMZ6DiYWCUG
ES_ClusterName=elasticsearch-jkyy
ES_HTTP_PORT=9200
ES_TCP_PORT=9300
#是否使用外部rabbitmq
MQ_ISUSE_STATUS=false
#mq默认账号密码
MQ_HOST=rabbitmq01
MQ_PORT=5672
MQ_VHOST=/
MQ_USERNAME=admin
MQ_PASSWORD=admin
#/bin/bash
#镜像相关
SC_IMAGE_URL=harbor.hw.jiankangyouyi.com:5000/search-center-public/
SC_IMAGE_NAME=search-center
SC_IMAGE_VERSION=v1.0
#部署目录
DEPLOY_DIR=/home/tianye/
#search-center配置文件目录
APP_CONF_DIR=${DEPLOY_DIR}/search-center/conf/app
#是否使用外部es
ES_ISUSE_STATUS=false
#es默认账号密码
ES_HOST=es
ES_USERNAME=elastic
ES_PASSWORD=changeme
ES_ClusterName=elasticsearch-cluster
ES_HTTP_PORT=9200
ES_TCP_PORT=9300
#是否使用外部rabbitmq
MQ_ISUSE_STATUS=false
#mq默认账号密码
MQ_HOST=rabbitmq01
MQ_PORT=5672
MQ_VHOST=/
MQ_USERNAME=admin
MQ_PASSWORD=admin
#!/bin/bash
source ./install.ini
sc_dir=${DEPLOY_DIR}/search-center
if [ ! -d ${sc_dir} ];then
sudo cp -rf search-center ${sc_dir}
fi
#将配置文件存入环境变量文件,使其全局生效
sudo cp ./install.ini ${sc_dir}/install.ini.example
#sudo echo '' >${sc_dir}/.env
env_context=$(cat ${sc_dir}/install.ini.example |grep -v "^#"|grep -v "^$")
echo "${env_context}">${sc_dir}/.env
source ${sc_dir}/.env
sudo ln -s ${sc_dir}/.env ${sc_dir}/install.ini 2>/dev/null
#是否使用外部组件
if [ ${ES_ISUSE_STATUS} != 'false' ];then
echo -e " 使用外部ES\n即将修改配置...."
grep -A 10 -w "es:" ${APP_CONF_DIR}/application.yml | \
sed -e "s#host: .*#host: ${ES_HOST}#g"\
-e "s#username: .*#username: ${ES_USERNAME}#g"\
-e "s#password: .*#password: ${ES_PASSWORD}#g"\
-e "s#httpPort: .*#httpPort: ${ES_HTTP_PORT}#g"\
-e "s#tcpPort: .*#tcpPort: ${ES_TCP_PORT}#g"
fi
echo ${MQ_ISUSE_STATUS}
if [ ${MQ_ISUSE_STATUS} != 'false' ];then
echo -e " 使用外部MQ\n即将修改配置...."
grep -A 6 -w "rabbitmq:" ${APP_CONF_DIR}/application.yml | \
sed -e "s#host: .*#host: ${MQ_HOST}#g"\
-e "s#username: .*#username: ${MQ_USERNAME}#g"\
-e "s#password: .*#password: ${MQ_PASSWORD}#g"\
-e "s#virtual-host: .*#virtual-host: ${MQ_VHOST}#g"
fi
. ./install.ini
#echo ${REPALCE_IMAGE}
sed -i -e "s#REPALCE(IMAGE)#${REPALCE_IMAGE}#g" search_center/docker-compose-sc.yaml
cd search_center
sudo docker-compose -f docker-compose-sc.yaml up -d
#!/bin/bash
source ./install.ini
sc_dir=${DEPLOY_DIR}/search-center
if [ ! -d ${sc_dir} ];then
sudo cp -rf search-center ${sc_dir}
fi
#将配置文件存入环境变量文件,使其全局生效
sudo cp ./install.ini ${sc_dir}/install.ini.example
#sudo echo '' >${sc_dir}/.env
env_context=$(cat ${sc_dir}/install.ini.example |grep -v "^#"|grep -v "^$")
echo "${env_context}">${sc_dir}/.env
source ${sc_dir}/.env
sudo ln -s ${sc_dir}/.env ${sc_dir}/install.ini 2>/dev/null
#是否使用外部组件
if [ ${ES_ISUSE_STATUS} != 'false' ];then
echo -e " 使用外部ES\n即将修改配置...."
grep -A 10 -w "es:" ${APP_CONF_DIR}/application.yml | \
sed -e "s#host: .*#host: ${ES_HOST}#g"\
-e "s#username: .*#username: ${ES_USERNAME}#g"\
-e "s#password: .*#password: ${ES_PASSWORD}#g"\
-e "s#httpPort: .*#httpPort: ${ES_HTTP_PORT}#g"\
-e "s#tcpPort: .*#tcpPort: ${ES_TCP_PORT}#g"
fi
echo ${MQ_ISUSE_STATUS}
if [ ${MQ_ISUSE_STATUS} != 'false' ];then
echo -e " 使用外部MQ\n即将修改配置...."
grep -A 6 -w "rabbitmq:" ${APP_CONF_DIR}/application.yml | \
sed -e "s#host: .*#host: ${MQ_HOST}#g"\
-e "s#username: .*#username: ${MQ_USERNAME}#g"\
-e "s#password: .*#password: ${MQ_PASSWORD}#g"\
-e "s#virtual-host: .*#virtual-host: ${MQ_VHOST}#g"
fi
ES_IMAGES=elasticsearch:6.8.23
......@@ -19,11 +19,11 @@ spring:
class: javax.net.ssl.SSLSocketFactory
fallback: false
rabbitmq:
host: 121.36.45.76,121.36.67.45,119.3.221.135
host: rabbitmq01
port: 5672
username: ego_gw_qa
password: jkyy_pwd
virtual-host: /qa
username: admin
password: admin
virtual-host: /
publisher-confirm-type: simple
health-cloud:
sentry:
......
OZFZEZNVKEIYRGROGLFI
\ No newline at end of file
[{rabbitmq_management,[{tcp_config,[{port,15672}]}]},
{rabbit,[{tcp_listeners,[5672]},
{loopback_users,[]},
{default_user,<<"admin">>},
{default_pass,<<"admin">>}]}].
{application, 'amqp_client', [
{description, "RabbitMQ AMQP Client"},
{vsn, "3.7.28"},
{id, "v3.7.27-1-g1d21a2f"},
{modules, ['amqp_auth_mechanisms','amqp_channel','amqp_channel_sup','amqp_channel_sup_sup','amqp_channels_manager','amqp_client','amqp_connection','amqp_connection_sup','amqp_connection_type_sup','amqp_direct_connection','amqp_direct_consumer','amqp_gen_connection','amqp_gen_consumer','amqp_main_reader','amqp_network_connection','amqp_rpc_client','amqp_rpc_server','amqp_selective_consumer','amqp_ssl','amqp_sup','amqp_uri','amqp_util','rabbit_routing_util','uri_parser']},
{registered, [amqp_client_sup,amqp_sup]},
{applications, [kernel,stdlib,xmerl,rabbit_common]},
{mod, {amqp_client, []}},
{env, [
{prefer_ipv6, false},
{ssl_options, []},
{gc_threshold, 1000000000}
]},
%% Hex.pm package informations.
{licenses, ["MPL 1.1"]},
{links, [
{"Website", "http://www.rabbitmq.com/"},
{"GitHub", "https://github.com/rabbitmq/rabbitmq-erlang-client"},
{"User guide", "http://www.rabbitmq.com/erlang-client-user-guide.html"}
]},
{build_tools, ["make", "rebar3"]},
{files, [
"erlang.mk",
"git-revisions.txt",
"include",
"LICENSE*",
"Makefile",
"rabbitmq-components.mk",
"README",
"README.md",
"src"
]}
]}.
\ No newline at end of file
%% The contents of this file are subject to the Mozilla Public License
%% Version 1.1 (the "License"); you may not use this file except in
%% compliance with the License. You may obtain a copy of the License at
%% http://www.mozilla.org/MPL/
%%
%% Software distributed under the License is distributed on an "AS IS"
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
%% License for the specific language governing rights and limitations
%% under the License.
%%
%% The Original Code is RabbitMQ.
%%
%% The Initial Developer of the Original Code is GoPivotal, Inc.
%% Copyright (c) 2007-2020 Pivotal Software, Inc. All rights reserved.
%%
-ifndef(AMQP_CLIENT_HRL).
-define(AMQP_CLIENT_HRL, true).
-include_lib("rabbit_common/include/rabbit.hrl").
-include_lib("rabbit_common/include/rabbit_framing.hrl").
-record(amqp_msg, {props = #'P_basic'{}, payload = <<>>}).
-record(amqp_params_network, {username = <<"guest">>,
password = <<"guest">>,
virtual_host = <<"/">>,
host = "localhost",
port = undefined,
channel_max = 2047,
frame_max = 0,
heartbeat = 10,
connection_timeout = 60000,
ssl_options = none,
auth_mechanisms =
[fun amqp_auth_mechanisms:plain/3,
fun amqp_auth_mechanisms:amqplain/3],
client_properties = [],
socket_options = []}).
-record(amqp_params_direct, {username = none,
password = none,
virtual_host = <<"/">>,
node = node(),
adapter_info = none,
client_properties = []}).
-record(amqp_adapter_info, {host = unknown,
port = unknown,
peer_host = unknown,
peer_port = unknown,
name = unknown,
protocol = unknown,
additional_info = []}).
-endif.
%% The contents of this file are subject to the Mozilla Public License
%% Version 1.1 (the "License"); you may not use this file except in
%% compliance with the License. You may obtain a copy of the License at
%% http://www.mozilla.org/MPL/
%%
%% Software distributed under the License is distributed on an "AS IS"
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
%% License for the specific language governing rights and limitations
%% under the License.
%%
%% The Original Code is RabbitMQ.
%%
%% The Initial Developer of the Original Code is GoPivotal, Inc.
%% Copyright (c) 2007-2020 Pivotal Software, Inc. All rights reserved.
%%
-include("amqp_client.hrl").
-define(PROTOCOL_VERSION_MAJOR, 0).
-define(PROTOCOL_VERSION_MINOR, 9).
-define(PROTOCOL_HEADER, <<"AMQP", 0, 0, 9, 1>>).
-define(PROTOCOL, rabbit_framing_amqp_0_9_1).
-define(MAX_CHANNEL_NUMBER, 65535).
-define(LOG_DEBUG(Format), error_logger:info_msg(Format)).
-define(LOG_INFO(Format, Args), error_logger:info_msg(Format, Args)).
-define(LOG_WARN(Format, Args), error_logger:warning_msg(Format, Args)).
-define(LOG_ERR(Format, Args), error_logger:error_msg(Format, Args)).
-define(CLIENT_CAPABILITIES,
[{<<"publisher_confirms">>, bool, true},
{<<"exchange_exchange_bindings">>, bool, true},
{<<"basic.nack">>, bool, true},
{<<"consumer_cancel_notify">>, bool, true},
{<<"connection.blocked">>, bool, true},
{<<"authentication_failure_close">>, bool, true}]).
-define(CALL_TIMEOUT, rabbit_misc:get_env(amqp_client, gen_server_call_timeout,
60000)).
%% The contents of this file are subject to the Mozilla Public License
%% Version 1.1 (the "License"); you may not use this file except in
%% compliance with the License. You may obtain a copy of the License at
%% http://www.mozilla.org/MPL/
%%
%% Software distributed under the License is distributed on an "AS IS"
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
%% License for the specific language governing rights and limitations
%% under the License.
%%
%% The Original Code is RabbitMQ.
%%
%% The Initial Developer of the Original Code is GoPivotal, Inc.
%% Copyright (c) 2011-2015 Pivotal Software, Inc. All rights reserved.
%%
-include("amqp_client.hrl").
-type state() :: any().
-type consume() :: #'basic.consume'{}.
-type consume_ok() :: #'basic.consume_ok'{}.
-type cancel() :: #'basic.cancel'{}.
-type cancel_ok() :: #'basic.cancel_ok'{}.
-type deliver() :: #'basic.deliver'{}.
-type from() :: any().
-type reason() :: any().
-type ok_error() :: {ok, state()} | {error, reason(), state()}.
-spec init([any()]) -> {ok, state()}.
-spec handle_consume(consume(), pid(), state()) -> ok_error().
-spec handle_consume_ok(consume_ok(), consume(), state()) ->
ok_error().
-spec handle_cancel(cancel(), state()) -> ok_error().
-spec handle_server_cancel(cancel(), state()) -> ok_error().
-spec handle_cancel_ok(cancel_ok(), cancel(), state()) -> ok_error().
-spec handle_deliver(deliver(), #amqp_msg{}, state()) -> ok_error().
-spec handle_info(any(), state()) -> ok_error().
-spec handle_call(any(), from(), state()) ->
{reply, any(), state()} | {noreply, state()} |
{error, reason(), state()}.
-spec terminate(any(), state()) -> state().
%% The contents of this file are subject to the Mozilla Public License
%% Version 1.1 (the "License"); you may not use this file except in
%% compliance with the License. You may obtain a copy of the License
%% at http://www.mozilla.org/MPL/
%%
%% Software distributed under the License is distributed on an "AS IS"
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
%% the License for the specific language governing rights and
%% limitations under the License.
%%
%% The Original Code is RabbitMQ.
%%
%% The Initial Developer of the Original Code is GoPivotal, Inc.
%% Copyright (c) 2011-2015 Pivotal Software, Inc. All rights reserved.
%%
-define(QUEUE_PREFIX, "/queue").
-define(TOPIC_PREFIX, "/topic").
-define(EXCHANGE_PREFIX, "/exchange").
-define(AMQQUEUE_PREFIX, "/amq/queue").
-define(TEMP_QUEUE_PREFIX, "/temp-queue").
%% reply queues names can have slashes in the content so no further
%% parsing happens.
-define(REPLY_QUEUE_PREFIX, "/reply-queue/").
{application,cowboy,
[{description,"Small, fast, modern HTTP server."},
{vsn,"2.6.1"},
{modules, ['cowboy','cowboy_app','cowboy_bstr','cowboy_children','cowboy_clear','cowboy_clock','cowboy_compress_h','cowboy_constraints','cowboy_handler','cowboy_http','cowboy_http2','cowboy_loop','cowboy_metrics_h','cowboy_middleware','cowboy_req','cowboy_rest','cowboy_router','cowboy_static','cowboy_stream','cowboy_stream_h','cowboy_sub_protocol','cowboy_sup','cowboy_tls','cowboy_tracer_h','cowboy_websocket']},
{registered,[cowboy_sup,cowboy_clock]},
{applications,[kernel,stdlib,crypto,cowlib,ranch]},
{mod,{cowboy_app,[]}},
{env,[]}]}.
{application, 'cowlib', [
{description, "Support library for manipulating Web protocols."},
{vsn, "2.7.0"},
{id, "v3.7.27-1-g1d21a2f"},
{modules, ['cow_base64url','cow_cookie','cow_date','cow_hpack','cow_http','cow_http2','cow_http2_machine','cow_http_hd','cow_http_te','cow_iolists','cow_mimetypes','cow_multipart','cow_qs','cow_spdy','cow_sse','cow_uri','cow_ws']},
{registered, []},
{applications, [kernel,stdlib,crypto]},
{env, []}
]}.
\ No newline at end of file
%% Copyright (c) 2015-2018, Loïc Hoguin <essen@ninenines.eu>
%%
%% Permission to use, copy, modify, and/or distribute this software for any
%% purpose with or without fee is hereby granted, provided that the above
%% copyright notice and this permission notice appear in all copies.
%%
%% THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
%% WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
%% MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
%% ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
%% WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
%% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-ifndef(COW_PARSE_HRL).
-define(COW_PARSE_HRL, 1).
-define(IS_ALPHA(C),
(C =:= $a) or (C =:= $b) or (C =:= $c) or (C =:= $d) or (C =:= $e) or
(C =:= $f) or (C =:= $g) or (C =:= $h) or (C =:= $i) or (C =:= $j) or
(C =:= $k) or (C =:= $l) or (C =:= $m) or (C =:= $n) or (C =:= $o) or
(C =:= $p) or (C =:= $q) or (C =:= $r) or (C =:= $s) or (C =:= $t) or
(C =:= $u) or (C =:= $v) or (C =:= $w) or (C =:= $x) or (C =:= $y) or
(C =:= $z) or
(C =:= $A) or (C =:= $B) or (C =:= $C) or (C =:= $D) or (C =:= $E) or
(C =:= $F) or (C =:= $G) or (C =:= $H) or (C =:= $I) or (C =:= $J) or
(C =:= $K) or (C =:= $L) or (C =:= $M) or (C =:= $N) or (C =:= $O) or
(C =:= $P) or (C =:= $Q) or (C =:= $R) or (C =:= $S) or (C =:= $T) or
(C =:= $U) or (C =:= $V) or (C =:= $W) or (C =:= $X) or (C =:= $Y) or
(C =:= $Z)
).
-define(IS_ALPHANUM(C), ?IS_ALPHA(C) or ?IS_DIGIT(C)).
-define(IS_CHAR(C), C > 0, C < 128).
-define(IS_DIGIT(C),
(C =:= $0) or (C =:= $1) or (C =:= $2) or (C =:= $3) or (C =:= $4) or
(C =:= $5) or (C =:= $6) or (C =:= $7) or (C =:= $8) or (C =:= $9)).
-define(IS_ETAGC(C), C =:= 16#21; C >= 16#23, C =/= 16#7f).
-define(IS_HEX(C),
?IS_DIGIT(C) or
(C =:= $a) or (C =:= $b) or (C =:= $c) or
(C =:= $d) or (C =:= $e) or (C =:= $f) or
(C =:= $A) or (C =:= $B) or (C =:= $C) or
(C =:= $D) or (C =:= $E) or (C =:= $F)).
-define(IS_LHEX(C),
?IS_DIGIT(C) or
(C =:= $a) or (C =:= $b) or (C =:= $c) or
(C =:= $d) or (C =:= $e) or (C =:= $f)).
-define(IS_TOKEN(C),
?IS_ALPHA(C) or ?IS_DIGIT(C) or
(C =:= $!) or (C =:= $#) or (C =:= $$) or (C =:= $%) or (C =:= $&) or
(C =:= $') or (C =:= $*) or (C =:= $+) or (C =:= $-) or (C =:= $.) or
(C =:= $^) or (C =:= $_) or (C =:= $`) or (C =:= $|) or (C =:= $~)).
-define(IS_TOKEN68(C),
?IS_ALPHA(C) or ?IS_DIGIT(C) or
(C =:= $-) or (C =:= $.) or (C =:= $_) or
(C =:= $~) or (C =:= $+) or (C =:= $/)).
-define(IS_URI_UNRESERVED(C),
?IS_ALPHA(C) or ?IS_DIGIT(C) or
(C =:= $-) or (C =:= $.) or (C =:= $_) or (C =:= $~)).
-define(IS_URI_SUB_DELIMS(C),
(C =:= $!) or (C =:= $$) or (C =:= $&) or (C =:= $') or
(C =:= $() or (C =:= $)) or (C =:= $*) or (C =:= $+) or
(C =:= $,) or (C =:= $;) or (C =:= $=)).
-define(IS_VCHAR(C), C =:= $\t; C > 31, C < 127).
-define(IS_VCHAR_OBS(C), C =:= $\t; C > 31, C =/= 127).
-define(IS_WS(C), (C =:= $\s) or (C =:= $\t)).
-define(IS_WS_COMMA(C), ?IS_WS(C) or (C =:= $,)).
-endif.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment