上一页 1 2 3 4 5 6 7 ··· 15 下一页
摘要: vim /etc/ssh/sshd_config 输入: /PermitRootLogin 查找 按 i 进入insert模式 改为 PermitRootLogin yes 输入::wq 保存 重启ssh服务 /etc/init.d/ssh restart 阅读全文
posted @ 2023-02-18 15:22 张永峰z 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 1.查看ip配置 最好先获取root权限(不获取也无所谓) sudo su 查看网关 route -n 我这里是网关是:192.168.205.2 查看IP ifconfig 没有的话,安装一下:sudo apt install net-tolls 2.设置IP cd /etc/netplan vi 阅读全文
posted @ 2023-02-18 14:09 张永峰z 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 1.下载 点击下载 这里教程是2022.2.4,选择对应版本 2.安装 安装路径选择自己想要放的地方就好(不要放在中文路径中) 然后打开软件,先不要点击任何地方 3.破解 百度云链接:https://pan.baidu.com/s/1sqjlLUmbRqOkizQQOOYKSQ 提取码:peeu 打 阅读全文
posted @ 2023-02-16 17:36 张永峰z 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 代码 func bubblingSort() { numSlice := []int{100, 32, 56, 2, 12, 64, 76} fmt.Println("1 numSlice is", numSlice) //1 numSlice is [100 32 56 2 12 64 76] f 阅读全文
posted @ 2021-12-16 16:44 张永峰z 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 代码 package queue import "fmt" type Queue struct { Array []int Head int Rear int Capacity int } func NewQueue(capacity int) *Queue { return &Queue{ Hea 阅读全文
posted @ 2021-12-16 16:34 张永峰z 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 代码 package pubsub import ( "sync" "time" ) type ( subscriber chan interface{} // 订阅者管道 topicFunc func(v interface{}) bool // 主题过滤器 ) // 发布者对象 type Pub 阅读全文
posted @ 2021-12-16 16:33 张永峰z 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 代码 package calc import "fmt" type Number struct { Val int } const ( testConst1 = iota testConst2 testConst3 ) // 定义要使用的方法 type funcTest func(n int) *N 阅读全文
posted @ 2021-12-16 16:32 张永峰z 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 代码 func QuickSort(arr []int) []int { if len(arr) <= 1 { return arr } splitData := arr[0] //第一个数据 low := make([]int, 0, 0) //比我小的数据 height := make([]in 阅读全文
posted @ 2021-12-16 16:27 张永峰z 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 下载 地址:https://golang.google.cn/dl/ wget https://golang.google.cn/dl/go1.16.7.linux-amd64.tar.gz 解压(需要root权限) tar -C /usr/local -xzf go1.16.7.linux-amd 阅读全文
posted @ 2021-08-10 10:33 张永峰z 阅读(443) 评论(0) 推荐(0) 编辑
摘要: 整形 类型符号范围 uint8 无 0 到 255 uint16 无 0 到 65535 uint32 无 0 到 4294967295 uint64 无 0 到 18446744073709551615 uint 无 32位操作系统上就是uint32,64位操作系统上就是uint64 int8 有 阅读全文
posted @ 2021-08-09 14:35 张永峰z 阅读(102) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 15 下一页