本文主要是介绍aerospike安装,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
aerospike安装(编译版安装)
https://github.com/aerospike/aerospike-server
https://github.com/aerospike/aerospike-client-c
1:下载源文件
wget http://www.aerospike.com/artifacts/aerospike-server-community/3.5.15/aerospike-server-community-3.5.15.tar.gz
https://github.com/aerospike/aerospike-client-java
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 '
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
wget -O aerospike-tools.tgz ' http://www.aerospike.com/artifacts/aerospike-server-community/3.6.2/aerospike-server-community-3.6.2-el6.tgz '
这篇关于aerospike安装的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!