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

分享好友

×
取消 复制
Aerospike系列:1:安装
2022-04-14 10:09:16

1:下载源文件

1
wget http://www.aerospike.com/artifacts/aerospike-server-community/3.5.9/aerospike-server-community-3.5.9.tar.gz
  

2:

1
tar -zxvf aerospike-server-community-3.5.9.tar.gz && cd aerospike-server

3:查看初始化选项 并且初始化,初始化之后会多几个目录

1
./bin/aerospike init --help
1
2
3
4
5
[root@localhost bin]# ls
aerospike  asd
[root@localhost bin]# ./aerospike init
[root@localhost bin]# ls
aerospike  asd  bin  etc  share  var

1
2
3
4
5
./bin/aerospike         -管理脚本
./bin/asd               -asd服务
./etc/aerospike.conf    -实例的配置文件
./share/                -包含一些实例的只读文件
./var/                  -asd产生的一些日志和数据

  

4:安装Install Aerospike Tools

1
wget -O aerospike-tools.tgz 'http://aerospike.com/download/server/latest/artifact/el6'

  

1
2
3
4
5
6
7
8
9
10
11
12
tar -zxvf aerospike-tools.tgz
 
cd aerospike-server-community-3.5.9-el6/
 
[root@localhost aerospike-server-community-3.5.9-el6]# ll
total 6584
-rw-rw-r--. 1 1010 492 3506140 Apr 20 23:52 aerospike-server-community-3.5.9-1.el6.x86_64.rpm
-rw-rw-r--. 1 1010 492 3166032 Apr 20 23:47 aerospike-tools-3.5.9-1.el6.x86_64.rpm
-rwxrwxr-x. 1 1010 492    1133 Mar 10 10:00 asinstall
-rw-rw-r--. 1 1010 492    8241 Mar 10 10:00 LICENSE
-rw-rw-r--. 1 1010 492   48664 Mar 10 08:29 python-argparse-1.2.1-2.el6.noarch.rpm
-rw-rw-r--. 1 1010 492     661 Apr 20 23:52 SHA256SUMS
1
2
3
4
5
6
7
8
[root@localhost aerospike-server-community-3.5.9-el6]# rpm -Uvh aerospike-tools-3.5.9-1.el6.x86_64.rpm
Preparing...                ########################################### []
Installing /opt/aerospike
Adding group aerospike
Adding user aerospike
   1:aerospike-tools        ########################################### []
Writing /usr/lib64/python2.6/site-packages/aerospike.pth
Adding python path /opt/aerospike/lib/python

5:运行Aerospike

1
2
3
4
5
[root@localhost bin]# ./aerospike start
error: start failed due to an error.
Jun 03 2015 03:11:29 GMT: CRITICAL (config): (cfg.c:1628) couldn't open configuration file /etc/aerospike/aerospike.conf: No such file or directory
Jun 03 2015 03:11:29 GMT: WARNING (as): (signal.c::134) SIGINT received, shutting down
Jun 03 2015 03:11:29 GMT: WARNING (as): (signal.c::137) startup was not complete, exiting immediately

  

1
2
3
4
[root@localhost bin]# mkdir -p /etc/aerospike/
[root@localhost bin]# cp ./etc/aerospike.conf /etc/aerospike/aerospike.conf
[root@localhost bin]# ./aerospike start
info: started

  

查看日志文件:

1
2
3
[root@localhost bin]# ls
aerospike  asd  bin  etc  share  var
[root@localhost bin]# cat ./var/log/aerospike.log

  

1
2
[root@localhost bin]# ./aerospike status
info: process running
分享好友

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

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

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

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

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

技术专家

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