# arcsoft-linux-go-web-fyne **Repository Path**: skymid/arcsoft-linux-go-web-fyne ## Basic Information - **Project Name**: arcsoft-linux-go-web-fyne - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-22 - **Last Updated**: 2023-11-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ---exsi server 172.26.37.210 /home/face -----0.99 172.26.37.201 /home/zb/test/arcsoft/face /home/zb/test/arcsoft/web (https://172.26.37.201:99/test/arcsoft/web/) -----jy 110.185.160.138 /home/wwwroot/default/arc ------M3 172.26.37.202 /home/500G/wwwroot/go_home/face /home/500G/wwwroot/go_home/face/web (https://172.26.37.202:99/go_home/face/web/) ------home C:\Users\Administrator\go_project\fyne\face ``` --zb ``` https://studygolang.com/dl wget https://studygolang.com/dl/golang/go1.19.5.linux-amd64.tar.gz tar -C /usr/local -zxvf go1.19.5.linux-amd64.tar.gz vi /etc/profile \# 在最后一行添加 export GOROOT=/usr/local/go export PATH=$PATH:$GOROOT/bin source /etc/profile go env -w GOPROXY=https://goproxy.cn,direct 基于虹软SDK V3 2023-01-29 库文件: Linux下将libarcsoft_face.so, libarcsoft_face_engine.so放入/usr/lib目录 Windows下将libarcsoft_face.dll, libarcsoft_face_engine.dll放入%WINDIR%/System32目录或执行文件同目录下 编译环境依赖GCC Linux环境下编译需要先安装gcc (libc-2.17.so) ll /lib64/libc.so.6 linux 打开文件数 too many open files 解决方法 https://blog.csdn.net/fdipzone/article/details/34588803 ``` ``` \------------------------- https://zhuanlan.zhihu.com/p/76751728 gin中使用jwt https://blog.csdn.net/weixin_43987921/article/details/119639309 Go-终端彩色输出 https://blog.csdn.net/DuLNode/article/details/125011173 安装包地址:https://golang.google.cn/dl/ wget https://dl.google.com/go/go1.19.linux-amd64.tar.gz tar -C /usr/local -xzf go1.19.linux-amd64.tar.gz 在文件末尾插入这一句 sudo vi ~/.bashrc export PATH=$PATH:/usr/local/go/bin 更新环境变量 source ~/.bashrc go version package main import "fmt" func main() { fmt.Println("Hello, World!") } package main表示一个可独立执行的程序, 每个 Go 应用程序都包含一个名为 main 的包 Go语言实战-nginx日志处理 https://blog.csdn.net/qq_36034503/article/details/123744071 /home/wwwlogs/log.go (0.99) \------------------------------------- Goland http://c.biancheng.net/view/6124.html https://www.jetbrains.com/go/download/#section=windows 此为全家桶永久破解补丁 https://www.lookdiv.com/index/index/indexcodeindex.html go env go env -w GO111MODULE=off http://c.biancheng.net/view/9.html 学习Go语言必备案例 (2) https://blog.csdn.net/cui_yonghua/article/details/91418995 Go语言中文网 https://studygolang.com/?p=3 -----------------docker go------------------------ ``` docker run --rm -it --name go-quan golang bash ``` ------------------go 编译的程序在Docker中运行!----------------------------------- https://blog.csdn.net/skh2015java/article/details/104048480 Alpine要求可执行文件必须是静态链接的可执行文件 所以在编译Golang时需要添加 -tags netgo ,来生成静态链接的可执行文件。 1、编译 go build -tags netgo -o main 2、--Dockerfile-- FROM alpine:latest RUN go env -w GOPROXY=https://goproxy.cn,direct RUN mkdir /app COPY main /app CMD ["/app/main"] 3、制作镜像 docker build -t mygo . 4、生成容器 docker run -p 8000:8000 mygo