ITPub博客

首页 > 数据库 > > Aerospike系列:5:安装AMC

Aerospike系列:5:安装AMC

作者:LCR_ 时间:2022-04-14 10:18:59 0 删除 编辑

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

1
2
3
python (2.6+)
gcc
python-devel

安装相应的模块

1
2
3
4
sudo pip install markupsafe
sudo pip install paramiko
sudo pip install ecdsa
sudo pip install pycrypto
 

2:下载rpm包

1
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

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

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

4:操作指南

1
2
3
4
5
6
7
8
9
10
11
12
13
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内容

1
2
3
4
5
6
7
8
9
10
[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了

1
2
3
4
5
6
7
8
[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端口的监听服务是否正常。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70000523/viewspace-3149697/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: HAZELCAST
请登录后发表评论 登录
全部评论

注册时间:2022-02-22

  • 博文量
    1402
  • 访问量
    15039