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

FileZilla使用详情
主机号:4x.88.1x1.11x
用户名:username
密码:Cuidh@@x281001
端口:22

远程站点:/develop/myjar

将其中文件miner-currency-0.0.1-SNAPSHOT.jar删除,
把自己打包的jar放入其中

Xshell6使用详情
主机:4x.88.1x1.11x
端口号:22

请输入登录用户名:username
密码:Cuidh@@x281001

以下为Linux命令

// An highlighted block
[username@iZt4njdn78t71hbz1rfhtuZ ~]# cd ../develop/myjar
[username@iZt4njdn78t71hbz1rfhtuZ myjar]# ps -ef | grep java
username     13381     1  0 Oct09 ?        00:53:42 /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
username     16198     1  0 11:02 ?        00:01:02 java -Xms10m -Xmx200m -jar cashloan-provider-0.0.1-SNAPSHOT.jar
username     21505     1  2 14:19 ?        00:00:34 java -Xms10m -Xmx200m -jar cashloan-admin-0.0.1-SNAPSHOT.jar
username     21902 14262  3 14:30 pts/1    00:00:21 java -Xms10m -Xmx200m -jar miner-currency-0.0.1-SNAPSHOT.jar
username     22190 21087  0 14:40 pts/0    00:00:00 grep --color=auto java
username     30432     1  0 Sep05 ?        00:52:29 /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
[username@iZt4njdn78t71hbz1rfhtuZ myjar]# kill -9 21902
[username@iZt4njdn78t71hbz1rfhtuZ myjar]# java  -Xms10m -Xmx200m   -jar miner-currency-0.0.1-SNAPSHOT.jar &

你可能感兴趣的:(部署)