1: Download the source file?
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: View initialization options and initialize, how many more directories will be available after initialization?
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 bi n etc share Var |
?
1 2 3) 4 5 |
./bin/aerospike-Manage scripts./BIN/ASD-ASD service./etc/aerospike.conf-the configuration file for the instance./share/-Contains a Read-only files for some instances./var/-ASD generate some logs and data |
4: Installing 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 23:52 aerospike-server-community-3.5.9-1.el6.x86_64.rpm-rw-rw-r--. 1 1010 492 3166032 Apr 23:47 aerospike-tools-3.5.9-1.el6.x86_64.rpm-rwxrwxr-x. 1 1010 492 1133 Mar Asinstall-rw-rw-r--. 1 1010 492 8241 Mar License-rw-rw-r--. 1 1010 492 48664 Mar 08:29 python-argparse-1.2.1-2.el6.noarch.rpm-rw-rw-r--. 1 1010 492 661 APR 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 ... ########################################### [100%] installing/opt/aerospike Adding Group Aerospike Adding User Aerospike 1:aerospike-tools ########################################### [100%] Writing/usr/lib64/python2.6/sit E-packages/aerospike.pth Adding python Path/opt/aerospike/lib/python |
5: Run Aerospike?
1 2 3) 4 5 |
[Root@localhost bin]#./aerospike start Error:start failed due to an error. June 03:11:29 gmt:critical (config): (cfg.c:1628) couldn ' t open configuration file/etc/aerospike/aerospike.conf: No such file or directory June 03:11:29 gmt:warning (AS): (signal.c::134) SIGINT received, shutting down June 03 03:11:29 gmt:warning (AS): (signal.c::137) startup is 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 |
View Log file:?
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 |