logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

idea修改文件不重启

修改两个选项。

文章图片
#idea
centos开放防火墙端口

对于 iptables 在 CentOS 7 及以下版本中,可以使用 sudo service iptables restart 或 sudo systemctl restart iptables。在 CentOS 8 中,由于使用了 firewalld,通常不需要重启 iptables 服务。在 CentOS 8 中,默认使用的是 firewalld,如果要使用 iptables,需要禁用 fi

文章图片
#centos#linux#运维
docker 安装git全流程,解决clone地址端口错误问题

docker 运行命令,获取初始root密码进入docker内部本地git设置只有将gitlab本身的端口改为8888,docker同样映射到8888,clone时地址才正确需要配置gitlab.rb(宿主机路径:/home/username/gitlab/config/gitlab.rb)。

文章图片
#docker#git#容器
docker 镜像设置自动重启(开机自动启动)

当你运行容器时,可以使用–restart标志来设置重启策略。Docker提供了几种重启策略,例如always、unless-stopped、on-failure等。docker update --restart=always 容器ID(或者容器名)(容器ID或者容器名根据实际情况修改)(2)修改已有容器,使用update。1、设置docker开机启动。2、启动docker。3、设置容器自动重启。(

文章图片
#docker#容器#运维
centos开放防火墙端口

对于 iptables 在 CentOS 7 及以下版本中,可以使用 sudo service iptables restart 或 sudo systemctl restart iptables。在 CentOS 8 中,由于使用了 firewalld,通常不需要重启 iptables 服务。在 CentOS 8 中,默认使用的是 firewalld,如果要使用 iptables,需要禁用 fi

文章图片
#centos#linux#运维
到底了