1. 程式人生 > >spring boot 打成jar包,部署到公司Linux系統的伺服器

spring boot 打成jar包,部署到公司Linux系統的伺服器

FileZilla使用詳情 主機號:47.88.171.117 使用者名稱:root 密碼:[email protected]@7281001 埠:22

遠端站點:/develop/myjar

將其中檔案miner-currency-0.0.1-SNAPSHOT.jar刪除, 把自己打包的jar放入其中

Xshell6使用詳情 主機:47.88.171.117 埠號:22

請輸入登入使用者名稱:root 密碼:[email protected]@7281001

以下為Linux命令

// An highlighted block
[[email protected] ~]# cd ../develop/
myjar/ [[email protected] myjar]# ps -ef | grep java root 13381 1 0 Oct09 ? 00:53:28 /develop/jdk1.8.0_141/bin/java -Djava.util.logging.config.file=/develop/apache-tomcat-7.0.57/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/develop/
apache-tomcat-7.0.57/endorsed -classpath /develop/apache-tomcat-7.0.57/bin/bootstrap.jar:/develop/apache-tomcat-7.0.57/bin/tomcat-juli.jar -Dcatalina.base=/develop/apache-tomcat-7.0.57 -Dcatalina.home=/develop/apache-tomcat-7.0.57 -Djava.io.tmpdir=/develop/apache-tomcat-7.0.57/temp org.apache.catalina.startup.Bootstrap start start root 14298
14262 0 09:41 pts/1 00:00:35 java -Xms10m -Xmx200m -jar miner-currency-0.0.1-SNAPSHOT.jar root 16198 1 2 11:02 ? 00:00:34 java -Xms10m -Xmx200m -jar cashloan-provider-0.0.1-SNAPSHOT.jar root 16267 1 2 11:03 ? 00:00:41 java -Xms10m -Xmx200m -jar cashloan-admin-0.0.1-SNAPSHOT.jar root 17138 17112 0 11:29 pts/3 00:00:00 grep --color=auto java root 30432 1 0 Sep05 ? 00:52:23 /develop/jdk1.8.0_141/bin/java -Dzookeeper.log.dir=. -Dzookeeper.root.logger=INFO,CONSOLE -cp /develop/zookeeper-3.4.6/bin/../build/classes:/develop/zookeeper-3.4.6/bin/../build/lib/*.jar:/develop/zookeeper-3.4.6/bin/../lib/slf4j-log4j12-1.6.1.jar:/develop/zookeeper-3.4.6/bin/../lib/slf4j-api-1.6.1.jar:/develop/zookeeper-3.4.6/bin/../lib/netty-3.7.0.Final.jar:/develop/zookeeper-3.4.6/bin/../lib/log4j-1.2.16.jar:/develop/zookeeper-3.4.6/bin/../lib/jline-0.9.94.jar:/develop/zookeeper-3.4.6/bin/../zookeeper-3.4.6.jar:/develop/zookeeper-3.4.6/bin/../src/java/lib/*.jar:/develop/zookeeper-3.4.6/bin/../conf:/develop/zookeeper-3.4.6/bin/../build/classes:/develop/zookeeper-3.4.6/bin/../build/lib/*.jar:/develop/zookeeper-3.4.6/bin/../lib/slf4j-log4j12-1.6.1.jar:/develop/zookeeper-3.4.6/bin/../lib/slf4j-api-1.6.1.jar:/develop/zookeeper-3.4.6/bin/../lib/netty-3.7.0.Final.jar:/develop/zookeeper-3.4.6/bin/../lib/log4j-1.2.16.jar:/develop/zookeeper-3.4.6/bin/../lib/jline-0.9.94.jar:/develop/zookeeper-3.4.6/bin/../zookeeper-3.4.6.jar:/develop/zookeeper-3.4.6/bin/../src/java/lib/*.jar:/develop/zookeeper-3.4.6/bin/../conf:.:/develop/jdk1.8.0_141/lib.tools.jar -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false org.apache.zookeeper.server.quorum.QuorumPeerMain /develop/zookeeper-3.4.6/bin/../conf/zoo.cfg [[email protected] myjar]# kill -9 14298 [[email protected] myjar]# nohup java -Xms10m -Xmx200m -jar miner-currency-0.0.1-SNAPSHOT.jar & [1] 17187