init
This commit is contained in:
7
studio/install/16gmaster/config.sh
Normal file
7
studio/install/16gmaster/config.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
source /etc/profile
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
nohup java -jar -Xms1024m -Xmx2048m -XX:PermSize=128M -XX:MaxPermSize=256M -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -XX:MaxInlineLevel=15 ./config/config.jar --server.port=8611 > config.log 2>&1 &
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
source /etc/profile
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
|
||||
nohup java -jar -Xms128m -Xmx2048m -XX:PermSize=128M -XX:MaxPermSize=256M -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -XX:MaxInlineLevel=15 ./data-compare-service.jar --server.port=8096 --spring.profiles.active=dev > data-compare-service.log 2>&1 &
|
||||
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
source /etc/profile
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
|
||||
|
||||
nohup java -jar -Xms128m -Xmx2048m -XX:PermSize=128M -XX:MaxPermSize=256M -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -XX:MaxInlineLevel=15 ./data-market-service-integration.jar --server.port=8824 --spring.profiles.active=dev > data-market-service-integration.log 2>&1 &
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
source /etc/profile
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
|
||||
nohup java -jar -Xms128m -Xmx2048m -XX:PermSize=128M -XX:MaxPermSize=256M -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -XX:MaxInlineLevel=15 ./data-market-service.jar --server.port=8822 --spring.profiles.active=dev > data-market-service.log 2>&1 &
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
source /etc/profile
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
nohup java -jar -Xms128m -Xmx2048m -XX:PermSize=128M -XX:MaxPermSize=256M -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -XX:MaxInlineLevel=15 ./data-metadata-service.jar --server.port=8820 --spring.profiles.active=dev > data-metadata-service.log 2>&1 &
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
source /etc/profile
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
nohup java -jar -Xms128m -Xmx2048m -XX:PermSize=128M -XX:MaxPermSize=256M -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -XX:MaxInlineLevel=15 ./data-system-service.jar --server.port=8810 --spring.profiles.active=dev > data-system-service.log 2>&1 &
|
||||
|
||||
55
studio/install/16gmaster/nginx.conf
Normal file
55
studio/install/16gmaster/nginx.conf
Normal file
@@ -0,0 +1,55 @@
|
||||
# For more information on configuration, see:
|
||||
# * Official English Documentation: http://nginx.org/en/docs/
|
||||
# * Official Russian Documentation: http://nginx.org/ru/docs/
|
||||
|
||||
user nginx;
|
||||
worker_processes auto;
|
||||
error_log /var/log/nginx/error.log;
|
||||
pid /run/nginx.pid;
|
||||
|
||||
# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
|
||||
include /usr/share/nginx/modules/*.conf;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
access_log /var/log/nginx/access.log main;
|
||||
|
||||
sendfile on;
|
||||
tcp_nopush on;
|
||||
tcp_nodelay on;
|
||||
keepalive_timeout 65;
|
||||
types_hash_max_size 4096;
|
||||
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
# Load modular configuration files from the /etc/nginx/conf.d directory.
|
||||
# See http://nginx.org/en/docs/ngx_core_module.html#include
|
||||
# for more information.
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
server {
|
||||
listen 80;
|
||||
server_name 16gmaster;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
add_header Access-Control-Allow-Headers X-Requested-With;
|
||||
add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
|
||||
location / {
|
||||
root /studio/ui/dist;
|
||||
index index.html;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
location /api/ {
|
||||
proxy_pass http://16gdata:9538/;
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
source /etc/profile
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
nohup java -jar -Xms128m -Xmx2048m -XX:PermSize=128M -XX:MaxPermSize=256M -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -XX:MaxInlineLevel=15 ./service-data-dts.jar --server.port=8810 --spring.profiles.active=dev > service-data-dts.log 2>&1 &
|
||||
|
||||
27
studio/install/16gmaster/start16gmaster.sh
Normal file
27
studio/install/16gmaster/start16gmaster.sh
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
source /etc/profile
|
||||
|
||||
# config单独启动
|
||||
#echo "即将启动任务config"
|
||||
#sh config/config.sh
|
||||
|
||||
#sleep 10s
|
||||
|
||||
echo "即将启动任务data-system-service"
|
||||
sh data-system-service/data-system-service.sh
|
||||
|
||||
echo "即将启动任务service-data-dts"
|
||||
sh service-data-dts/service-data-dts.sh
|
||||
|
||||
echo "即将启动任务system"
|
||||
sh system-service/system-service.sh
|
||||
|
||||
echo "即将启动任务market"
|
||||
sh data-market-service/data-market-service.sh
|
||||
|
||||
echo "即将启动任务metadata"
|
||||
sh data-metadata-service/data-metadata-service.sh
|
||||
|
||||
echo "即将启动任务market-service-integration"
|
||||
sh data-market-service-integration/data-market-service-integration.sh
|
||||
|
||||
17
studio/install/16gmaster/status16gmaster.sh
Normal file
17
studio/install/16gmaster/status16gmaster.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
source /etc/profile
|
||||
|
||||
pid=$(ps -ef | grep config.jar | grep -Ev 'color=auto' | awk '{print $2}')
|
||||
echo "已启动config:$pid"
|
||||
|
||||
pid=$(ps -ef | grep service-system.jar | grep -Ev 'color=auto' | awk '{print $2}')
|
||||
echo "已启动service-system:$pid"
|
||||
|
||||
pid=$(ps -ef | grep data-market-service.jar | grep -Ev 'color=auto' | awk '{print $2}')
|
||||
echo "已启动data-market-service:$pid"
|
||||
|
||||
pid=$(ps -ef | grep data-metadata-service.jar | grep -Ev 'color=auto' | awk '{print $2}')
|
||||
echo "已启动metadata:$pid"
|
||||
|
||||
pid=$(ps -ef | grep service-data-integration.jar | grep -Ev 'color=auto' | awk '{print $2}')
|
||||
echo "已启动service-data-integration:$pid"
|
||||
51
studio/install/16gmaster/stop16gmaster.sh
Normal file
51
studio/install/16gmaster/stop16gmaster.sh
Normal file
@@ -0,0 +1,51 @@
|
||||
#!/bin/sh
|
||||
source /etc/profile
|
||||
|
||||
pid=$(ps -ef | grep system.jar | grep -Ev 'color=auto' | awk '{print $2}')
|
||||
|
||||
echo "即将杀死任务system: $pid"
|
||||
|
||||
kill -9 $pid
|
||||
|
||||
echo "已杀死任务: $pid"
|
||||
|
||||
pid=$(ps -ef | grep data-market-service.jar | grep -Ev 'color=auto' | awk '{print $2}')
|
||||
|
||||
echo "即将杀死任务data-market-service: $pid"
|
||||
|
||||
kill -9 $pid
|
||||
|
||||
echo "已杀死任务: $pid"
|
||||
|
||||
pid=$(ps -ef | grep data-metadata-service.jar | grep -Ev 'color=auto' | awk '{print $2}')
|
||||
|
||||
echo "即将杀死任务data-metadata-service: $pid"
|
||||
|
||||
kill -9 $pid
|
||||
|
||||
echo "已杀死任务: $pid"
|
||||
|
||||
pid=$(ps -ef | grep service-data-integration.jar | grep -Ev 'color=auto' | awk '{print $2}')
|
||||
|
||||
echo "即将杀死任务service-data-integration: $pid"
|
||||
|
||||
kill -9 $pid
|
||||
|
||||
echo "已杀死任务: $pid"
|
||||
|
||||
pid=$(ps -ef | grep service-data-integration.jar | grep -Ev 'color=auto' | awk '{print $2}')
|
||||
|
||||
echo "即将杀死任务service-data-integration: $pid"
|
||||
|
||||
kill -9 $pid
|
||||
|
||||
echo "已杀死任务: $pid"
|
||||
|
||||
|
||||
pid=$(ps -ef | grep config.jar | grep -Ev 'color=auto' | awk '{print $2}')
|
||||
|
||||
echo "即将杀死任务config: $pid"
|
||||
|
||||
kill -9 $pid
|
||||
|
||||
echo "已杀死任务: $pid"
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
source /etc/profile
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
nohup java -jar -Xms128m -Xmx2048m -XX:PermSize=128M -XX:MaxPermSize=256M -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -XX:MaxInlineLevel=15 ./system-service.jar --server.port=8000 --spring.profiles.active=dev > system-service.log 2>&1 &
|
||||
|
||||
Reference in New Issue
Block a user