Aerospike系列:5:安装AMC

1:需要安装的包,如果缺少,请安装。

python (2.6+)
gcc
python-devel

安装相应的模块

sudo pip install markupsafe
sudo pip install paramiko
sudo pip install ecdsa
sudo pip install pycrypto

  

2:下载rpm包

wget http://www.aerospike.com/artifacts/aerospike-amc-community/3.6.0/aerospike-amc-community-3.6.0-el5.x86_64.rpm

 

3:安装aerospike-amc-community-3.6.0-el5.x86_64.rpm

rpm -ivh aerospike-amc-community-3.6.0-el5.x86_64.rpm

  

详情可以参考这里:http://www.aerospike.com/docs/amc/install/linux/el6/

4:操作指南

Starting the AMC server
To start the AMC:

sudo /etc/init.d/amc start
To stop the AMC server:

sudo /etc/init.d/amc stop
To restart the AMC server:

sudo /etc/init.d/amc restart
To see whether or not the AMC server is up:

sudo /etc/init.d/amc status

配置过程中有任何问题都可以查看错误日志:/var/log/amc/error.log

  

5:默认的gunicorn_config内容

[root@localhost ~]# cat /etc/amc/config/gunicorn_config.py
bind = "0.0.0.0:8081"
pidfile = "/tmp/amc.pid"
loglevel = "info"
errorlog = "/var/log/amc/error.log"
workers = 1
proc_name = "amc"
chdir = "/opt/amc/server"
timeout = 150
worker_class = "eventlet"

可以编辑bind之后再重启AMC服务。例如改为:192.168.91.132:8081

  

 

 

社区版可以参考这里:http://www.aerospike.com/docs/amc/user_guide/community/

商业版可以参考这里:http://www.aerospike.com/docs/amc/user_guide/enterprise/

 

 6:在两个服务都启动成功后就可以连接AMC了

[root@localhost bin]# ls
aerospike  asd  bin  etc  share  var
[root@localhost bin]# ./aerospike status
info: process running
[root@localhost bin]# /etc/init.d/amc status
Retrieving AMC status....
AMC is running.
[root@localhost bin]# 

浏览器输入:

输入192.168.91.132连接即可。

 

如果提示:

请检查主机上的3000和8081端口的监听服务是否正常。

 详情参考:http://www.aerospike.com/docs/amc/user_guide/community/dashboard.html

 

  

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值