摘要: USE [master] GO ALTER DATABASE 数据库名称 SET RECOVERY SIMPLE WITH NO_WAIT GO ALTER DATABASE 数据库名称 SET RECOVERY SIMPLE --简单模式 GO USE 数据库名称 指定需要清除日志的数据库名称 G 阅读全文
posted @ 2023-05-30 14:54 七星飘虫 阅读(11) 评论(0) 推荐(0)
摘要: 1.查询服务器中大于1G的文件find / -type f -size +1G 2.查找大于800M的文件find / -size +800M -ls 阅读全文
posted @ 2023-05-30 14:35 七星飘虫 阅读(115) 评论(0) 推荐(0)
摘要: git add -f src/views/system/log 阅读全文
posted @ 2023-05-16 11:09 七星飘虫 阅读(14) 评论(0) 推荐(0)
摘要: --查看所有标答 git tag --打标签 git tag -a v1.0.0.1 -m "my version v1.0.0.1" --提交标签到远程服务器 git push origin v1.0.0.1 --一次推送所有标签 git push origin --tags --删除本地标签 g 阅读全文
posted @ 2023-05-15 10:35 七星飘虫 阅读(15) 评论(0) 推荐(0)
摘要: declare @str nvarchar(50); set @str='462,464,2'; select @str as '字符串' select len(@str) as '字符长度' select charindex(',',@str,1) as '第一个逗号的索引值' select LE 阅读全文
posted @ 2023-05-06 10:18 七星飘虫 阅读(203) 评论(0) 推荐(0)
摘要: docker run -d --name my-mysql -e MYSQL_ROOT_PASSWORD=my-password -p 3306:3306 -v /path/to/mysql-data:/var/lib/mysql mysql:8.0 阅读全文
posted @ 2023-04-20 10:09 七星飘虫 阅读(9) 评论(0) 推荐(0)
摘要: 1.先执行 git fetch 2.再执行 git checkout 分支名 查看所有本地分支 git branch 查看所有远程分支 git branch -r 查看远程分支和本地分支的关联关系的命令 git remote show origin 命令解析 git remote show orig 阅读全文
posted @ 2023-04-03 16:54 七星飘虫 阅读(2880) 评论(0) 推荐(0)
摘要: #查看所有组 cat /etc/group #加入到root组中 sudo usermod -aG root jenkins #加入到docker组中 sudo usermod -aG docker jenkins #查看用户所在组信息 groups jenkins #重启jenkins使其生效 s 阅读全文
posted @ 2023-03-31 17:52 七星飘虫 阅读(71) 评论(0) 推荐(0)
摘要: 新建build->installer.nsh !macro customInstall # 写入注册表项 WriteRegStr HKLM "Software\目录" "键" "$INSTDIR\aaa.exe" !macroend !macro customUnInstall # 卸载程序时删除注 阅读全文
posted @ 2023-03-31 10:02 七星飘虫 阅读(167) 评论(0) 推荐(0)
摘要: stop_container_count=$(docker ps -a | grep "Exited" | awk '{print $1 }' | wc -l ); \ if [ $stop_container_count -gt 0 ] ; \ then \ docker stop $(docke 阅读全文
posted @ 2023-03-31 09:58 七星飘虫 阅读(26) 评论(0) 推荐(0)