绑定完请刷新页面
取消
刷新

分享好友

×
取消 复制
Aerospike系列:5:安装AMC
2022-04-14 10:18:59

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端口的监听服务是否正常。

分享好友

分享这个小栈给你的朋友们,一起进步吧。

Aerospike
创建时间:2022-04-14 10:06:31
Aerospike
展开
订阅须知

• 所有用户可根据关注领域订阅专区或所有专区

• 付费订阅:虚拟交易,一经交易不退款;若特殊情况,可3日内客服咨询

• 专区发布评论属默认订阅所评论专区(除付费小栈外)

技术专家

查看更多
  • LCR_
    专家
戳我,来吐槽~