继前一篇ubuntu16.04搭建oracle环境用于golang开发文章之后,开发的功能终于于5-29日晚上线发布。结果版本发布过程中出现了问题,因此记录下来。
过程是线上环境没有提前安装oracle client,导致应用启动失败。就先找了一台虚拟机模拟版本发布,结果导致出现了如下两个问题:
- 安装完oracle client后,启动报error while loading shared libraries: libaio.so.1
直接使用命令apt install libaio1就解决了。
- 这个问题碰到就比较懵
panic: open /opt/go/lib/time/zoneinfo.zip: no such file or directory
goroutine 1 [running]:
github.com/mattn/go-oci8.init.0()
/home/chensl004/Workspace/go/src/github.com/mattn/go-oci8/globa