- what is it
- how it looks like
1
- how to solve
1 | import "github.com/astaxie/beego/plugins/cors" |
- why
1 |
1 | import "github.com/astaxie/beego/plugins/cors" |
1 | // 用于staff的排序 |
-i指定密钥
-o加option
1 | -o TCPKeepAlive=yes //长连接 |
1 | ssh -L local_port:localhost:remote_port -N -T user@server_address -p server_ssh_port |
config文件配置: ~/.ssh/config
1 | #配置 |
配置服务端
windows terminal
1 | 连接远程机器使用 ssh 配置 |
1 |
excel表格操作库,对日期格式的数据读写还不是很完善,能识别的日期格式返回一个01-02-06(day-month-day)格式的字符串,无法识别时直接返回的是excel表格中的原始数据,一个浮点型数,在excel中支持很多种日期格式显示。
1 | file,err:=excelize.OpenFile(filepath) |
1 | file:=excelize.NewFile() |
大部分错误最先从代码层面开始找,比较有效率,服务器配置之类的改动毕竟比较少;错误日志需要仔细查看,往往兜兜转转找了一圈会发现
错误提示一开始就清晰地摆在面前.
下决定前多思考.
1 | lsb_release |
1 | LSB Version: :core-4.1-amd64:core-4.1-noarch |