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