![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
github.com/winlion/chat
本系统升级到golang1.12,请开启如下支持
#开启go mod支持
export GO111MODULE=on
#使用代理
export GOPROXY=https://goproxy.io
git clone https://github.com/winlion/chat.git
修改service/init.go 中数据库配置文件
const (
driveName = "mysql" //数据库类型,不要动
dsName = "root:root@(127.0.0.1:3306)/tech-chat?charset=utf8" //tech-chat是数据库名称,请先创建
showSQL = true //是否显示sql语句
maxCon = 10 //最大连接数
NONERROR = "noerror" //一个字符串标记常量
)
为你自己的数据库以及密码,格式如下
用户名:密码@(ip:port)/数据库名称?charset=utf8
修改ctrl/chat.go 179行左右
func udpsendproc() {
log.Println("start udpsendproc")
//todo 使用udp协议拨号
con, err := net.DialUDP("udp", nil,
&net.UDPAddr{
IP: net.IPv4(192, 168, 0, 255),
Port: 3000,
})
//....
}
其中IP:net.IPv4(192, 168, 0, 255)
, 改为你当前应用所在服务器的子网掩码,
举个简单一点的例子,比如当前应用所安装环境是192.168.2.106
,则需要修改参数为net.IPv4(192, 168, 2, 255)
Port: 3000
为通信端口。本系统依赖于UPD进行分布式部署。因此需要在防火墙内开放该端口。
本系统支持分布式部署,要求是将当前应用部署在同一个网段中。代码修改同2.3
http://127.0.0.1:8080/user/login.shtml
使用go mod 自动处理安装包
关注如下公众号找到im系统10万并发
认真阅读
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.