会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Silent-Cxl
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2021年10月13日
虚拟机扩容(/dev/mapper/centos-root 空间不足)
摘要: 查看根分区大小 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)
2021年8月31日
git已推送远程仓库的文件忽略
摘要: # 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)
2021年8月24日
gin验证器使用中文返回
摘要: 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)
go时间字段格式化返回
摘要: 时间字段的结构体使用 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条件
摘要: 入门 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)
2021年8月16日
记录 golang 读取打日志文件(27G)
摘要: 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)
2021年7月29日
PHP读大文件日志(27G)
摘要: 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)
2021年7月26日
本地虚拟机网络配置
摘要: **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)
2021年7月15日
docker-compose初体验
摘要: 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)
2021年7月8日
ubuntu16.04中使用php-fpm的sock模式
摘要: 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)
上一页
1
2
3
下一页
公告