docker build awesomeProject
- 存储方案
- MongoDB
- TSDB
- HBase
- PostgreSQL
- 消息中间件
- RabbitMQ
- EMQ
- 数据缓存
- Redis
- 通信协议
- MQTT
EMQ开启上下线监听的方法:
- docker exec -it emq /bin/sh
- vi etc/acl.conf
- 添加一行:{allow, {user, "golang-server"}, subscribe, ["$SYS/#"]}.
- 重启容器
设置MySQL以支持中文:
编辑:/etc/mysql/mysql.cnf
,修改为以下配置:
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/
# 设置字符集为UTF8,以支持中文
[mysqld]
character-set-server=utf8
collation-server=utf8_general_ci
[mysql]
default-character-set = utf8
[mysql.server]
default-character-set = utf8
[mysqld_safe]
default-character-set = utf8
[client]
default-character-set = utf8