如何在思想中对码头工人进行配置

  介绍

如何在思想中对码头工人进行配置?相信很多没有经验的人对此束手无策,为此本文总结了问题出现的原因和解决方法,通过这篇文章希望你能解决这个问题。

1。配置码头工人远程连接端口

vi /usr/lib/systemd/系统/码头工人。服务

找到ExecStart,在最后面添加- h tcp://0.0.0.0:2375 - h unix://var/跑步/码头工人。袜子

如何在思想中对码头工人进行配置

重启码头工人

, systemctl  daemon-reload   ,systemctl  start 码头工人

开放端口2375

firewall-cmd ——区=public ——添加一个端口=2375/tcp 永久

2.想法安装码头工人插件

1。文件→设置→插件搜索码头工人集成

如何在思想中对码头工人进行配置

安装成功后重启想法

3。创建Springboot项目,配置连接远程码头工人砰的一声。xml

& lt; ? xml  version=?.0“,编码=癠TF-8" ?比;   & lt; project  xmlns=癶ttp://maven.apache.org/POM/4.0.0", xmlns: xsi=癶ttp://www.w3.org/2001/XMLSchema-instance"   ,,,,xsi: schemaLocation=? http://maven.apache.org/POM/4.0.0 , https://maven.apache.org/xsd/maven-4.0.0.xsd"比;   & lt;才能modelVersion> 4.0.0</modelVersion>   & lt;才能parent>   ,,,& lt; groupId> org.springframework.boot   ,,,& lt; artifactId> spring-boot-starter-parent   ,,,& lt; version> 2.4.2   ,,,& lt; relativePath/祝辞,& lt; !——, lookup  parent 得到repository ——比;   & lt;才能/parent>   & lt;才能groupId> com.docker</groupId>   & lt;才能artifactId> idea-docker-demo</artifactId>   & lt;才能version> 0.0.1-SNAPSHOT</version>   & lt;才能name> idea-docker-demo</name>   & lt;才能description> Demo  project  for  Spring  Boot   & lt;才能properties>   ,,,& lt; project.build.sourceEncoding> UTF-8   ,,,& lt; project.reporting.outputEncoding> UTF-8   ,,,& lt; docker.image.prefix> com.docker   ,,,& lt; java.version> 1.8 & lt;/java.version>   & lt;才能/properties>   & lt;才能dependencies>   ,,,& lt; dependency>   ,,,,,& lt; groupId> org.springframework.boot   ,,,,,& lt; artifactId> spring-boot-starter   ,,,& lt;/dependency>   ,,,& lt; dependency>   ,,,,,& lt; groupId> org.springframework.boot   ,,,,,& lt; artifactId> spring-boot-starter-web   ,,,& lt;/dependency>   ,,,& lt; dependency>   ,,,,,& lt; groupId> org.springframework.boot   ,,,,,& lt; artifactId> spring-boot-starter-test   ,,,,,& lt; scope> test   ,,,& lt;/dependency>   ,,,& lt; !——, Lombok ——比;   ,,,& lt; dependency>   ,,,,,& lt; groupId> org.projectlombok   ,,,,,& lt; artifactId> lombok   ,,,& lt;/dependency>   ,,,& lt; dependency>   ,,,,,& lt; groupId> log4j   ,,,,,& lt; artifactId> log4j   ,,,,,& lt; version> 1.2.17   ,,,& lt;/dependency>   & lt;才能/dependencies>      & lt;才能build>   ,,,& lt; plugins>   ,,,,,& lt; plugin>   ,,,,,,,& lt; groupId> org.springframework.boot   ,,,,,,,& lt; artifactId> spring-boot-maven-plugin   ,,,,,& lt;/plugin>   ,,,,,& lt; plugin>   ,,,,,,,& lt; groupId> com.spotify   ,,,,,,,& lt; artifactId> docker-maven-plugin   ,,,,,,,& lt; version> 1.0.0   ,,,,,,,& lt; configuration>   ,,,,,,,,,& lt; dockerDirectory> src/主/docker   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null

如何在思想中对码头工人进行配置