Linux上发布E卡通项目
作者:互联网
Linux上发布E卡通项目
使用的命令
ps -ef | grep java
kill -9 22314
nohup java -jar smartcard-ms-0.0.1-SNAPSHOT.jar > logs/SmartCard_Start.log 2>&1 &
示例
[root@59 smartcard]# ls
logs pages SmartCard_File SmartCardLog smartcard-ms-0.0.1-SNAPSHOT.jar smartcard-ms-0.0.1-SNAPSHOT.jar.bak smartcard_web upload
[root@59 smartcard]# ps -ef | grep java
root 22058 18879 5 17:55 pts/3 00:01:11 java -jar witproperty-0.0.1-SNAPSHOT.jar
root 22314 25817 4 17:57 pts/0 00:00:58 java -jar smartcard-ms-0.0.1-SNAPSHOT.jar
root 23041 1 0 Aug15 ? 01:58:23 java -jar api_server-0.0.1-RELEASE.jar
root 24338 25817 0 18:17 pts/0 00:00:00 grep --color=auto java
root 28490 1 0 Nov18 ? 00:08:36 /usr/java/jdk1.8.0_131/bin/java -Djava.util.logging.config.file=/www/server/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -classpath /www/server/tomcat/bin/bootstrap.jar:/www/server/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/www/server/tomcat -Dcatalina.home=/www/server/tomcat -Djava.io.tmpdir=/www/server/tomcat/temp org.apache.catalina.startup.Bootstrap start
[root@59 smartcard]# kill -9 22314
[root@59 smartcard]# ps -ef | grep java
root 22058 18879 5 17:55 pts/3 00:01:11 java -jar witproperty-0.0.1-SNAPSHOT.jar
root 23041 1 0 Aug15 ? 01:58:23 java -jar api_server-0.0.1-RELEASE.jar
root 24354 25817 0 18:17 pts/0 00:00:00 grep --color=auto java
root 28490 1 0 Nov18 ? 00:08:36 /usr/java/jdk1.8.0_131/bin/java -Djava.util.logging.config.file=/www/server/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -classpath /www/server/tomcat/bin/bootstrap.jar:/www/server/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/www/server/tomcat -Dcatalina.home=/www/server/tomcat -Djava.io.tmpdir=/www/server/tomcat/temp org.apache.catalina.startup.Bootstrap start
[20] Killed nohup java -jar smartcard-ms-0.0.1-SNAPSHOT.jar > logs/SmartCard_Start.log 2>&1
[root@59 smartcard]# nohup java -jar smartcard-ms-0.0.1-SNAPSHOT.jar > logs/SmartCard_Start.log 2>&1 &
[22] 24363
[root@59 smartcard]# ps -ef | grep java
root 22058 18879 5 17:55 pts/3 00:01:11 java -jar witproperty-0.0.1-SNAPSHOT.jar
root 23041 1 0 Aug15 ? 01:58:23 java -jar api_server-0.0.1-RELEASE.jar
root 24363 25817 99 18:17 pts/0 00:00:07 java -jar smartcard-ms-0.0.1-SNAPSHOT.jar
root 24387 25817 0 18:17 pts/0 00:00:00 grep --color=auto java
root 28490 1 0 Nov18 ? 00:08:36 /usr/java/jdk1.8.0_131/bin/java -Djava.util.logging.config.file=/www/server/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -classpath /www/server/tomcat/bin/bootstrap.jar:/www/server/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/www/server/tomcat -Dcatalina.home=/www/server/tomcat -Djava.io.tmpdir=/www/server/tomcat/temp org.apache.catalina.startup.Bootstrap start
标签:00,java,tomcat,jar,server,发布,Linux,卡通,root 来源: https://www.cnblogs.com/mozq/p/11907824.html