yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install -y glances python-bottle
## You can also open port 61208
systemctl stop firewalld ; systemctl disable firewalld
vim /usr/lib/systemd/system/glancesweb.service
[Unit]
Description = Glances in Web Server Mode
After = network.target
[Service]
ExecStart = /usr/bin/glances -w -t 2
[Install]
WantedBy = multi-user.target
systemctl status glancesweb.service ; systemctl enable glancesweb.service ; systemctl start glancesweb.service ; systemctl status glancesweb.service
- Open 61208 port
- Browser url
yum install -y python-pip
pip install --user 'docker-py==1.7.2'