AeroSpike安装及启动

来源:互联网 发布:360免费wifi软件 编辑:程序博客网 时间:2024/05/18 00:47

下载AeroSpike安装文件:

aerospike-amc-community-3.6.13-el6.x86_64.rpmaerospike-server-community-3.11.1.1-el7.tgz

一、安装Server

tar -xvf aerospike-server-community-3.11.1.1-el7.tgz
cd aerospike-server-community-3.11.1.1-el7
sudo ./asinstall

若修改了aerospike进程用户,需要响应权限。

二、安装AMC

安装依赖

python (2.6+)gccpython-development
yum -y install gccyum -y install python-develrpm -ivh aerospike-amc-community-3.6.13-el6.x86_64.rpm 

三、启动命令

#AeroSpike服务启动sudo service aerospike start#AeroSpike服务重启sudo service aerospike restart#AeroSpike服务停止sudo service aerospike stop
#启动amcsudo /etc/init.d/amc start#停止amcsudo /etc/init.d/amc stop#重启amcsudo /etc/init.d/amc restart#查看amc状态sudo /etc/init.d/amc status#查看amc启动报错日志/var/log/amc/error.log#查看server日志/var/log/aerospike/aerospike.log

四、管理后台访问链接

http://host:8081

host 是安装amc的服务器host

五、执行脚本

#!/bin/bashecho "1.解压"tar -xvf aerospike-server-community-3.11.1.1-el7.tgzcd aerospike-server-community-3.11.1.1-el7./asinstallecho "2.安装gcc , python"yum -y install gcc python-develcd ..echo "3.安装rpm包"rpm -ivh aerospike-amc-community-3.6.13-el6.x86_64.rpmecho "安装完成,请去/etc/aerospike/aerospike.conf 编辑配置, 然后使用service aerospike start启动"#service aerospike start

将该脚本放置于安装文件同级目录,直接执行即可。

原创粉丝点击