欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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

程序员文章站 2022-05-01 08:05:14
...

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
相关标签: jar包部署