zoukankan      html  css  js  c++  java
  • java项目部署jar包

      1. 先将打包成jar包

      2. 查看所有的java进程   pgrep java

      3. 杀死进程 kill   -9 程序号

      4.执行命令  nohup java -jar admin.jar >/dev/null  2>&1 &

      5. pgrep java 查看进程

          运行dev环境Java -jar demo.jar --spring.profiles.active=dev
          运行prod环境 java -jar demo.jar --spring.profiles.active=prod

      


     将jar 包打包到maven 中

    mvn install:install-file -Dfile=D:mina-transport-serial-2.0.7.jar -DgroupId=org.apache.mina -DartifactId=mina-transport-serial -Dversion=2.0.7 -Dpackaging=jar

    ----------------------------------------------------------------------------------------------------------------------------------------------------------

    maven 不能拉去代码的问题,有关证书的问题

    在Maven命令后加入参数“-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true”

    或者再 vm options中加入   -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true

    在idea 中设置

    -----------------------------------------------------------------------------------------------------------------------------------------------------------

    @echo off
    start javaw -jar xxxxxxxx-SNAPSHOT.jar
    exit

    =======================================================================================

  • 相关阅读:
    数据库索引学习
    JavaScript提高:002:ASP.NET使用easy UI实现tab效果
    jQuery效果之显示与隐藏
    leetcode
    走进Struts2(五)— 值栈和OGNL
    Html中的超链接
    再理解 as3.0接口
    easyui combobox 三级级联 input 两种实现
    三层登录实例VB.NET版具体解释---理论加实战篇
    如何用Delphi开发网游外挂
  • 原文地址:https://www.cnblogs.com/chengyangyang/p/10460376.html
Copyright © 2011-2022 走看看