当前位置: 首页 > 工具软件 > MemSQL > 使用案例 >

CentOS单机安装MemSQL6.5

胥博文
2023-12-01

1、将DNS注释掉,强制本地安装

vi /etc/resolv.conf  注释掉nameserver

2、安装memsql-ops

# tar -zxvf memsql-ops-6.0.7.tar.gz

# ./install.sh --ops-datadir /opt/memdata --memsql-installs-dir /opt/meminstall

3、在其他节点安装memsql-agent

# memsql-ops agent-deploy -h 192.168.211.139 -u root -p andy123 --ops-datadir /opt/memdata --memsql-installs-dir /opt/meminstall/

# memsql-ops agent-deploy -h 192.168.211.140 -u root -p andy123 --ops-datadir /opt/memdata --memsql-installs-dir /opt/meminstall/

# memsql-ops agent-list (验证节点安装结果,顺便查看Agent ID)

# memsql-ops memsql-list (验证节点安装结果)

4、在各节点安装memsql运行节点

# memsql-ops file-add -t memsql /opt/memsqlbin-6.0.10_amd64.tar.gz (安装之前,先做file-add)

# memsql-ops memsql-deploy -a Aa032ea -r master

# memsql-ops memsql-deploy -a Aa032ea -r leaf

5、卸载memsql (如有必要)

# memsql-ops uninstall

# memsql-ops agent-uninstall --all

# memsql-ops memsql-delete --all

# memsql-ops memsql-list --agent-id A60016de81c294daa89d82588bd258394 --include-unmonitored -q | xargs -n 1 memsql-ops memsql-delete

# memsql-ops memsql-stop (选择3,集群)

# memsql-ops memsql-start(选择3,集群)

 类似资料: