随笔分类 -  CentOS 7

Anything about CentOS 7
Docker in Docker版本Gitlab CI Runner配置
摘要:1.构建新的gitlab-runner image,使用如下Dockerfile(ubuntu版本): 2.改变宿主机(centos) /var/run/docker.sock的用户组为root:root 3.启动gitlab-ci-runner 4.将新启动的容器中的gitlab-runner用户 阅读全文

posted @ 2016-12-16 15:23 傻子才悲伤 阅读(3454) 评论(0) 推荐(0)

CentOS Gitlab CI Runner配置
摘要:参照官方文档: https://docs.gitlab.com/runner/install/linux-repository.html 首先,下载配置yum repository信息: 然后,安装gitlab-ci-multi-runner: 最后,注册配置gitlab-ci runner: 其中 阅读全文

posted @ 2016-12-15 15:50 傻子才悲伤 阅读(3075) 评论(0) 推荐(0)

CentOS 7 修改时间时区
摘要:参考链接 https://chrisjean.com/change-timezone-in-centos/ First, make a backup of the existing localtime file. It’s always good practice to make backups o 阅读全文

posted @ 2016-11-08 11:01 傻子才悲伤 阅读(922) 评论(0) 推荐(0)

Kubernetes Cluster Error Accessing gcr.io
摘要:使用 后查看: 发现处于creating状态,并且报错: (unable to ping registry endpoint https://gcr.io/v0/\nv2 ping attempt failed with error: Get https://gcr.io/v2/:... 原因:gc 阅读全文

posted @ 2016-11-03 12:16 傻子才悲伤 阅读(419) 评论(0) 推荐(0)

CentOS7 Kubernetes 安装Error
摘要:按照官方文档使用yum.d repo来配置安装Kubernetes等相关服务报错如下: Error: docker-engine conflicts with docker-1.10.3-46.el7.centos.14.x86_64 原因:安装的docker-engine与kubernets sp 阅读全文

posted @ 2016-11-02 12:18 傻子才悲伤 阅读(343) 评论(0) 推荐(0)

CentOS 7 Kubernetes Setup Error
摘要:按照以下链接中的步骤 http://kubernetes.io/docs/getting-started-guides/centos/centos_manual_config/ 走到 时候报错如下: systemd[1]: Dependency failed for Kubernetes Kubel 阅读全文

posted @ 2016-11-02 11:32 傻子才悲伤 阅读(1121) 评论(0) 推荐(1)

docker0: iptables: No chain/target/match by that name
摘要:在CentOS 7下使用类似nginx之类的web server,启动docker时有时会报以下错误: docker0: iptables: No chain/target/match by that name. 解决方法: service docker restart 重启docker后: ipt 阅读全文

posted @ 2016-09-29 13:49 傻子才悲伤 阅读(10650) 评论(0) 推荐(0)

CentOS7 maven Unsupported major.minor version 52.0
摘要:pom.xml含有以下: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.1</version> <executions> <execution> 阅读全文

posted @ 2016-09-26 11:19 傻子才悲伤 阅读(904) 评论(0) 推荐(0)

firewalld命令
摘要:1.添加x.x.x.x/24到80端口白名单: firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="x.x.x.x/24" port port="80" protocol="tcp" accept' 阅读全文

posted @ 2016-09-21 11:40 傻子才悲伤 阅读(313) 评论(0) 推荐(0)

Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
摘要:CentOS7安装任何软件,比如 yum -y install ansible 出现错误信息: Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 名词解释: EPEL:extra packages for enterprise linux. 阅读全文

posted @ 2016-09-14 17:59 傻子才悲伤 阅读(3134) 评论(0) 推荐(0)

CentOS 7安装升级最新版本docker-engine
摘要:注意: 要安装的是docker-engine,不是docker。 下载https://github.com/flasheryu/mirrors 此repo里面的yum.repos.d目录并代替CentOS系统的/etc/yum.repos.d目录。 注意备份原/etc/yum.repos.d目录到/ 阅读全文

posted @ 2016-09-06 18:04 傻子才悲伤 阅读(713) 评论(0) 推荐(0)

CentOS7修改服务器主机名方法
摘要:hostnamectl set-hostname <hostname> 退出重新ssh或login后生效。 阅读全文

posted @ 2016-09-06 17:34 傻子才悲伤 阅读(212) 评论(0) 推荐(0)

导航