首页
Search
1
v2ray异常错误之二
3,310 阅读
2
linux时区设置
2,698 阅读
3
DB2常用操作
2,173 阅读
4
websphere修改jvm内存xmx和xms
1,929 阅读
5
nfs客户端文件属主为nobody的现象
1,552 阅读
技术
生活
运动
游戏
电影
登录
Search
标签搜索
docker
linux
troubleshooting
nginx
secure
truenas
mysql
windows
python
esxi
docker swarm
oracle
zabbix
tomcat
blog
dsm
群晖
rpa
freenas
db
yuc
累计撰写
291
篇文章
累计收到
0
条评论
首页
栏目
技术
生活
运动
游戏
电影
页面
搜索到
289
篇与
的结果
2023-08-24
gitlab-runner/gitlab-ci的使用
0x1 优点 gitlab-runner、gitlab-ci能够主动触发任务。比如当某个分支的代码更新的时候自动触发任务,然后远程机器更新代码、编译,发布到站点。这样的话可以减少很多人工的资源更新站点。 0x2 安装部署 主要有以下步骤: 远程机器安装 gitlab-runner ,用于 gitlab 服务器指定分支提交任务后能够触发此机器 远程机器准备脚本,用于被调用后更新代码、编译、发布到站点,例如示例脚本: # 大概的步骤就是拉取指定分支代码、编译、发布到web服务器 #!/bin/bash # . /etc/profile . ~/.bash_profile set -x deploy_path="/data/www" if [ ! -d "/data/www/.git" ];then git clone git@gitlab.succez.com:product/www.git $deploy_path else cd $deploy_path git pull [ ! -d /data/www1 ] && mkdir -pv /data/www1 /usr/local/bin/npm run compile fi 在 gitlab 仓库中,代码目录下增加文件 .gitlab-ci.yml,内容示例如下: stages: - deploy deploy: stage: deploy script: - /home/gitlab-runner/bin/deploy_new only: - dev@product/www tags: - only_dev 具体参数的含义可以找到 gitlab-ci或者 gitlab-runner 文档查看,这里的意思大概是仅 dev 分支有更新才会出发编译,其他情况则不会 依次在此仓库中找到设置-> CI/CD -> Runner 找到注册地址和注册令牌,然后到远程机器上注册此仓库 到远程机器上执行命令 gitlab-runner register 然后根据提示注册到 gitlab 仓库上 回到 gitlab 仓库 runner 页面,即可看到注册上来的远程机器 gitlab-runner ,需要状态图片是绿色表示在线 至此,我们提交一个此分支的任务,即可在 CI/CD -> 流水线 中看到任务的执行了,后续也可以通过这里排查编译错误等
2023年08月24日
5 阅读
0 评论
0 点赞
2023-08-24
maven/mvn国内源
0x1 在使用 mvn 的时候,下载依赖包过慢,可以确定是访问了国外的源,这里切换到国内的源 更换maven的配置文件$MAVEN_HOME/conf/settings.xml <?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <mirrors> <!-- 阿里云仓库 --> <mirror> <id>alimaven</id> <mirrorOf>central</mirrorOf> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/repositories/central/</url> </mirror> <!-- 中央仓库1 --> <mirror> <id>repo1</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://repo1.maven.org/maven2/</url> </mirror> <!-- 中央仓库2 --> <mirror> <id>repo2</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://repo2.maven.org/maven2/</url> </mirror> </mirrors> </settings>
2023年08月24日
432 阅读
0 评论
0 点赞
2023-08-24
windows开启用户多会话多次登录的问题
0x1 开启多用户登录后,同一个用户退出再次登录会使用新的会话,之前操作的内容没有办法继续了,这样不能保持会话很难受。经过检索可以通过以下办法解决: 运行gpedit.msc打开本地组策略编辑器 计算机配置>管理模板>WINDOWS组件>远程桌面服务>远程桌面会话主机>连接 将后后一项:将远程桌面服务用户限制到单独的远程桌面服务会话 启用
2023年08月24日
4 阅读
0 评论
0 点赞
2023-08-24
mongodb基本
0x 基本操作 db.createUser({user: "root", pwd: "xxxxx@2022", roles: [ { role: "root", db:"admin"}]}); db.createUser({user: "rasp", pwd: "Rasp_20200714", roles: [ { role: "readWrite", db:"openrasp"}]});
2023年08月24日
5 阅读
0 评论
0 点赞
2023-08-24
tidb压测
0x1 tpcc 导入一亿数据,其中最大表是10w,实际最大数据量:最大表 x warehouses的值 tiup bench tpcc -H 192.168.10.150 -P 4000 -p xxx -D tpcc --warehouses 1000 prepare 导入1千万数据, warehouses 设置 100 即可 tiup bench tpcc -H 192.168.10.150 -P 4000 -p xxx -D tpcc_1000 --warehouses 100 prepare 压测影响因素: 线程数、分区表 0x2 tpch 前置配置: set @@tidb_isolation_read_engines='tiflash'; set @@tidb_allow_mpp=1; set @@tidb_mem_quota_query = 10 << 30; # 不开启的话并行导入会有问题 SET GLOBAL tidb_multi_statement_mode='ON'; 导入数据 tiup bench tpch -H 192.168.10.150 -P 4000 -p 'xxx' -D tpch_1000 --dropdata --sf=4 --analyze --tiflash prepare 查询表flash同步状态 SELECT * FROM information_schema.tiflash_replica WHERE TABLE_SCHEMA = 'tpch_1000' and TABLE_NAME = 'lineitem' 测试 tiup bench tpch -H 192.168.10.150 -P 4000 -p 'xxx' -D tpch_1000 --sf 10 --time 1800s -T 64 run
2023年08月24日
2 阅读
0 评论
0 点赞
1
...
33
34
35
...
58