您的位置:首页 > 其它

aerospike安装

2015-12-11 13:18 369 查看
aerospike安装(编译版安装)

0,安装环境

机器ip:10.0.0.9,10.0.0.8
https://github.com/aerospike/aerospike-server
https://github.com/aerospike/aerospike-client-c

https://github.com/aerospike/aerospike-client-java

1:下载源文件

wget http://www.aerospike.com/artifacts/aerospike-server-community/3.5.15/aerospike-server-community-3.5.15.tar.gz
wget http://www.aerospike.com/artifacts/aerospike-server-community/3.6.2/aerospike-server-community-3.6.2.tar.gz

2:tar -zxvf aerospike-server-community-3.5.15.tar.gz && cd aerospike-server
tar -zxvf aerospike-server-community-3.6.2.tar.gz && cd aerospike-server

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

./bin/aerospike init --help

[root@mobiead-06 bin]# ls

aerospike asd

[root@mobiead-06 bin]# ./aerospike init

[root@mobiead-06 bin]# ls

aerospike asd bin etc share var

./bin/aerospike -管理脚本

./bin/asd -asd服务

./etc/aerospike.conf -实例的配置文件

./share/ -包含一些实例的只读文件

./var/ -asd产生的一些日志和数据

4:安装Install Aerospike Tools

wget -O aerospike-tools.tgz 'http://www.aerospike.com/artifacts/aerospike-server-community/3.5.15/aerospike-server-community-3.5.15-el6.tgz'
wget -O aerospike-tools.tgz 'http://www.aerospike.com/artifacts/aerospike-server-community/3.6.2/aerospike-server-community-3.6.2-el6.tgz'

tar -zxvf aerospike-tools.tgz

cd aerospike-server-community-3.5.15-el6/

[root@mobiead-06 aerospike-server-community-3.5.15-el6]# ll

total 6460

-rw-r--r--. 1 zhangzicheng games 3528976 Jul 29 19:28 aerospike-server-community-3.5.15-1.el6.x86_64.rpm

-rw-r--r--. 1 zhangzicheng games 3059712 May 28 03:33 aerospike-tools-3.5.11-1.el6.x86_64.rpm

drwxr-xr-x. 3 zhangzicheng games 4096 Aug 25 13:29 aerospike-tools-deps

-rwxr-xr-x. 1 zhangzicheng games 1332 Jul 29 19:31 asinstall

-rw-r--r--. 1 zhangzicheng games 8241 Jul 29 19:31 LICENSE

-rw-r--r--. 1 zhangzicheng games 993 Jul 29 19:31 SHA256SUMS

[root@mobiead-06 aerospike-server-community-3.5.15-el6]# rpm -Uvh aerospike-tools-3.5.11-1.el6.x86_64.rpm

Preparing... ########################################### [100%]

Installing /opt/aerospike

Adding group aerospike

Adding user aerospike

1:aerospike-tools ########################################### [100%]

Writing /usr/lib64/python2.6/site-packages/aerospike.pth

Adding python path /opt/aerospike/lib/python

5:运行Aerospike

[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

[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

查看日志文件:

[root@localhost bin]# ls

aerospike asd bin etc share var

[root@localhost bin]# cat ./var/log/aerospike.log

[root@localhost bin]# ./aerospike status

info: process running

aerospike安装(源文件安装)

安装依赖环境:autoconf`, `automake`, and `libtool

OpenSSL

Lua 5.1

`lua`, `lua-devel`, and `lua-static`

---------------------------

yum install gcc

yum install autoconf libtool

yum install openssl-devel openssl-static

yum install lua-devel lua-static lua

下载源代码编译:

git clone https://github.com/aerospike/aerospike-server.git

git pull

git submodule update --init

make

make init

make start

make stop

git clone https://github.com/aerospike/aerospike-admin.git

make

make install

git clone https://github.com/aerospike/aerospike-client-c.git

https://github.com/aerospike/aerospike-elk.git

https://github.com/aerospike/aerospike-hadoop.git
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: