nohup: failed to run command `java': No such file or directory解決
程式裡遠端執行shell命令(nohup java -jar ...)的執行,後臺日誌報錯如下:
nohup: failed to run command `java': No such file or directory
原因:一般來說這個報錯說明伺服器執行不了"java"這個命令
解決:
1、檢查執行該shell的伺服器有沒有裝jdk
2、檢查執行該shell的伺服器的環境變數有沒有將JAVA_HOME/bin加入(目的是可以在linux任意位置執行java命令)
-----------------------------------------------------------------------------------------------------------------------------------------
坑的是:我檢查了linux環境,java安裝正確,環境變數也加了,把shell命令拿到遠端伺服器使用者下任意目錄執行也正常!!但是通過程式遠端呼叫該shell命令還是報如上錯誤。
無奈我在程式裡執行 nohup java -jar ... 命令前,先執行了一把 source /etc/profile , 執行shell命令如下:
source /etc/profile; nohup java -jar ...
然後成功測試通過!!!
相關推薦
nohup: failed to run command `java39;: No such file or directory解決
程式裡遠端執行shell命令(nohup java -jar ...)的執行,後臺日誌報錯如下: nohup: failed to run command `java': No such file or directory 原因:一般來說這個報錯說明伺服器執行不了"ja
nohup: failed to run command `java39;: No such file or directory
dir prope exe comm onf oca tor mx2 run 在執行腳本添加這一行 source /etc/profile exec nohup java -Xms1024m -Xmx2048m -jar /opt/dev/claimzuul
nginx 啟動報錯“var/run/nginx/nginx.pid" no such file or directory解決方法
今天剛搭建的nginx伺服器啟動時,報錯“var/run/nginx/nginx.pid" no such file or directory,按照他的意思我在var/run/新建了一個資料夾nginx,重新啟動,啟動成功。 但是當我虛擬機器重啟後依然報錯“
gcc編譯報錯 checking whether the C compiler works... no 中的 error trying to exec 39;cc139;: execvp: No such file or directory解決辦法
1 首先檢查報錯原因是execvp: No such file or directory 因此要將/etc/profile的export PATH指向gcc的lib路徑中的cc1檔案 例如我的cc1檔案在/usr/lib64/gcc/x86_64-suse-linux/4.8/ 則輸出 export P
Uncaught exception 39;PDOException39; with message 39;SQLSTATE[HY000] [2002] No such file or directory解決方法
mouse 正是 from key int stripe 進程 成功 stack 今天用pdo連接mysql遇到一個奇怪的問題,host設為127.0.0.1可以連接成功,設為localhost就會報如下的錯誤: PHP Fatal error: Uncaught ex
[error] hadoop:ls: `.39;: No such file or directory
HA 問題: 技術分享 -i image quest dir img 分享 問題: 解決: https://stackoverflow.com/questions/28241251/hadoop-fs-ls-results-in-no-such-file-or-dir
nginx 啟動報錯“var/run/nginx/nginx.pid" no such file or directory解決方法
今天剛搭建的nginx伺服器啟動時,報錯“var/run/nginx/nginx.pid" no such file or directory,按照他的意思我在var/run/新建了一個資料夾nginx,重新啟動,啟動成功。 但是當我虛擬機
Debian下Cannot set LC_CTYPE to default locale: No such file or directory解決方法
把語言環境變數改為英文 將Ubuntu系統語言環境改為英文的en_US.UTF-8 檢視當前系統語言環境 locale 編輯配置檔案。將zh_US.UTF-8改為en_US.UTF-8。zh改為en sudo nano /etc/default/locale
windows10使用git報錯 fatal:open /dev/null or dup failed: No such file or directory解決方案或git bash here閃退
安裝好git之後,在命令列輸入git --version報錯 百度搜了很久全涼了,試
vs2008 Cannot open include file: 39;afxcontrolbars.h39;: No such file or directory
fatal error C1083: Cannot open include file: 'afxcontrolbars.h': No such file or directory 解決方案是: 找到錯誤的地方,把#include <afxcontrolbars.
qmake: could not exec 39;/usr/lib/x86_64-linux-gnu/qt4/bin/qmake39;: No such file or directory
執行qmake -v出現錯誤:qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’: No such file or directory分析:qtchooser預設選擇路徑中沒有指向qmake路徑解決方法:cd /usr/lib/x86
解決nginx重啟“var/run/nginx/nginx.pid" no such file or directory問題
重啟虛擬機器後,再次重啟nginx會報錯“/var/run/nginx/nginx.pid" no such file or directory。 常見的方法: /usr/local/nginx/
caffe Check failed: mdb_status == 0 (2 vs. 0) No such file or directory
錯誤提示:Check failed: mdb_status == 0 (2 vs. 0) No such file or directory,建立資料層mnist是找不到mdb檔案 I0417 13:28:17.764714 35030 layer_fac
ImportError: libmysqlclient.so.20: cannot open shared object file: No such file or directory 解決辦法
object init ror 文件 module libmysql 找到 str 軟連接 >>> import MySQLdbTraceback (most recent call last): File "<stdin>", line
fatal error: Python.h: No such file or directory 解決
parrot python error pycrypto python.h [常見錯誤] fatal error: Python.h: No such file or directory環境場景系統: Parrot Linux軟件: 系統python默認版本2.7 PyCharm默認版本P
numa.h:No such file or directory 解決方法
解決 clas issues -o log 方法 -s body num 參考: numa.h:No such file or directory numa.h:No such file or directory 解決方法 Ubuntu: $ apt-get install
PyCharm ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory 解決辦法
圖片 object shared 8.0 body har error err cto PyCharm ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or d
error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory解決
make scp AR object normal memcache window 2.0 HA 我是從其他服務器scp來的memcached(~~~整個文件夾的那種,windows用多了的後遺癥) 在準備運行 ./memcached -d -u root -l loca
Ubuntu下 fatal error: Python.h: No such file or directory 解決方法
error ID apt overflow AC python3 TE cto fat 參考: fatal error: Python.h: No such file or directory Ubuntu下 fatal error: Python.h: No such f
DataError: [-] Error: 2, No such file or directory解決你用Django寫項目使用Docker安裝FastDFS,測試的時候遇到這個問題
安裝 tor 執行 項目 數據 docker serve error -- DataError: [-] Error: 2, No such file or directory我已經解決了 是因為我安裝storage的時候docker run -dti --network=