摘要: 查看根分区大小 df -h 文件系统 类型 容量 已用 可用 已用% 挂载点 /dev/mapper/centos-root xfs 18G 1.1G 17G 6% / devtmpfs devtmpfs 479M 0 479M 0% /dev tmpfs tmpfs 489M 0 489M 0% 阅读全文
posted @ 2021-10-13 17:28 Silent-Cxl 阅读(286) 评论(0) 推荐(0)
摘要: # 1. 文件夹从暂存区中删除 git rm -r --cached file1 file2 file3... # 2. 提交修改 git commit -m '....' # 3. 推送 git push origin master 阅读全文
posted @ 2021-08-31 14:08 Silent-Cxl 阅读(111) 评论(0) 推荐(0)
摘要: package validator_web import ( "errors" "github.com/gin-gonic/gin/binding" "github.com/go-playground/locales/en" "github.com/go-playground/locales/zh" 阅读全文
posted @ 2021-08-24 18:19 Silent-Cxl 阅读(553) 评论(0) 推荐(1)
摘要: 时间字段的结构体使用 LocalTime 类型即可 package tool import ( "database/sql/driver" "fmt" "goskeleton/app/global/variable" "time" ) type LocalTime struct { time.Tim 阅读全文
posted @ 2021-08-24 13:42 Silent-Cxl 阅读(62) 评论(0) 推荐(0)
摘要: 入门 GO,where 条件组装 import ( "fmt" "strings" ) type WhereQuery struct { Filter bool QuerySql string // where sql Queries []string // where 条件 QueryParams 阅读全文
posted @ 2021-08-24 11:45 Silent-Cxl 阅读(133) 评论(0) 推荐(0)
摘要: package log import ( "bufio" "fmt" "io" "os" "regexp" "strconv" "strings" "time" ) var ( filepath = "./d.log" insertNum = 0 ) type Commands struct { L 阅读全文
posted @ 2021-08-16 10:25 Silent-Cxl 阅读(494) 评论(0) 推荐(0)
摘要: class LogRewrite { protected $logDir = "./"; protected $idxFile = "./idx"; protected $writeIp = "0.0.0.0"; // 要修复的日期 protected $d; // 日期匹配 protected $ 阅读全文
posted @ 2021-07-29 14:03 Silent-Cxl 阅读(75) 评论(0) 推荐(0)
摘要: **ubuntu 文件位置:/etc/network/interfaces,centos 文件位置: /etc/sysconfig/network-scripts/ifcfg-enp0s3 ** 系统版本:ubuntu-16.04.7-server-amd64 # This file describ 阅读全文
posted @ 2021-07-26 14:00 Silent-Cxl 阅读(63) 评论(0) 推荐(0)
摘要: docker-compose 的安装 主机系统:win10 下 virtualbox 虚拟机的 ubuntu16.04 系统 # 依次执行命令 [sudo] curl -L "https://github.com/docker/compose/releases/download/1.29.2/doc 阅读全文
posted @ 2021-07-15 17:09 Silent-Cxl 阅读(44) 评论(0) 推荐(0)
摘要: nginx 配置,其他部分省略... # 文件位置 /usr/local/nginx/conf/vhost/ 可能因安装位置而不同 # 配置文件 xxxx.conf location ~ .*\.(php|php5)?$ { fastcgi_pass unix:/tmp/php70-fpm.sock 阅读全文
posted @ 2021-07-08 17:56 Silent-Cxl 阅读(240) 评论(0) 推荐(0)