jar包在伺服器部署及執行的相關命令
1.用xftp、WinSCP(我使用的)等檔案傳輸工具將jar包上傳到伺服器;
示例:我將data-collection-jar-with-dependencies.jar的jar包上傳到伺服器的/home/hdfs/data-collection目錄下
2.用xshell連線伺服器,在伺服器上執行jar包。
示例:cd /home/hdfs/data-collection
(java -jar data-collection-jar-with-dependencies.jar &)
其他相關命令
獲取正在執行jar包程序的pid
示例:ps aux|grep data-collection-jar-with-dependencies.jar
殺死程序編號為pid的程序
示例:kill -9 pid
輸出日誌的最後2000行
tail -2000 日誌目錄
示例:tail -2000 /home/hdfs/data-collection/logs/log4j.log
相關推薦
jar包在伺服器部署及執行的相關命令
1.用xftp、WinSCP(我使用的)等檔案傳輸工具將jar包上傳到伺服器; 示例:我將data-collection-jar-with-dependencies.jar的jar包上傳到伺服器的/home/hdfs/data-collection目錄下 2.用xshel
springboot Jar包 秒部署到Linux伺服器執行
最近開發完一個springboot專案,打包成jar包之後要部署到Linux伺服器上面執行,我用的nohup java -jar 命令,但是程式碼更新之後重新部署的時候覆蓋原來的專案,又要手動執行 ps -ef|grep jar包名 去查詢程序,然後kill -9 去kil
Spring Boot Maven專案生成jar包,部署到Linux伺服器執行
Spring Boot生成jar ,本篇只針對於 idea 第一部分 生成jar 1.首先進入“Project Structure” ,之後點選 “Artifacts” 2.點選 + 號,選擇JAR 3.進入選擇 ,最後點選 OK
springboot打成Jar包後部署至Linux伺服器上
下面主要記錄一下springboot打包成jar包在Linux服務上部署的步驟: 1、通過WinSCP,將相應的Jar檔案,複製到Linux指定目錄下,如/home/ 2、開啟ssh,進入/home目錄下,執行如下命令,進行專案的啟動,此方式為後臺啟動,即使關閉當前視窗,專案還是在執行的,會生成nohu
在Linux伺服器上執行jar包,並且使jar包一直處於後臺執行
1.我jar包在linux的目錄為/a/bbb.jar 正常情況下,使用在/a目錄下使用 java -jar bbb.jar 可以直接執行該jar包的專案,執行成功之後使用crtl+c可以退出專案執行,
SpongBoot專案打成jar包並部署到伺服器上的方法
開啟命令提示符,切換到專案所在目錄,如我的專案名稱為Borrow就寫 然後在後邊加上maven命令maven package回車,如果顯示build success則打包成功 打好的jar包在專案資料夾的target資料夾下 如果想跳過打包測試階段,則在pom檔案中的<plugi
spring boot 打成jar包,部署到公司Linux系統的伺服器
FileZilla使用詳情 主機號:47.88.171.117 使用者名稱:root 密碼:[email protected]@7281001 埠:22 遠端站點:/develop/myjar 將其中檔案miner-currency-0.0.1-SNA
weblogic 之web伺服器部署及相關問題整理
寫一些不同領域的博文,希望我的博文或者經驗對不同層次的你有所幫助!下面寫一篇關於java web 應用伺服器主題的博文!相信大家在剛接觸java web 這個方向的時候,做的第一個關於java web的專案的時候使用的第一個web 應用伺服器就是(湯姆貓)Tomcat,這個
SpringBoot專案搭建並以打jar包方式部署執行
一、專案搭建: 1. 去springBoot官網下載demo SpringBoot官網:https://start.spring.io/; 2. 點選Generate Project下載demo並將其以maven方式匯入到eclipse中; 3. 選擇要整合的功能框架如
springboot導jar包並部署執行
記錄是為了更好的成長! 在學習springBoot的時候進行jar包部署遇到一些問題,簡單記錄spring boot導成jar檔案並部署的過程。 1、專案的建立就不用說了 2、修改springBoot專案中的pom檔案,其他的不用說,主要是這裡: <plugins> <
Linux連線斷掉時,防止執行的jar包程序死亡(nohup、&命令)
(一)先來了解一下nohup和&命令: & 當在前臺執行某個作業時,終端被該作業佔據;可以在命令後面加上& 實現後臺執行。例如:sh test.sh & 適合在後臺執行的命令有f i n d、費時的排序及一些s h e l l指令碼
maven: 打包可執行的jar包(java application)及依賴項處理
IDE環境中,可以直接用exec-maven-plugin外掛來執行java application,類似下面這樣: 1 <plugin> 2 <groupId>org.codehaus.mojo</groupId> 3 <artifact
c# 設置和取消文件夾共享及執行Dos命令
urn cati 如果 llc seo value close 輸出 dos命令 /// <summary> /// 設置文件夾共享 /// </summary> /// <pa
Linux5.4 shell特殊符號及管道相關命令
同時 去重 passwd bsp 註釋 shel 數字 重復 其中 特殊符合 1. * 任意個任意字符 2. ? 任意一個字符 3. # 註釋字符 4. \ 脫義字符 5. | 管道符 6. $ 變量前綴,正則表示行位 7.
python 鏈接交換機並執行相關命令
res Coding paramiko encoding pri nds host conn command 原文地址 https://blog.csdn.net/u010897775/article/details/80311786?utm_source=blogxgwz
Linux檔案在系統中的傳輸,打包及壓縮相關命令
一、Linux檔案在系統中的傳輸 scp的上傳和下載 上傳:scp file [email protected]:/dir 下載:scp [email protected]:/file dir 詳細截圖可在文章:Linux系統中ssh與sshd服務
Maven JAR包問題排查及解決方案
前言 寫這篇文章的初衷是因為今天在使用mvn dependency:tree命令時,突然想起一年前面試阿里的一道面試題。面試題是說假設線上發生JAR包衝突,應該怎麼排查?我那時候的回答是IDEA有個Maven Helper的外掛,可以幫忙分析依賴衝突,然後還有一種辦法是如果一個類import的時
個人龍果支付系統的部署及執行
個人龍果支付系統的部署及執行 官方部署的地址如下:http://www.roncoo.com/article/detail/124511 個人部署流程過程如下: 要求:你的系統已經安裝了maven並對maven有些瞭解 你可以從github或者開源中國
mysql遠端連線及使用者相關命令
一、建立使用者並授權 登入root: [email protected]:~# mysql -u root -p 建立 username (使用者) 使用password (密碼) 從任何主機連線到mysql伺服器: mysql>GRANT ALL PRIVILEGE
在Linux服務器上運行jar包,並且使jar包一直處於後臺執行
服務器 關閉 原創 目的 滿足 sdn http 也會 jar 1.我jar包在linux的目錄為/a/bbb.jar 正常情況下,使用在/a目錄下使用 java -jar bbb.jar 可以直接運行該jar包的項目,運行成功之後使用crtl+c可以退出