0%

Kaa CentOS7安装 启动命令


1.启动Mariadb
service mysql start
Mariadb的授权信息
CREATE USER 'sqladmin'@'localhost' IDENTIFIED BY 'admin'; GRANT ALL PRIVILEGES ON *.* TO 'sqladmin'@'localhost' WITH GRANT OPTION; FLUSH PRIVILEGES;`` Mariadb`的数据库名字

1
2
3
CREATE DATABASE kaa
CHARACTER SET utf8
COLLATE utf8_general_ci;

2.启动zookeeper
sudo /usr/share/zookeeper/bin/zkServer.sh start(重启服务器需要重启)
systemctl start supervisord(已经设置自动启动)
检查启动的情况

1
2
#supervisorctl
netstat -ntlp | grep 2181

3.启动MongoDB

1
2
3
4
5
sudo systemctl start mongodb(重启服务器需要重启)
service mongod start(已经设置自动启动)
检查mongoDB的启动情况
sudo systemctl status mongodb
cat /var/log/mongodb/mongod.log | grep "waiting for connections on port"

4.启动kaa

1
2
service kaa-node start
cat /var/log/kaa/* | grep ERROR

5、Kaa关闭

1
2
sudo service kaa-node stop
sudo service kaa-node start

5、Kaa的Administrator账号和密码

教程:http://docs.kaaproject.org/display/KAA/Administration+UI+guide
http://192.168.1.115:8080/kaaAdmin/
administrator