摘要: 1、gitlab-rails console production 命令 开始初始化密码 2、在irb(main):001:0> 后面通过 u=User.where(id:1).first 来查找与切换账号(User.all 可以查看所有用户) 3、通过u.password='12345678'设置 阅读全文
posted @ 2022-02-21 16:32 0胡桃夹子0 阅读(692) 评论(0) 推荐(0) 编辑
摘要: 一、打开gitlab相关配置项 vim /etc/gitlab/gitlab.rb gitlab_shell['custom_hooks_dir'] = "/etc/gitlab/custom_hooks" 二、创建相关文件夹 mkdir -p /etc/gitlab/custom_hooks mk 阅读全文
posted @ 2022-02-21 15:50 0胡桃夹子0 阅读(727) 评论(0) 推荐(0) 编辑
摘要: 公司搭建的gitlab服务器发生迁移,域名也变了。迁移以后原来比较乱的目录结构重新整理一下。所以不能一下子把全部项目拷贝过来。需要一个个拷贝。每个项目迁移都要做以下两个步骤比较简单,其中git地址有两种一种是ssh的地址,一种是http的地址。我们使用http的地址。步骤一:从旧的gitlab服务器 阅读全文
posted @ 2022-02-21 15:31 0胡桃夹子0 阅读(653) 评论(0) 推荐(0) 编辑
摘要: 分步指南 在本机生成秘钥文件并查看公钥 复制秘钥信息填写进web服务端 点击提交之后再次下载仓库信息 第一步:在本机生成秘钥文件并查看公钥 [root@ken webss]# ssh-keygen [root@ken webss]# cat /root/.ssh/id_rsa.pub ssh-rsa 阅读全文
posted @ 2022-02-21 15:18 0胡桃夹子0 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 1、maven的setting.xml配置文件 <mirror> <id>fsc-central</id> <mirrorOf>external:*</mirrorOf> <name>jin ke zhong yang ku</name> <url>https://nexus.xxx.com/rep 阅读全文
posted @ 2022-02-21 14:56 0胡桃夹子0 阅读(407) 评论(0) 推荐(0) 编辑
摘要: Centos7中默认将原来的防火墙iptables升级为了firewalld,firewalld跟iptables比起来至少有两大好处: 1、firewalld可以动态修改单条规则,而不需要像iptables那样,在修改了规则后必须得全部刷新才可以生效; 2、firewalld在使用上要比iptab 阅读全文
posted @ 2022-02-21 14:51 0胡桃夹子0 阅读(1682) 评论(0) 推荐(0) 编辑
摘要: 1、清理本地已经停止的所有容器 docker rm $(docker ps -a |awk '{print $1}') 2、清理本地none镜像 docker rmi $(docker images | grep "none" | awk '{print $3}') 3、Docker从后台启动 do 阅读全文
posted @ 2022-02-21 14:32 0胡桃夹子0 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 1、Npm代理设置 npm config set registry "https://nexus.ft.cntaiping.com/repository/npm_mirror/" 默认的npm镜像地址不可直接使用。提示connect timeout。必须设置为公司npm镜像库。 2、移动端设置 设置 阅读全文
posted @ 2022-02-21 10:51 0胡桃夹子0 阅读(980) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/weixin_43609618/article/details/100120027 1、首先要下载安装node.js(下载地址:https://nodejs.org/en/) 2、配置npm仓库地址npm config -g set registry 阅读全文
posted @ 2022-02-21 10:39 0胡桃夹子0 阅读(1793) 评论(0) 推荐(0) 编辑
摘要: 一、进入nexus的安装目录下,关闭应用: cd /tpsys/nexus-3.28.1-01 /tpsys/nexus-3.28.1-01/bin/nexus stop 二、进入OrientDB控制台 cd /tpsys/nexus-3.28.1-01/lib/support/ linux: ja 阅读全文
posted @ 2022-02-21 10:32 0胡桃夹子0 阅读(1427) 评论(0) 推荐(0) 编辑
摘要: https://confluence.atlassian.com/conf66/restore-passwords-to-recover-admin-user-rights-943962413.html如果您无法以管理员身份登录Confluence(例如,您丢失了管理员密码),则可以以恢复模式启动C 阅读全文
posted @ 2022-02-21 10:29 0胡桃夹子0 阅读(806) 评论(0) 推荐(0) 编辑
摘要: 方法一: 参考https://confluence.atlassian.com/confkb/how-to-enable-user-access-logging-182943.html 在confluence/WEB-INF/web.xml删除注释,并修改 <filter-mapping> <fil 阅读全文
posted @ 2022-02-21 10:25 0胡桃夹子0 阅读(663) 评论(0) 推荐(0) 编辑
摘要: 1、停止confluence $confluence_home/bin/stop-confluence.sh 2、备份数据库 confluence-db mysqldump --max_allowed_packet=512M -h mysql_host -uconfluencedb_user -p 阅读全文
posted @ 2022-02-21 09:48 0胡桃夹子0 阅读(475) 评论(0) 推荐(0) 编辑