gridStudio 安装(linux)

1.安装Docker

# 安装需要的软件包, yum-util 提供yum-config-manager功能,另外两个是devicemapper驱动依赖的
yum install -y yum-utils device-mapper-persistent-data lvm2

# 设置yum源
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

# 国外镜像一般很难访问,建议配置阿里云镜像。
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

# 可以查看所有仓库中所有docker版本,并选择特定版本安装
yum list docker-ce --showduplicates | sort -r

# 安装docker
yum install docker-ce

#启动并加入开机启动
systemctl start docker
systemctl enable docker

可能会报错:This system is not registered with RHN

解决方案:解决This system is not registered with an entitlement server. You can use subscription-manager to register.

    1、查看redhat 7.0系统本身所安装的那些yum软件包

rpm -qa | grep yum

    2、卸载这些软件包

rpm -e yum-rhn-plugin-2.0.1-10.el7.noarch --nodeps
rpm -e yum-metadata-parser-1.1.4-10.el7.x86_64 --nodeps
rpm -e yum-3.4.3-158.el7.noarch --nodeps

    3、保证本机电脑能上网,下载自己所需要的版本

wget http://mirrors.163.com/centos/7/os/x86_64/Packages/python-kitchen-1.1.1-5.el7.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/python-chardet-2.2.1-1.el7_1.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-3.4.3-158.el7.centos.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-utils-1.1.31-45.el7.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-updateonboot-1.1.31-45.el7.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-45.el7.noarch.rpm

    4、安装软件包

rpm -ivh python-*

rpm -ivh yum-*

    5、新建repo 配置文件(如果是其他版本,则将下面的7改为你当前的版本数字)

wget -O /etc/yum.repos.d/CentOS-Base.repo  http://mirrors.aliyun.com/repo/Centos-7.repo
#cat /etc/centos-release
sed -i 's/$releasever/7.6.1810/g' /etc/yum.repos.d/CentOS-Base.repo
# uname -r
sed -i 's/$basearch/x86_64/g' /etc/yum.repos.d/CentOS-Base.repo

    6、清除缓存

yum clean all
# 建立缓存
yum makecache

    7、测试是否正常

yum -y install lftp

 

    通过以下命令查看docker运行状态:

ps -ef|grep docker
// 或
netstat -lnpe|grep docker

    开启docker2375端口,提供外部访问docker:
    编辑docker文件:/usr/lib/systemd/system/docker.service

vim /usr/lib/systemd/system/docker.service

 

    修改ExecStart行为下面内容

ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix://var/run/docker.sock \

3.重新加载docker配置

systemctl daemon-reload // 1,加载docker守护线程
systemctl restart docker // 2,重启docker

4.安装git Linux 下安装 Git

yum install git

y

如果要下载最新版本,可以从github上下载最新

wget https://github.com/git/git/archive/v2.17.0.tar.gz
tar -zxvf v2.17.0.tar.gz

安装依赖

yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker

y

安装依赖时,yum自动安装了Git,需要卸载旧版本Git,命令为: yum remove git 出现提示输入y即可;

⑤、进入解压后的文件夹,命令 cd git-2.17.0 ,然后执行编译,命令为 make prefix=/usr/local/git all 耐心等待编译即可;

bash: make: command not found  

yum -y install gcc automake autoconf libtool make

⑥、安装Git至/usr/local/git路径,命令为 make prefix=/usr/local/git install ;

⑦、打开环境变量配置文件,命令 vim /etc/profile ,在底部加上Git相关配置信息:

PATH=$PATH:/usr/local/git/bin

export PATH 

然后保存,退出!

⑧、输入命令 git --version ,查看安装的git版本,校验通过,安装成功。

 

5. 下载gridstudio

git clone https://github.com/ricklamers/gridstudio

  • 设置文件权限

chmod 777 gridstudio

  • 停止firewall,否则外边浏览器无法访问(该步骤建议暂时不进行操作)

systemctl stop firewalld.service

启动: systemctl start firewalld
关闭: systemctl stop firewalld
查看状态: systemctl status firewalld 
开机禁用  : systemctl disable firewalld
开机启用  : systemctl enable firewalld 
  • run.sh

. ./run.sh

你可能感兴趣的:(gridstudio,Linux,gridstudio,linux)