CentOS7安装cratedb

Posted jackyzm

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS7安装cratedb相关的知识,希望对你有一定的参考价值。

crate:

下载: https://crate.io/download/thank-you/?download=tar

crash:

下载: https://crate.io/docs/clients/crash/en/latest/getting-started.html

https://crate.io/docs/crate/reference/en/latest/admin/user-management.html#create-user

 

卸载:

yum list installed

yum info installed

yum remove name

rpm -qa | grep name

rpm -e name

 

建立crate用户后

useradd crate

安装方法一: (官方方法)

  https://crate.io/docs/crate/getting-started/en/latest/install-run/special/linux.html

  su crate bash -c "$(curl -L install.crate.io)"

安装方法二:

  建立crate用户:

    useradd crate

  创建密码:

    passwd crate

  给crate用户赋予sudo权限:

    vim /etc/sudoers

    crate   ALL=(ALL)       ALL

  进入crate用户:

    su crate

    sudo yum install epel-release -y

    sudo yum update -y

    sudo shutdown -r now

  启动后进入crate

    su crate

    sudo rpm --import https://cdn.crate.io/downloads/yum/RPM-GPG-KEY-crate

    sudo rpm -Uvh https://cdn.crate.io/downloads/yum/7/noarch/crate-release-7.0-1.noarch.rpm

    sudo yum install crate -y

    sudo systemctl start crate.service

    sudo systemctl enable crate.service

    path.repo: /nfs/crate,/nfs/crate/test-a,/crate-copy  #如需要做备份nfs共享目录,则添加此配置

注:

[[email protected] bin]$ ./crate

ERROR: Couldn‘t read log4j2.properties configuration file.

如有此报错,检查crate是否已经开启

ps -aux | grep crate

  修改配置文件:

    vim /etc/crate/crate.yml

    license.enterprise: false   #不以企业版启动

    #auth.host_based.enabled: true  #注销登陆验证

    network.bind_host:

    network.publish_host:

    network.host:

    transport.tcp.port:

    http.port: 4200

  重启crate

    systemctl status crate

    systemctl restart crate

  下载crash,

    放到/usr/local/,

    cd /usr/local

    python2.6(2.7以下)

    用0.16.2版本 curl -o crash https://cdn.crate.io/downloads/releases/crash_standalone_0.16.2

  添加执行权限:

    chmod +x crash

  启动crash

    ./crash

  连接crate

    cr> c 192.168.x.x:4200

以上是关于CentOS7安装cratedb的主要内容,如果未能解决你的问题,请参考以下文章

centos7怎么安装 centos7安装步骤

centos7安装教程?

如何安装Centos7

安装centos7正在执行安装后设置需要多久

vmware怎么安装centos7

centos7安装问题