Install Rancher server
1.pre-requirement:
sudo nmtui# sudo hostnamectl set-hostname <hostname>
$ sudo hostnamectl set-hostname rancher01
$ sudo systemctl restart systemd-hostnamed sudo yum install openssh -y
2.docker:$ sudo yum install yum-utils -y
$ sudo yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo
$ sudo yum makecache fast$ sudo yum install docker-ce$ sudo groupadd docker
$ sudo usermod -aG docker <youruser>$ getent group docker$ systemctl start docker$ sudo systemctl enable docker注意上面的在centos7里面很简单就完成了,这里装一下*,所以加进去了,万一后面有用呢。
Install Rancher server
$ docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:stable$ docker run -d --name rancher-mysql --restart=unless-stopped -e MYSQL_ROOT_PASSWORD=<password> -e MYSQL_DATABASE=cattle mysql:5.7
$ docker run -d --restart=unless-stopped --link rancher-mysql:rancher-mysql -p 8080:8080 rancher/server:stable --db-host rancher-mysql --db-port 3306 --db-user root --db-pass <password> --db-name cattle$ docker run -d -v <path>:/var/lib/mysql --restart=unless-stopped -p 8080:8080 rancher/server:stable$ sudo firewall-cmd --zone=public --add-port=8080/tcp --permanent
$ sudo firewall-cmd --reload$ sudo firewall-cmd --list-portsRancher 要检查ipv6:所以要enable it:
$ sudo sysctl -a | grep net.ipv6.conf.all.forwardingnet.ipv6.conf.all.forwarding=1$ sudo rebootlast:
http://<your ip>:8080 ok:

Install Rancher server的更多相关文章
- Rancher Server HA的高可用部署实验-学习笔记
		转载于https://blog.csdn.net/csdn_duomaomao/article/details/78771731 Rancher Server HA的高可用部署实验-学习笔记 一.机器 ... 
- Ubuntu 18 使用docker安装rancher/server:stable并运行kubernetes
		1.安装docker sudo apt-get install docker.io docker的版本:Docker version 17.12.1-ce 2.安装virtualbox-qt,因为vi ... 
- 使用Rancher Server部署本地多节点K8S集群
		当我第一次开始我的Kubernetes之旅时,我一直在寻找一种设置本地部署环境的方式.很多人常常会使用minikube或microk8s,这两者非常适合新手在单节点集群环境下进行操作.但当我已经了解了 ... 
- SQL Server 2008 R2 找不到  Install SQL Server Profiler  找不到  事件探查器 解决
		摘自: http://blog.csdn.net/yuxuac/article/details/8992893 SQL Server 2008 R2 Express Edition - Install ... 
- [转]Install Windows Server 2012 in VMware Workstation
		本文转自:http://kb4you.wordpress.com/2012/06/28/install-windows-server-2012-in-vmware-workstation-2/ Thi ... 
- Install TightVNC Server in RHEL/CentOS and Fedora to Access Remote Desktops
		Virtual Networking Computing (VNC) is a Kind of remote sharing system that makes it possible to take ... 
- Install Ubuntu Server
		进入引导程序以后, 选择Install Ubuntu Server, 安装主菜单如下: 依次配置: 接着 https://www.youtube.com/watch?v=gqLaT01yei0 
- Install windows server 2008 on ESXi 5.1, add to domain and config for remote desktop
		Never give up ---xingyunpi Install windows server 2008 system on ESXi 5.1, add it to a domain and do ... 
- Install LAMP Server (Apache, MariaDB, PHP) On CentOS/RHEL/Scientific Linux 7
		Install LAMP Server (Apache, MariaDB, PHP) On CentOS/RHEL/Scientific Linux 7 By SK - August 12, 201 ... 
随机推荐
- 【转】在Ubuntu 16.10 Server 上部署 Moodle
			第一步 安装 Ubuntu 16.10 Server LTS Moodle 的官方文档肯定了Ubuntu Server LTS 是适合运维Moodle平台的. 1.使用纯代码交互的服务器Ubuntu更 ... 
- HI2115软件开发板V150版本AT+NSOST指令
			1. 在HI2115里面,由于内存空间比较大,所以支持UDP发送指令AT+NSOST的分包 ret = sendto(socket, seq_num, data_string, length, msg ... 
- 用Kettle的一套流程完成对整个数据库迁移 费元星
			原地址 :http://ainidehsj.iteye.com/blog/1735434 需求: 1.你是否遇到了需要将mysql数据库中的所有表与数据迁移到Oracle. 2.你是否还在使用kett ... 
- Borland和Micorsoft的对话(转载自月光软件网)
			Borland与Microsoft关于Delphi的对话 Bear 1.Delphi较贵 一套Delphi的价格大约相当于两套Visual Studio ------------------- ... 
- Android各版本代号、版本号、API/NDK级别、发布时间
			代号 版本号 API/NDK级别 发布时间 牛轧糖 Nougat 7.1.2 API level 25 2017-2 7.1.1 2016-10 7.0 API level 24 2016-05 棉花 ... 
- Qt 在Label上面绘制罗盘
			自己写的一个小小的电子罗盘的一个小程序,不过是项目的一部分,只可以贴绘制部分代码 效果如下图 首先开始自己写的时候,虽然知道Qt 的坐标系是从左上角开始的,所以,使用了算法,在绘制后,在移动回来,但是 ... 
- Appium iOS万能的定位方式--Predicate(iOSNsPredicate)
			所谓Predicate定位即Java-Client -5.0.版本以及Appium-Python-Client 0.31版本更新后增加的新的定位方式: 举个例子: JAVA代码: //输入账号和密码 ... 
- HDFS常用文件操作
			put 上传文件 hadoop fs -put wordcount.txt /data/wordcount/ text 查看文件内容 hadoop fs -text /output/wo ... 
- 1013 Battle Over Cities (25 分)(图的遍历or并查集)
			这题用并查集或者dfs都可以做 dfs #include<bits/stdc++.h> using namespace std; ; bool mp[N][N]; int n,m,k; b ... 
- ThinkPHP5 Model分层及多对多关联的建立
			笔者最近入手ThinkPHP5,准备用它来实现一个学生作业管理系统.简单的说就是学生在上面交老师布置的课程作业,老师也可以发布修改作业.过程中势必会碰到学生.班级和老师之间的关系.它们之间的关系是多对 ... 
