绑定完请刷新页面
取消
刷新

分享好友

×
取消 复制
aerospike(1)-centos7安装aerospike
2022-04-14 10:10:14

要安装的软件:server和tools

下载地址:https://www.aerospike.com/download/server/4.5.1.5/

server

1、下载

wget https://www.aerospike.com/artifacts/aerospike-server-community/4.5.1.5/aerospike-server-community-4.5.1.5-el7.tgz

2、升级openssl

yum update openssl

3、解压&安装

tar -zxvf aerospike-server-community-4.5.1.5-el7.tgz

cd aerospike-server-community-4.5.1.5-el7/
sh asinstall

4、启动

systemctl start aerospike

5、查看状态

[root@zuoys aerospike-server-community-4.5.1.5-el7]# systemctl status aerospike

[root@zuoys aerospike-server-community-4.5.1.5-el7]# asinfo -v STATUS
OK

 其他命令

#重启
systemctl restart aerospike
#停止
systemctl stop aerospike

查看日志

journalctl -u aerospike -a -o cat -f

卸载

#查看服务名
[root@cent7-zuoys aerospike]# rpm -qa |grep -i aerospike
aerospike-server-community-4.5.1.5-1.el6.x86_64
#卸载
[root@cent7-zuoys aerospike]# yum remove aerospike-server-community-4.5.1.5-1.el6.x86_64

tools

下载

wget https://www.aerospike.com/artifacts/aerospike-tools/3.18.1/aerospike-tools-3.18.1-el7.tgz

解压

[root@zuoys aerospike]# tar -zxvf aerospike-tools-3.18.1-el7.tgz 
[root@zuoys aerospike]# cd aerospike-tools-3.18.1-el7/
#安装
[root@zuoys aerospike-tools-3.18.1-el7]# sh asinstall

验证

[root@zuoys aerospike-tools-3.18.1-el7]# yum list installed | grep aerospike-tools
aerospike-tools.x86_64                  3.18.1-1.el7                   installed

asadm

复制代码
[root@zuoys aerospike-tools-3.18.1-el7]# asadm
Seed:        [('127.0.0.1', 3000, None)]
Config_file: /root/.aerospike/astools.conf, /etc/aerospike/astools.conf
Aerospike Interactive Shell, version 0.2.0

Found 1 nodes
Online:  192.168.241.129:3000
Admin>
复制代码

aql

复制代码
[root@zuoys aerospike-tools-3.18.1-el7]# aql
Seed:         127.0.0.1
User:         None
Config File:  /etc/aerospike/astools.conf /root/.aerospike/astools.conf 
Aerospike Query Client
Version 3.18.1
C Client Version 4.5.0
Copyright 2012-2017 Aerospike. All rights reserved.
aql> 
复制代码

asinfo

[root@zuoys aerospike-tools-3.18.1-el7]# asinfo -v edition
Aerospike Community Edition

asbackup

复制代码
[root@zuoys aerospike-tools-3.18.1-el7]# asbackup -n test -o ~/output
2019-03-16 13:19:18 GMT [INF] [ 4719] Starting  backup of 127.0.0.1 (namespace: test, set: [all], bins: [all], after: [none], before: [none]) to /root/output
2019-03-16 13:19:18 GMT [INF] [ 4719] [src/main/aerospike/as_cluster.c:129][as_cluster_add_nodes_copy] Add node BB94E0E61290C00 127.0.0.1:3000
2019-03-16 13:19:18 GMT [INF] [ 4719] Processing 1 node(s)
2019-03-16 13:19:18 GMT [INF] [ 4719] Node ID             Objects        Replication    
2019-03-16 13:19:18 GMT [INF] [ 4719] BB94E0E61290C00     0              1              
2019-03-16 13:19:18 GMT [INF] [ 4719] Namespace contains 0 record(s)
2019-03-16 13:19:18 GMT [INF] [ 4719] Created new backup file /root/output
2019-03-16 13:19:18 GMT [INF] [ 4738] Starting backup for node BB94E0E61290C00
2019-03-16 13:19:18 GMT [INF] [ 4738] No secondary indexes
2019-03-16 13:19:18 GMT [INF] [ 4738] Backing up 0 UDF file(s)
2019-03-16 13:19:18 GMT [INF] [ 4738] Completed backup for node BB94E0E61290C00, records: 0, size: 42 (~0 B/rec)
2019-03-16 13:19:19 GMT [INF] [ 4737] Backed up 0 record(s), 0 secondary index(es), 0 UDF file(s) from 1 node(s), 42 byte(s) in total (~0 B/rec)
复制代码

AMC

1
2
3
4
5
6
#下载社区版
[root@cent7-zuoys aerospike]# wget https://www.aerospike.com/artifacts/aerospike-amc-community/4.0.22/aerospike-amc-community-4.0.22-1.x86_64.rpm
#安装
[root@cent7-zuoys aerospike]# rpm -ivh aerospike-amc-community-4.0.22-1.x86_64.rpm
#
[root@cent7-zuoys aerospike]# cp /etc/amc/amc.conf /etc/amc/amc.conf.bac

启动&停止&重启

复制代码
#启动
/etc/init.d/amc start
#停止
/etc/init.d/amc stop
#重启
/etc/init.d/amc restart
#查看状态
/etc/init.d/amc status

#查看日志
/var/log/amc/error.log
复制代码

查看

http://192.168.163.131:8081
分享好友

分享这个小栈给你的朋友们,一起进步吧。

Aerospike
创建时间:2022-04-14 10:06:31
Aerospike
展开
订阅须知

• 所有用户可根据关注领域订阅专区或所有专区

• 付费订阅:虚拟交易,一经交易不退款;若特殊情况,可3日内客服咨询

• 专区发布评论属默认订阅所评论专区(除付费小栈外)

技术专家

查看更多
  • LCR_
    专家
戳我,来吐槽~