jenkins重启 linux_jenkins启动Linux节点失败

本文讨论了在尝试启动Jenkins Linux节点时遇到的问题,包括错误信息:`"-workDir" is not a valid option`。内容提到了配置细节,如远程目录和Java路径,并提到尝试了四种Host Key Verification Strategy但都未成功。在启动过程中,slave.jar的执行遇到了问题,导致JVM退出,连接关闭。

源自:4-17 部署应用程序的总结_1

jenkins启动Linux节点失败

有没有小伙伴可以回答下:jenkins启动Linux节点失败  【注:远程目录:/root/.jenkins  JavaPath:jdk目录/bin/java   已配置  四种Host Key Verification Strategy更换均失败】

[04/11/19 00:49:34] [SSH] Starting sftp client.

[04/11/19 00:49:34] [SSH] 正在拷贝最新版本的 remoting.jar...

[04/11/19 00:49:34] [SSH] Copied 529,326 bytes.

Expanded the channel window size to 4MB

[04/11/19 00:49:34] [SSH] Starting agent process: cd "/root/.jenkins" && /home/hc/java/jdk1.8.0_181/bin/java  -jar remoting.jar -workDir /root/.jenkins

"-workDir" is not a valid option

java -jar slave.jar [options...]

-auth user:pass                 : If your Jenkins is security-enabled, specify

a valid user name and password.

-connectTo HOST:PORT            : make a TCP connection to the given host and

port, then start communication.

-cp (-classpath) PATH           : add the given classpath elements to the

system classloader.

-jar-cache DIR                  : Cache directory that stores jar files sent

from the master

-jnlpCredentials USER:PASSWORD  : HTTP BASIC AUTH header to pass in for making

HTTP requests.

-jnlpUrl URL                    : instead of talking to the master via

stdin/stdout, emulate a JNLP client by

making a TCP connection to the master.

Connection parameters are obtained by

parsing the JNLP file.

-noReconnect                    : Doesn't try to reconnect when a

communication fail, and exit instead

-proxyCredentials USER:PASSWORD : HTTP BASIC AUTH header to pass in for making

HTTP authenticated proxy requests.

-secret HEX_SECRET              : Slave connection secret to use instead of

-jnlpCredentials.

-slaveLog FILE                  : create local slave error log

-tcp FILE                       : instead of talking to the master via

stdin/stdout, listens to a random local

port, write that port number to the given

file, then wait for the master to connect to

that port.

-text                           : encode communication with the master with

base64. Useful for running slave over 8-bit

unsafe protocol like telnet

Slave JVM has terminated. Exit code=0

[04/11/19 00:49:35] Launch failed - cleaning up connection

[04/11/19 00:49:35] [SSH] 连接关闭。

提问者:qq_梦中景_0

2019-04-11 01:18

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值