[Open source sharing] The source code of the online customer service system supports sending text emoticons, uploading pictures and attaching detailed building tutorials...

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

image.png

Find the installation package for windows, msi is fine, so the next step is to directly configure the environment variables

image.png


Enter go version
go env in cmd
to see that the installation is successfulimage.png

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

Guess you like

Origin blog.csdn.net/taoshihan/article/details/131607481