踩坑java.nio.channels.ClosedChannelExceptionJenkins新建节点,启动方式为:Launch agent by connecting it to the controller在从设备机器上安装java环境,并安装下载好的jenkins-agent.jnlp运行之后,主机设备提示java.nio.channels.ClosedChannelException解决方法:1.找到从设备电脑的java安装目录如下中的Java.policy2.打开Java.policy,在最后面添加permission java.security.AllPermission;最后问题解决