Commit 123b808a by 袁伟铭

修改启动脚本

parent 6dce44af
......@@ -9,14 +9,14 @@ PID=$(ps -ef|grep api-server-1.0.0.jar |grep -v grep|awk '{print $2}')
if [ ! $PID ]; then
nohup java -jar -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -Xms512m -Xmn768m -Xmx1024m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/api/api-server-1.0.0.jar --server.port=9100 > api.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -Xms512m -Xmn768m -Xmx1024m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC api-server-1.0.0.jar --spring.profiles.active=product --server.port=9100 > api.log 2>&1 &
echo "--------------start success-----------"
exit
else
kill -9 ${PID}
echo "--------------kill success-----------"
echo "---------------now wait start-------"
nohup java -jar -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -Xms512m -Xmn768m -Xmx1024m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/api/api-server-1.0.0.jar --server.port=9100 > api.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -Xms512m -Xmn768m -Xmx1024m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC api-server-1.0.0.jar --spring.profiles.active=product --server.port=9100 > api.log 2>&1 &
echo "--------------start success-----------"
exit
fi
......@@ -9,14 +9,14 @@ PID=$(ps -ef|grep config-client-1.0.0.jar |grep -v grep|awk '{print $2}')
if [ ! $PID ]; then
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/config/config-client-1.0.0.jar --server.port=8300 > config.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC config-client-1.0.0.jar --spring.profiles.active=product --server.port=8300 > config.log 2>&1 &
echo "--------------start success-----------"
exit
else
kill -9 ${PID}
echo "--------------kill success-----------"
echo "---------------now wait start-------"
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/config/config-client-1.0.0.jar --server.port=8300 > config.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC config-client-1.0.0.jar --spring.profiles.active=product --server.port=8300 > config.log 2>&1 &
echo "--------------start success-----------"
exit
fi
......@@ -9,14 +9,14 @@ PID=$(ps -ef|grep eureka-server-1.0.0.jar |grep -v grep|awk '{print $2}')
if [ ! $PID ]; then
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/eureka/eureka-server-1.0.0.jar --server.port=8800 > eureka.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC eureka-server-1.0.0.jar --spring.profiles.active=product --server.port=8800 > eureka.log 2>&1 &
echo "--------------start success-----------"
exit
else
kill -9 ${PID}
echo "--------------kill success-----------"
echo "---------------now wait start-------"
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/eureka/eureka-server-1.0.0.jar --server.port=8800 > eureka.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC eureka-server-1.0.0.jar --spring.profiles.active=product --server.port=8800 > eureka.log 2>&1 &
echo "--------------start success-----------"
exit
fi
......@@ -9,14 +9,14 @@ PID=$(ps -ef|grep gateway-server-1.0.0.jar |grep -v grep|awk '{print $2}')
if [ ! $PID ]; then
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/gateway/gateway-server-1.0.0.jar --server.port=9888 > gateway.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC gateway-server-1.0.0.jar --spring.profiles.active=product --server.port=9888 > gateway.log 2>&1 &
echo "--------------start success-----------"
exit
else
kill -9 ${PID}
echo "--------------kill success-----------"
echo "---------------now wait start-------"
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/gateway/gateway-server-1.0.0.jar --server.port=9888 > gateway.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC gateway-server-1.0.0.jar --spring.profiles.active=product --server.port=9888 > gateway.log 2>&1 &
echo "--------------start success-----------"
exit
fi
......@@ -9,14 +9,14 @@ PID=$(ps -ef|grep portal-server-1.0.0.jar |grep -v grep|awk '{print $2}')
if [ ! $PID ]; then
nohup java -jar -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -Xms512m -Xmn768m -Xmx1024m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/portal/portal-server-1.0.0.jar --server.port=9700 > portal.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -Xms512m -Xmn768m -Xmx1024m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC portal-server-1.0.0.jar --spring.profiles.active=product --server.port=9700 > portal.log 2>&1 &
echo "--------------start success-----------"
exit
else
kill -9 ${PID}
echo "--------------kill success-----------"
echo "---------------now wait start-------"
nohup java -jar -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -Xms512m -Xmn768m -Xmx1024m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/portal/portal-server-1.0.0.jar --server.port=9700 > portal.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -Xms512m -Xmn768m -Xmx1024m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC portal-server-1.0.0.jar --spring.profiles.active=product --server.port=9700 > portal.log 2>&1 &
echo "--------------start success-----------"
exit
fi
......@@ -7,13 +7,13 @@ echo "--------eureka start--------"
cd /home/civil/eureka
PID=$(ps -ef|grep eureka-server-1.0.0.jar |grep -v grep|awk '{print $2}')
if [ ! $PID ]; then
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/eureka/eureka-server-1.0.0.jar --server.port=8800 > eureka.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC eureka-server-1.0.0.jar --spring.profiles.active=product --server.port=8800 > eureka.log 2>&1 &
echo "--------------start success-----------"
else
kill -9 ${PID}
echo "--------------kill success-----------"
echo "---------------now wait start-------"
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/eureka/eureka-server-1.0.0.jar --server.port=8800 > eureka.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC eureka-server-1.0.0.jar --spring.profiles.active=product --server.port=8800 > eureka.log 2>&1 &
echo "--------------start success-----------"
fi
......@@ -23,13 +23,13 @@ echo "--------config start--------"
PID=$(ps -ef|grep config-client-1.0.0.jar |grep -v grep|awk '{print $2}')
if [ ! $PID ]; then
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/config/config-client-1.0.0.jar --server.port=8300 > config.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC config-client-1.0.0.jar --spring.profiles.active=product --server.port=8300 > config.log 2>&1 &
echo "--------------start success-----------"
else
kill -9 ${PID}
echo "--------------kill success-----------"
echo "---------------now wait start-------"
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/config/config-client-1.0.0.jar --server.port=8300 > config.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC config-client-1.0.0.jar --spring.profiles.active=product --server.port=8300 > config.log 2>&1 &
echo "--------------start success-----------"
fi
......@@ -39,13 +39,13 @@ echo "--------gateway start--------"
PID=$(ps -ef|grep gateway-server-1.0.0.jar |grep -v grep|awk '{print $2}')
if [ ! $PID ]; then
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/gateway/gateway-server-1.0.0.jar --server.port=9888 > gateway.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC gateway-server-1.0.0.jar --spring.profiles.active=product --server.port=9888 > gateway.log 2>&1 &
echo "--------------start success-----------"
else
kill -9 ${PID}
echo "--------------kill success-----------"
echo "---------------now wait start-------"
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/gateway/gateway-server-1.0.0.jar --server.port=9888 > gateway.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC gateway-server-1.0.0.jar --spring.profiles.active=product --server.port=9888 > gateway.log 2>&1 &
echo "--------------start success-----------"
fi
......@@ -55,13 +55,13 @@ echo "--------sys start--------"
PID=$(ps -ef|grep sys-server-1.0.0.jar |grep -v grep|awk '{print $2}')
if [ ! $PID ]; then
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/sys/sys-server-1.0.0.jar --server.port=9000 > sys.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC sys-server-1.0.0.jar --spring.profiles.active=product --server.port=9000 > sys.log 2>&1 &
echo "--------------start success-----------"
else
kill -9 ${PID}
echo "--------------kill success-----------"
echo "---------------now wait start-------"
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/sys/sys-server-1.0.0.jar --server.port=9000 > sys.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC sys-server-1.0.0.jar --spring.profiles.active=product --server.port=9000 > sys.log 2>&1 &
echo "--------------start success-----------"
fi
......@@ -71,13 +71,13 @@ echo "--------api start--------"
PID=$(ps -ef|grep api-server-1.0.0.jar |grep -v grep|awk '{print $2}')
if [ ! $PID ]; then
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/api/api-server-1.0.0.jar --server.port=9100 > api.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC api-server-1.0.0.jar --spring.profiles.active=product --server.port=9100 > api.log 2>&1 &
echo "--------------start success-----------"
else
kill -9 ${PID}
echo "--------------kill success-----------"
echo "---------------now wait start-------"
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/api/api-server-1.0.0.jar --server.port=9100 > api.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC api-server-1.0.0.jar --spring.profiles.active=product --server.port=9100 > api.log 2>&1 &
echo "--------------start success-----------"
fi
......@@ -87,13 +87,13 @@ echo "--------user start--------"
PID=$(ps -ef|grep user-server-1.0.0.jar |grep -v grep|awk '{print $2}')
if [ ! $PID ]; then
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/user/user-server-1.0.0.jar --server.port=9800 > user.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC user-server-1.0.0.jar --spring.profiles.active=product --server.port=9800 > user.log 2>&1 &
echo "--------------start success-----------"
else
kill -9 ${PID}
echo "--------------kill success-----------"
echo "---------------now wait start-------"
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/user/user-server-1.0.0.jar --server.port=9800 > user.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC user-server-1.0.0.jar --spring.profiles.active=product --server.port=9800 > user.log 2>&1 &
echo "--------------start success-----------"
fi
......@@ -103,12 +103,12 @@ echo "--------portal start--------"
PID=$(ps -ef|grep portal-server-1.0.0.jar |grep -v grep|awk '{print $2}')
if [ ! $PID ]; then
nohup java -jar -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -Xms512m -Xmn768m -Xmx1024m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/portal/portal-server-1.0.0.jar --server.port=9700 > portal.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -Xms512m -Xmn768m -Xmx1024m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC portal-server-1.0.0.jar --spring.profiles.active=product --server.port=9700 > portal.log 2>&1 &
echo "--------------start success-----------"
else
kill -9 ${PID}
echo "--------------kill success-----------"
echo "---------------now wait start-------"
nohup java -jar -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -Xms512m -Xmn768m -Xmx1024m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/portal/portal-server-1.0.0.jar --server.port=9700 > portal.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -Xms512m -Xmn768m -Xmx1024m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC portal-server-1.0.0.jar --spring.profiles.active=product --server.port=9700 > portal.log 2>&1 &
echo "--------------start success-----------"
fi
......@@ -9,14 +9,14 @@ PID=$(ps -ef|grep sys-server-1.0.0.jar |grep -v grep|awk '{print $2}')
if [ ! $PID ]; then
nohup java -jar -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -Xms512m -Xmn768m -Xmx1024m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/sys/sys-server-1.0.0.jar --server.port=9000 > sys.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -Xms512m -Xmn768m -Xmx1024m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC sys-server-1.0.0.jar --spring.profiles.active=product --server.port=9000 > sys.log 2>&1 &
echo "--------------start success-----------"
exit
else
kill -9 ${PID}
echo "--------------kill success-----------"
echo "---------------now wait start-------"
nohup java -jar -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -Xms512m -Xmn768m -Xmx1024m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/sys/sys-server-1.0.0.jar --server.port=9000 > sys.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -Xms512m -Xmn768m -Xmx1024m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC sys-server-1.0.0.jar --spring.profiles.active=product --server.port=9000 > sys.log 2>&1 &
echo "--------------start success-----------"
exit
fi
......@@ -9,14 +9,14 @@ PID=$(ps -ef|grep user-server-1.0.0.jar |grep -v grep|awk '{print $2}')
if [ ! $PID ]; then
nohup java -jar -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -Xms512m -Xmn768m -Xmx1024m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/user/user-server-1.0.0.jar --server.port=9800 > user.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -Xms512m -Xmn768m -Xmx1024m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC user-server-1.0.0.jar --spring.profiles.active=product --server.port=9800 > user.log 2>&1 &
echo "--------------start success-----------"
exit
else
kill -9 ${PID}
echo "--------------kill success-----------"
echo "---------------now wait start-------"
nohup java -jar -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -Xms512m -Xmn768m -Xmx1024m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC /home/civil/user/user-server-1.0.0.jar --server.port=9800 > user.log 2>&1 &
nohup java -jar -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -Xms512m -Xmn768m -Xmx1024m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC user-server-1.0.0.jar --spring.profiles.active=product --server.port=9800 > user.log 2>&1 &
echo "--------------start success-----------"
exit
fi
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