[root@tandelin /]# uname -r
3.10.0-693.el7.x86_64
安装Docker 要求 CentOS 系统的内核版本高于 3.10 ,就需要对内核版本进行查看,这样做是保证前提条件:CentOS 版本是否支持 Docker运行 。通过 uname -r 命令查看你当前的内核版本
第一步
[root@tandelin /]# sudo yum install -y yum-utils device-mapper-persistent-data lvm2
Installed:
yum-utils.noarch 0:1.1.31-50.el7
Dependency Installed:
libxml2-python.x86_64 0:2.9.1-6.el7_2.3 python-chardet.noarch 0:2.2.1-1.el7_1 python-kitchen.noarch 0:1.1.1-5.el7
第二步
[root@tandelin /]# sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
Loaded plugins: fastestmirror
adding repo from: http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
grabbing
file http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo
repo saved to
/etc/yum.repos.d/docker-ce.repo
[root@tandelin /]# sudo yum makecache fast
Loaded plugins: fastestmirror
base
| 3.6 kB 00:00:00
docker-ce-stable
第三步
[root@tandelin /]# sudo yum -y install docker-ce
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras:
mirrors.cqu.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
最后就是启动Docker
[root@tandelin /]# sudo systemctl start docker
Grid Studio 安装
以上的docker安装成功,将grid studio文件压缩包直接上传到/data目录中去。
Grid Studio 的项目地址:
https://github.com/ricklamers/gridstudio。
[root@tandelin /]# mkdir data
[root@tandelin /]# cd data
[root@tandelin /]# chmod 777 gridstudio-master.zip
[root@tandelin /]# unzip gridstudio-master.zip
[root@tandelin /]# cd gridstudio-master
[root@tandelin /]# ls
[root@tandelin /]# systemctl stop firewalld.service #停止firewall,否则外边浏览器无法访问(**该步骤建议暂时不进行操作**)
[root@tandelin /]# ./run.sh
#检查安装情况
#在浏览器中打开
http://127.0.0.1:8080
当然以上,也可直接查看IP,我直接使用的是自己的ip进行登录,效果差不多。
注意:以上安装过程中,xshell容易退出,在安装过程中为了避免断网的麻烦,我直接在虚拟机中进行操作的,当然可能是由于我家网络较差导致xshell频繁退出造成的。
最终效果
左边Excel,右边写Python程序的集成web就实现了。
docker启动命令,docker重启命令,docker关闭命令
启动 systemctl start docker
守护进程重启 sudo systemctl daemon-reload
重启docker服务 systemctl restart docker
重启docker服务 sudo service docker restart
关闭docker service docker stop
关闭docker systemctl stop docker