Ctyun
来自Jack's Lab
1 Ubuntu image
# install ifconfig $ apt-get install net-tools # cfg sudo $ visudo # official editor of /etc/sudoers # User privilege specification comcat ALL=(ALL:ALL) NOPASSWD: ALL jack ALL=/usr/bin/mysql, /usr/bin/mysqldump, /usr/bin/docker, /usr/bin/du, /usr/bin/cp, /usr/bin/ls, /usr/bin/bash
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - $ apt-key fingerprint 0EBFCD88 $ echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu eoan stable" >> /etc/apt/source.list $ sudo apt-get install docker-ce docker-ce-cli
$ sudo apt-get install python3-daemonize $ sudo apt-get install python3-paho-mqtt $ sudo apt-get install python3-influxdb
use the non-ssl conf file: influxdb.conf
$ influx -host zy.mytao.com > create datebase autoeco > create user "root" with password 'xxx' with all privileges > create user "test" with password 'xxx' > grant all on "aeco" to "test"
ssl cfg:
$ ./influx -ssl -host zy.mytao.com -database aeco -username yuid -password ypwd >
2 Notes
不备案,80、443 端口测试不稳定,可用 800、4433 代替,当然用域名访问也不灵,可用 ip 地址直接访问
- mq: http-auth, http://ip:800/xxx/xxxx or https://zy.mytao.com:4433/xxx/xxxx
- api: rewrite https://$host:4433$1, use the http://ip:800/xxx/data, certs is located at /etc/cert/xxx.key xxx.pem, the debug/mymq page need use the wss://ip:8084
- tsdb: seems like the zy.mytao.com via ssl is OK