Aerospike系列:1:安裝


1:下載源文件

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

  

2:

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

3:查看初始化選項 並且初始化,初始化之后會多幾個目錄

./bin/aerospike init --help
[root@localhost bin]# ls
aerospike  asd
[root@localhost bin]# ./aerospike init 
[root@localhost 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://aerospike.com/download/server/latest/artifact/el6'

  

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
[root@localhost aerospike-server-community-3.5.9-el6]# rpm -Uvh aerospike-tools-3.5.9-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

  

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM