Source code introduction
The single-user online customer service system developed by golang has very simple and practical functions without redundant functions. The golang language can be compiled into a binary program with its own daemon function, which is more stable than the most widely circulated PHP customer service system
Environment configuration
Server: either linux or windows
golang operating environment
MySQL
Nginx
Configure the Golang environment
Windows system
First download the golang compressed package, download https://studygolang.com/dl at the following address
Find the installation package for windows, msi is fine, so the next step is to directly configure the environment variables
Enter go version
go env in cmd
to see that the installation is successful
Linux
Execute these commands according to what I wrote, and you can build the latest golang operating environment
wget https://studygolang.com/dl/golang/go1.20.2.linux-amd64.tar.gz
tar -C /usr/local -xvf go1.20.2.linux-amd64.tar.gz
mv go1.20.2.linux-amd64.tar.gz /tmp
echo "PATH=\$PATH:/usr/local/go/bin" >> /etc/profile
echo "PATH=\$PATH:/usr/local/go/bin" >> ~/.bashrc
source /etc/profile
go version
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
Download program source code
If you have a git environment, you can directly use the git clone warehouse to the local directory
You can also directly access the warehouse address and download the compressed package manually
https://gitee.com/taoshihan/go-fly
import database
go run go-fly.go install
Compile the binary program
Source code packaging go build -o kefu will generate kefu executable files
The binary runs
linux: ./kefu server [optional -p 8082 -d]
windows: kefu.exe server [optional -p 8082 -d]
visit website
http:// IP address: 8081