跳转到内容

SRE笔记

  • 密码
    • 短链
  • 服务器
  • 关于

8 月 2021每月档案

golang redis连接池

package main import( “fmt” “github.com/garyburd/re… 继续阅读 golang redis连接池

  • 发表于: 2021-08-25 2021-08-25
  • 作者: sjx
  • 分类: SRE
  • 标签: go, golang, redis
  • 发表评论: golang redis连接池

Linux提高同时发起的NFS请求数量

echo “options sunrpc tcp_slot_table_entries=128” &… 继续阅读 Linux提高同时发起的NFS请求数量

  • 发表于: 2021-08-25 2021-08-25
  • 作者: sjx
  • 分类: SRE
  • 标签: bash, https, mount, nfs, tcp
  • 发表评论: Linux提高同时发起的NFS请求数量

mysql按表备份跳过分表

/opt/shells/bak_test_table.sh #!/bin/bash datastr=… 继续阅读 mysql按表备份跳过分表

  • 发表于: 2021-08-25 2021-08-25
  • 作者: sjx
  • 分类: SRE
  • 标签: MySQL
  • 发表评论: mysql按表备份跳过分表

shell ssh 同步文件

/opt/shells/test.sh #!/bin/bash LOCAL_DIR=/nas/bak… 继续阅读 shell ssh 同步文件

  • 发表于: 2021-08-25 2021-08-25
  • 作者: sjx
  • 分类: SRE
  • 标签: awk, bash, disk, shell, ssh
  • 发表评论: shell ssh 同步文件

mysql now()

SELECT NOW(),CURDATE(),CURTIME()

  • 发表于: 2021-08-25 2021-08-25
  • 作者: sjx
  • 分类: SRE
  • 标签: https, MySQL, sql
  • 发表评论: mysql now()

mysql按库备份

/opt/shells/bak_db09.sh #!/bin/bash datastr=/nfs_n… 继续阅读 mysql按库备份

  • 发表于: 2021-08-25 2021-08-25
  • 作者: sjx
  • 分类: SRE
  • 标签: bash, MySQL
  • 发表评论: mysql按库备份

go mod 基本操作

更新到最新版本 go get github.com/test/test 更新到版本 go get g… 继续阅读 go mod 基本操作

  • 发表于: 2021-08-25 2021-08-25
  • 作者: sjx
  • 分类: SRE
  • 标签: go
  • 发表评论: go mod 基本操作

gorm 模糊查询

puzzle := “%” + keyword + “%” DB.Select(“post.*”).… 继续阅读 gorm 模糊查询

  • 发表于: 2021-08-25 2021-08-25
  • 作者: sjx
  • 分类: SRE
  • 标签: go, gorm, https, post
  • 发表评论: gorm 模糊查询

shell参数倒序打印

  • 发表于: 2021-08-24 2021-08-24
  • 作者: sjx
  • 分类: SRE
  • 标签: https, oss, shell
  • 发表评论: shell参数倒序打印

golang UrlEncode/UrlDecode网址转码

package main import( “fmt” “net/url” ) func main()… 继续阅读 golang UrlEncode/UrlDecode网址转码

  • 发表于: 2021-08-24 2021-08-24
  • 作者: sjx
  • 分类: SRE
  • 标签: go, golang, html, https, oss
  • 发表评论: golang UrlEncode/UrlDecode网址转码

wordpress文章表字段

ID 记录文章的id post_author 记录发表文章的作者的id post_date date… 继续阅读 wordpress文章表字段

  • 发表于: 2021-08-24 2021-08-24
  • 作者: sjx
  • 分类: SRE
  • 标签: post, wordpress
  • 发表评论: wordpress文章表字段

Goland自动跳转到函数定义处

将光标定位在函数名处,按下Ctrl+B。Goland会自动跳转到xx类成员和函数的定义

  • 发表于: 2021-08-23 2021-08-23
  • 作者: sjx
  • 分类: SRE
  • 标签: https, oss
  • 发表评论: Goland自动跳转到函数定义处

Windows10重置密码

进PE环境,在NTPWEdit中选择用户清除。

  • 发表于: 2021-08-23 2021-08-23
  • 作者: sjx
  • 分类: SRE
  • 标签: https
  • 发表评论: Windows10重置密码

./lotus: /lib64/libm.so.6: version `GLIBC_2.27′ not found (required by ./lotus)

wget http://ftp.gnu.org/gnu/glibc/glibc-2.27.tar.g… 继续阅读 ./lotus: /lib64/libm.so.6: version `GLIBC_2.27′ not found (required by ./lotus)

  • 发表于: 2021-08-22 2021-08-22
  • 作者: sjx
  • 分类: SRE
  • 标签: bash, ftp, glibc, http, https, lotus, make, tar
  • 发表评论: ./lotus: /lib64/libm.so.6: version `GLIBC_2.27′ not found (required by ./lotus)

C:\ProgramData\Microsoft\Search\Data\Applications\Windows\windows.edb文件过大

控制面板-索引-高级-重建

  • 发表于: 2021-08-22 2021-08-22
  • 作者: sjx
  • 分类: SRE
  • 标签: https, windows
  • 发表评论: C:\ProgramData\Microsoft\Search\Data\Applications\Windows\windows.edb文件过大

LBT挖矿脚本

get_address.sh #!/bin/bash /usr/bin/expect <&lt… 继续阅读 LBT挖矿脚本

  • 发表于: 2021-08-22 2021-08-22
  • 作者: sjx
  • 分类: SRE
  • 标签: bash, expect, lbt
  • 发表评论: LBT挖矿脚本

crontab文件位置

ubuntu: echo “*/5 * * * * /opt/mining.sh” >>… 继续阅读 crontab文件位置

  • 发表于: 2021-08-22 2021-08-25
  • 作者: sjx
  • 分类: SRE
  • 标签: bash, centos, crontab, https, oss, ubuntu
  • 发表评论: crontab文件位置

shell数字运算

a=12 $((a-1))

  • 发表于: 2021-08-22 2021-08-22
  • 作者: sjx
  • 分类: SRE
  • 标签: bash, https, oss, shell
  • 发表评论: shell数字运算

EOF写文件

cat > /opt/test.sh <<EOF #!/bin/bash test… 继续阅读 EOF写文件

  • 发表于: 2021-08-22 2021-08-22
  • 作者: sjx
  • 分类: SRE
  • 标签: bash, https, oss
  • 发表评论: EOF写文件

kubernetes从文件创建secret

kubectl -n test create secret generic pay-key-alip… 继续阅读 kubernetes从文件创建secret

  • 发表于: 2021-08-21 2021-08-21
  • 作者: sjx
  • 分类: SRE
  • 标签: kubernetes
  • 发表评论: kubernetes从文件创建secret

分页

上一页 页码: 1 页码: 2 页码: 3 页码: 4 页码: 5 页码: 6 下一页

搜索

搜索:

近期评论

  • 周周 发表在《Kubernetes部署NextCloud网盘》
  • mysql m-s via gtid – SRE笔记 发表在《MySQL SET GTID_NEXT》
  • kangder 发表在《Kubernetes部署NextCloud网盘》
  • xs 发表在《Kubernetes部署NextCloud网盘》
  • test 发表在《gin不转义html标签》

标签

aws (15) bash (1123) Blockchain (28) centos (28) Docker (105) elasticsearch (26) eth (34) fil (39) go (129) golang (154) Grafana (13) hpc (15) http (299) https (1999) ingress (14) iptables (20) java (75) JVM (20) kubernetes (309) Linux (546) lotus (30) mongoDB (41) MySQL (184) nginx (112) php (25) python (148) redis (34) s3 (75) shell (20) springboot (32) tcp (69) tomcat (15) ubuntu (31) vue (18) windows (42) wordpress (14) zabbix (37) 夏小胖 (31) 安全 (55) 工具 (451) 折腾 (24) 推荐 (15) 硬件 (61) 网络 (246) 资源 (49)

归档

  • 2024 年 12 月
  • 2024 年 11 月
  • 2024 年 10 月
  • 2024 年 9 月
  • 2024 年 8 月
  • 2024 年 7 月
  • 2024 年 6 月
  • 2024 年 5 月
  • 2024 年 4 月
  • 2024 年 3 月
  • 2024 年 2 月
  • 2024 年 1 月
  • 2023 年 12 月
  • 2023 年 11 月
  • 2023 年 10 月
  • 2023 年 9 月
  • 2023 年 8 月
  • 2023 年 7 月
  • 2023 年 6 月
  • 2023 年 5 月
  • 2023 年 4 月
  • 2023 年 3 月
  • 2023 年 2 月
  • 2023 年 1 月
  • 2022 年 12 月
  • 2022 年 11 月
  • 2022 年 10 月
  • 2022 年 9 月
  • 2022 年 8 月
  • 2022 年 7 月
  • 2022 年 6 月
  • 2022 年 5 月
  • 2022 年 4 月
  • 2022 年 3 月
  • 2022 年 2 月
  • 2022 年 1 月
  • 2021 年 12 月
  • 2021 年 11 月
  • 2021 年 10 月
  • 2021 年 9 月
  • 2021 年 8 月
  • 2021 年 7 月
  • 2021 年 6 月
  • 2021 年 5 月
  • 2021 年 4 月
  • 2021 年 3 月
  • 2021 年 2 月
  • 2021 年 1 月
  • 2020 年 12 月
  • 2020 年 11 月
  • 2020 年 10 月
  • 2020 年 9 月
  • 2020 年 8 月
  • 2020 年 7 月
  • 2020 年 6 月
  • 2020 年 5 月
  • 2020 年 4 月
  • 2020 年 3 月
  • 2020 年 2 月
  • 2020 年 1 月
  • 2019 年 12 月
  • 2019 年 11 月
  • 2019 年 10 月
  • 2019 年 9 月
  • 2019 年 8 月
  • 2019 年 7 月
  • 2019 年 6 月
  • 2019 年 5 月
  • 2019 年 4 月
  • 2019 年 3 月
  • 2019 年 2 月
  • 2019 年 1 月
  • 2018 年 12 月
  • 2018 年 11 月
  • 2018 年 10 月
  • 2018 年 9 月
  • 2018 年 8 月
  • 2018 年 7 月
  • 2018 年 6 月
  • 2018 年 5 月
  • 2018 年 4 月
  • 2018 年 3 月
  • 2018 年 2 月
  • 2018 年 1 月
  • 2017 年 12 月
  • 2017 年 11 月
  • 2017 年 10 月
  • 2017 年 8 月
  • 2017 年 7 月
  • 2017 年 6 月
  • 2017 年 5 月
  • 2017 年 4 月
  • 2017 年 3 月
  • 2017 年 2 月
  • 2017 年 1 月
  • 2016 年 12 月
  • 2016 年 11 月
  • 2016 年 10 月
  • 2016 年 9 月
  • 2016 年 8 月
  • 2016 年 7 月
  • 2016 年 6 月
  • 2016 年 5 月
  • 2016 年 4 月
  • 2016 年 3 月
  • 2016 年 2 月
  • 2016 年 1 月
  • 2015 年 12 月
  • 2015 年 10 月
  • 2015 年 9 月
  • 2015 年 8 月
  • 2015 年 7 月
  • 2015 年 6 月
  • 2015 年 5 月
  • 2015 年 4 月
  • 2015 年 3 月
  • 2015 年 2 月
  • 2015 年 1 月
  • 2014 年 12 月
  • 2014 年 11 月
  • 2014 年 10 月
  • 2014 年 9 月
  • 2014 年 8 月
  • 2014 年 7 月
  • 2014 年 6 月
  • 2014 年 5 月
  • 2014 年 2 月