[推荐]其他网站链接

发表于 随笔 分类,标签:
leiuk.comshilei.dezhyao.cnzhhou.com(智猴)zhque.com(知雀,智雀)zhzho.com(知洲,智洲)联系微信:18500177779联系邮箱:sviw@outlook.com...

[推荐]93.工具库

发表于 随笔 分类,标签:
1.配音鹅app,配音工具2.闪豆下载器,视频下载工具3.ev录屏,录屏工具4.aewz.com,视频素材下载5.比剪,剪映,视频剪辑工具6.蚁小二,视频分发工具7.梅花网,文案狗,文案工具8.photopea,在线ps工具9.爱给网,音频下载工具10.https://www.67tool.com,在线工具箱11.https://replicate.com/sczhou/codeformer,模糊图片修复12.https://modelscope.cn...

105.ubuntu常用工具安装

发表于 linux 分类,标签:
启动dockerdocker run -dit -v /data/countly:/usr/local/src --name countly ubuntu升级 apt-get update安装updateapt-get install openssh-server安装gccsudo apt install build-essential 安装procps包 psapt-get install procps安装其他apt-get install vimapt-get install net-toolsap...

104.使无进程docker容器保持运行

发表于 linux 分类,标签:
docker容器无进程启动docker run -i -t c1717d73fd69 /bin/bashk8s中添加循环使容器保持运行image: k8s-jingxiang-registry.cn-hangzhou.cr.aliyuncs.com/yaozh.com/nullpython3:v2name: pod-predictimagePullPolicy: IfNotPresentcommand: [ "/bin/sh", "-c", "--" ]args: [ "while true; do sleep 30;...

103.将ip段写入到redis白名单

发表于 mysql 分类,标签:
import redis# Redis连接信息redis_host = 'hostname'redis_port = 6379redis_password = 'passwd'redis_db = 5  # 选择数据库5# 连接到Redis服务器redis_client = redis.StrictRedis(    host=redis_host, port=redis_port, password=redis_password, db=redis_db, decode_respo...

102.git常用命令

发表于 linux 分类,标签:
#从本地push代码到仓库git add --allgit commit -m  "tkm2"git push --set-upstream origin develop#强制更新git fetch --allgit checkout -b master origin/mastergit reset --hard origin/mastergit pull origin master#查看分支git branch -a#切换分支git checkout m...

101.删除redis中whiteKey开头的值

发表于 mysql 分类,标签:
import redis# Redis连接信息redis_host = 'hostname'redis_port = 6379redis_password = 'passwd'redis_db = 5  # 选择数据库5# 连接到Redis服务器redis_client = redis.StrictRedis(    host=redis_host, port=redis_port, password=redis_password, db=redis_db, decode_respo...

100.redis批量写入ip地址脚本

发表于 mysql 分类,标签:
#要使用Python脚本连接到Redis主机、选择数据库、并执行设置操作,你可以使用redis库。请确保在运行脚本之前安装了该库(可以通过运行pip install redis安装)。import redisimport re# Redis连接信息redis_host = 'hostname'redis_port = 6379redis_password = 'passwd'redis_db = 5  # 选择数据库5# 读取文本文件中的IP地址file_path = '1.txt'  #...

99.docker备份脚本

发表于 linux 分类,标签:
#!/bin/bashsource /etc/profilesource ~/.bash_profileset -o nounsetfile=`date "+%Y_%m_%d" -d "1 day ago"`docker cp confluence:/var/atlassian/confluence/backups/backup-"$file".zip /confluenceback/docker exec confluence /bin/bash -c 'find /var/atlassian/confluence/ba...

98.linux虚拟机忘记密码

发表于 linux 分类,标签:
1.进入编辑模式,开机后按E键,进入编辑模式后,找到LANG=zh_CN.UTF-8,在末尾加上init=/bin/sh2.挂载根目录mount -o rw,remount /3.选择修改的用户的密码passwd root输入两次密码4.关闭虚拟机的SELINUX安全机制vim etc/selinux/configSELINUX=disabled5.在根目录下创建一个隐藏文件,让修改的密码生效touch /.autorelabel6.重启系统exec /sbin/init...

97.redis5安装

发表于 mysql 分类,标签:
1.依赖包安装yum -y install cpp binutils glibc glibc-kernheaders glibc-common glibc-devel gcc make gcc-c++ libstdc++-devel tcl2.安装包准备官网https://redis.io下载最新版rediswget http://download.redis.io/releases/redis-4.0.14.tar.gztar -zxvf redis-5.0.14.tar.gz3.编译安装mv redis-5.0.14 rediscd redismakemake...

96.简单的备份脚本

发表于 linux 分类,标签:
#!/bin/bashcd /data/wwwroot/www_backtar -zcvf leiuk.com_`date +%Y%m%d%H%M`.tar.gz /data/wwwroot/leiuk.comfind /data/wwwroot/www_back -type f -mtime +30 -name "*.tar.gz" -exec rm -f {} \;scp -P 10260 ./leiuk.com_`date +%Y%m%d%H%M`.tar.gz root@hostname:/home/lei/www_back...