首页 > 数据库 > > Aerospike系列:5:安装AMC
1:需要安装的包,如果缺少,请安装。
1 2 3 | python (2.6+)gccpython-devel |
安装相应的模块
1 2 3 4 | sudo pip install markupsafesudo pip install paramikosudo pip install ecdsasudo 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 serverTo start the AMC:sudo /etc/init.d/amc startTo stop the AMC server:sudo /etc/init.d/amc stopTo restart the AMC server:sudo /etc/init.d/amc restartTo 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.pybind = "0.0.0.0:8081"pidfile = "/tmp/amc.pid"loglevel = "info"errorlog = "/var/log/amc/error.log"workers = 1proc_name = "amc"chdir = "/opt/amc/server"timeout = 150worker_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]# lsaerospike asd bin etc share var[root@localhost bin]# ./aerospike statusinfo: process running[root@localhost bin]# /etc/init.d/amc statusRetrieving AMC status....AMC is running.[root@localhost bin]# |
浏览器输入:

输入192.168.91.132连接即可。

如果提示:

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

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