当前位置: 首页 > news >正文

珠宝网站制作的理念企业网站开发制作费入那里

珠宝网站制作的理念,企业网站开发制作费入那里,公司查询企业查询 天眼查,做美容仪器的网站本文作者#xff1a;徐晓伟 GitLab 是一个全球知名的一体化 DevOps 平台#xff0c;很多人都通过私有化部署 GitLab 来进行源代码托管。极狐GitLab 是 GitLab 在中国的发行版#xff0c;专门为中国程序员服务。可以一键式部署极狐GitLab。 本文主要讲述了如何在极狐GitLab … 本文作者徐晓伟 GitLab 是一个全球知名的一体化 DevOps 平台很多人都通过私有化部署 GitLab 来进行源代码托管。极狐GitLab 是 GitLab 在中国的发行版专门为中国程序员服务。可以一键式部署极狐GitLab。 本文主要讲述了如何在极狐GitLab 恢复 GitLab 历史备份数据 文档 恢复 极狐GitLab 安装实例 本实例数据恢复 如果当前 极狐GitLab 实例数据被误删、实例异常可通过历史备份进行数据恢复 记下数据库客户端的当前副本数供后续重启使用 # -n gitlab-test代表命名空间 # releasemy-gitlab代表 helm 安装 gitlab 时的名称 # -lappsidekiq代表 sidekiq-all-in-1-v2 Deployment默认 1 个副本 # -lappwebservice代表 webservice-default Deployment默认 2 个副本 # -lappprometheus代表 prometheus-server Deployment默认 1 个副本 kubectl -n gitlab-test get deploy -lappsidekiq,releasemy-gitlab -o jsonpath{.items[].spec.replicas}{\n} kubectl -n gitlab-test get deploy -lappwebservice,releasemy-gitlab -o jsonpath{.items[].spec.replicas}{\n} kubectl -n gitlab-test get deploy -lappprometheus,releasemy-gitlab -o jsonpath{.items[].spec.replicas}{\n}停止数据库的客户端防止锁干扰恢复过程 kubectl -n gitlab-test scale deploy -lappsidekiq,releasemy-gitlab --replicas0 kubectl -n gitlab-test scale deploy -lappwebservice,releasemy-gitlab --replicas0 kubectl -n gitlab-test scale deploy -lappprometheus,releasemy-gitlab --replicas0查看 Toolbox pod kubectl -n gitlab-test get pods -lreleasemy-gitlab,apptoolbox# manual-backup-1-xxx代表个人备份的 pod无需关注 # my-gitlab-toolbox-backup-xxx-xxx代表定时任务备份的 pod无需关注 # my-gitlab-toolbox-xxx-xxx代表 Toolbox pod 容器需要记录此名称用于后续使用 [rootanolis-7-9 ~]# kubectl -n gitlab-test get pods -lreleasemy-gitlab,apptoolbox NAME READY STATUS RESTARTS AGE manual-backup-1-9db78 0/1 Completed 0 46h my-gitlab-toolbox-5b7c4f8c6b-zccrv 1/1 Running 0 8m46s my-gitlab-toolbox-backup-28393980-f9m8h 0/1 Completed 0 3h3m [rootanolis-7-9 ~]# 直接使用备份数据的 URL 链接恢复数据推荐 备份数据目录 [rootanolis-7-9 ~]# ll -h /gitlab-test/my-gitlab-minio-pv/gitlab-backups/ total 11M -rw-rw-r-- 1 1000 1000 5.1M Dec 25 14:18 1703484999_2023_12_25_16.7.0-ee_gitlab_backup.tar -rw-r--r-- 1 1000 1000 5.1M Dec 27 09:38 1703640824_2023_12_27_16.7.0-ee_gitlab_backup.tar [rootanolis-7-9 ~]# 使用 httpd 创建静态资源服务 使用其他方式创建静态资源服务也可以 docker run \--restartalways \-itd \--privilegedtrue \--name 2.4.48 \-p 180:80 \-v /gitlab-test/my-gitlab-minio-pv/gitlab-backups/:/usr/local/apache2/htdocs/ \-v /etc/localtime:/etc/localtime \-d httpd:2.4.48查看静态资源 访问 httpd 使用静态资源 URL 恢复数据 kubectl -n gitlab-test exec my-gitlab-toolbox-5b7c4f8c6b-zccrv -it -- backup-utility --restore -f http://172.25.25.32:180/1703640824_2023_12_27_16.7.0-ee_gitlab_backup.tar成功示例 [rootanolis-7-9 ~]# kubectl -n gitlab-test exec my-gitlab-toolbox-5b7c4f8c6b-zccrv -it -- backup-utility --restore -f http://172.25.25.32:180/1703640824_2023_12_27_16.7.0-ee_gitlab_backup.tar Defaulted container toolbox out of: toolbox, certificates (init), configure (init) Downloading from http://172.25.25.32:180/1703640824_2023_12_27_16.7.0-ee_gitlab_backup.tar ############################################################################################################################################################ 100.0% Unpacking backup 2023-12-27 12:28:10 0800 -- Restoring database ... 2023-12-27 12:28:10 0800 -- Be sure to stop Puma, Sidekiq, and any other process that connects to the database before proceeding. For Omnibus installs, see the following link for more information: https://docs.gitlab.com/ee/raketasks/backup_restore.html#restore-for-omnibus-gitlab-installationsBefore restoring the database, we will remove all existing tables to avoid future upgrade problems. Be aware that if you have custom tables in the GitLab database these tables and all data will be removed. Do you want to continue (yes/no)? yes Removing all tables. Press Ctrl-C within 5 seconds to abort 2023-12-27 12:28:32 0800 -- Cleaning the database ... 2023-12-27 12:28:35 0800 -- done Restoring PostgreSQL database gitlabhq_production ... ERROR: must be owner of extension pg_trgm ERROR: must be owner of extension btree_gist ERROR: must be owner of extension pg_trgm SETset_config ------------ ... [DONE] Source backup for the database ci doesnt exist. Skipping the task 2023-12-27 12:28:53 0800 -- Restoring database ... done 2023-12-27 12:28:53 0800 -- Deleting backup and restore PID file ... done 2023-12-27 12:29:08 0800 -- Restoring repositories ... {command:restore,gl_project_path:xuxiaowei-com-cn.wiki,level:info,msg:started restore,pid:65,relative_path:groups/19/58/19581e27de7ced00ff1ce50b2047e7a567c76b1cbaebabe5ef03f7c3017bb5b7.wiki.git,storage_name:default,time:2023-12-27T04:29:08.837Z} ... 2023-12-27 12:29:09 0800 -- Restoring repositories ... done 2023-12-27 12:29:09 0800 -- Deleting backup and restore PID file ... done Restoring artifacts ... done Restoring packages ... Restoring pages ... [rootanolis-7-9 ~]# 恢复副本数量 使用上述命令记录的副本数进行副本恢复 kubectl -n gitlab-test scale deploy -lappsidekiq,releasemy-gitlab --replicas1 kubectl -n gitlab-test scale deploy -lappwebservice,releasemy-gitlab --replicas2 kubectl -n gitlab-test scale deploy -lappprometheus,releasemy-gitlab --replicas1复制备份数据到容器 Toolbox pod 内进行数据恢复不推荐 不推荐的原因如果备份数据过大例如超过 10G可能会存在没有复制完成的情况导致无法解压备份数据无法恢复 复制备份数据到容器 Toolbox pod 内 查看历史备份数据 [rootanolis-7-9 ~]# ll -h /gitlab-test/my-gitlab-minio-pv/gitlab-backups/ total 11M -rw-rw-r-- 1 1000 1000 5.1M Dec 25 14:18 1703484999_2023_12_25_16.7.0-ee_gitlab_backup.tar -rw-r--r-- 1 1000 1000 5.1M Dec 27 09:38 1703640824_2023_12_27_16.7.0-ee_gitlab_backup.tar [rootanolis-7-9 ~]# 复制到容器 Toolbox pod 内的 /srv/gitlab/tmp/backups 目录 [rootanolis-7-9 ~]# kubectl -n gitlab-test cp /gitlab-test/my-gitlab-minio-pv/gitlab-backups/1703640824_2023_12_27_16.7.0-ee_gitlab_backup.tar my-gitlab-toolbox-5b7c4f8c6b-zccrv:/srv/gitlab/tmp/backups Defaulted container toolbox out of: toolbox, certificates (init), configure (init) [rootanolis-7-9 ~]# [rootanolis-7-9 ~]# kubectl -n gitlab-test exec -it my-gitlab-toolbox-5b7c4f8c6b-zccrv ls /srv/gitlab/tmp/backups kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead. Defaulted container toolbox out of: toolbox, certificates (init), configure (init) 1703640824_2023_12_27_16.7.0-ee_gitlab_backup.tar gitlab-shell [rootanolis-7-9 ~]#恢复数据 使用 容器内  /srv/gitlab/tmp/backups 目录下的部分文件名 格式timestamp_version kubectl -n gitlab-test exec my-gitlab-toolbox-5b7c4f8c6b-zccrv -it -- backup-utility --restore -t 1703640824_2023_12_27_16.7.0-ee也可以使用 file:///path  指定文件路径绝对路径 kubectl -n gitlab-test exec my-gitlab-toolbox-5b7c4f8c6b-zccrv -it -- backup-utility --restore -t file:///home/git/1703640824_2023_12_27_16.7.0-ee_gitlab_backup.tar成功示例 [rootanolis-7-9 ~]# kubectl -n gitlab-test exec my-gitlab-toolbox-5b7c4f8c6b-zccrv -it -- backup-utility --restore -t 1703640824_2023_12_27_16.7.0-ee Unpacking backup 2023-12-27 12:38:22 0800 -- Restoring database ... 2023-12-27 12:38:22 0800 -- Be sure to stop Puma, Sidekiq, and any other process that connects to the database before proceeding. For Omnibus installs, see the following link for more information: https://docs.gitlab.com/ee/raketasks/backup_restore.html#restore-for-omnibus-gitlab-installationsBefore restoring the database, we will remove all existing tables to avoid future upgrade problems. Be aware that if you have custom tables in the GitLab database these tables and all data will be removed. Do you want to continue (yes/no)? yes Removing all tables. Press Ctrl-C within 5 seconds to abort 2023-12-27 12:41:21 0800 -- Cleaning the database ... 2023-12-27 12:41:23 0800 -- done Restoring PostgreSQL database gitlabhq_production ... ERROR: must be owner of extension pg_trgm ERROR: must be owner of extension btree_gist ERROR: must be owner of extension pg_trgm SETset_config ------------ ... [DONE] Source backup for the database ci doesnt exist. Skipping the task 2023-12-27 12:41:37 0800 -- Restoring database ... done 2023-12-27 12:41:37 0800 -- Deleting backup and restore PID file ... done 2023-12-27 12:41:52 0800 -- Restoring repositories ... {command:restore,gl_project_path:xuxiaowei-com-cn.wiki,level:info,msg:started restore,pid:236,relative_path:groups/19/58/19581e27de7ced00ff1ce50b2047e7a567c76b1cbaebabe5ef03f7c3017bb5b7.wiki.git,storage_name:default,time:2023-12-27T04:41:52.584Z} ... 2023-12-27 12:41:53 0800 -- Restoring repositories ... done 2023-12-27 12:41:53 0800 -- Deleting backup and restore PID file ... done Restoring artifacts ... done Restoring packages ... Restoring pages ... [rootanolis-7-9 ~]# 恢复副本数量 使用上述命令记录的副本数进行副本恢复 kubectl -n gitlab-test scale deploy -lappsidekiq,releasemy-gitlab --replicas1 kubectl -n gitlab-test scale deploy -lappwebservice,releasemy-gitlab --replicas2 kubectl -n gitlab-test scale deploy -lappprometheus,releasemy-gitlab --replicas1问题 自定义 toolbox Deployment hostAliases 问题 2023-12-27 11:48:42 0800 -- Restoring repositories ... done 2023-12-27 11:48:42 0800 -- Deleting backup and restore PID file ... done Restoring artifacts ... [Error] ERROR: [Errno -2] Name or service not known ERROR: Connection Error: Error resolving a server hostname. Please check the servers address specified in host_base, host_bucket, cloudfront_host, website_endpointsync existing of artifacts failed command terminated with exit code 1解决方案 kubectl -n gitlab-test edit deployments.apps my-gitlab-toolbox# 添加 MinIO 对象储存的 host 解析hostAliases:- hostnames:- minio.test.helm.xuxiaowei.cnip: 172.25.25.32信任 MinIO 对象储存域名证书 问题 Restoring artifacts ... [Error] ERROR: SSL certificate verification failure: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)sync existing of artifacts failed command terminated with exit code 1解决办法 kubectl -n gitlab-test edit deployments.apps my-gitlab-toolboxcontainers:# 不验证证书- args:- /bin/bash- -c- cp -v -r -L /etc/gitlab/.s3cfg $HOME/.s3cfg echo check_ssl_certificatefalse $HOME/.s3cfg while sleep 3600; do :; done号外号外 极狐GitLab 正在推出DevSecOps 成熟度测评链接https://gitlab.cn/devsecops-assessment/ 测评非常全面并提供了可靠建议即使不付费买产品对自己想要落地 DevSecOps 的用户具有很高的参考意义快来动手试试吧
http://www.hkea.cn/news/14540257/

相关文章:

  • 企业站官方网站平面设计好找工作不
  • 青岛网站seo收费设计说明书模板
  • 宜昌做网站公司有哪些方法2008iis7建立网站
  • 临安网站seo网站建设全网营销
  • 响应式企业网站开发所用的平台智云鸟网站建设
  • 网站域名的分类wordpress多站点好吗
  • 怀化三中网站angularjs 做的网站
  • 网站架构设计师是做什么的个人网站备案备注
  • 洪涛怎么样海城市建设网站e语言可以做网站吗
  • 北京网站建设公司什么软件推广比较赚钱
  • wordpress sportsline太原seo代理商
  • 动漫做暧视频在线观看网站查询别人用的wordpress主题
  • 邢台网络公司网站建设ppt制作模板与素材免费下载
  • 网站内链如何做优化网站建设分录
  • 地税局内网网站建设顺电网上商城app
  • 外网有趣的网站广东省农业农村厅电话
  • 快站科技成都的教育品牌网站建设
  • 湖南省做网站那个企业便宜东莞网站优化哪里找
  • 企业网站建设方案 word有没有给别人做图赚钱的网站
  • 上海市住房和城乡建设部网站网络运营者应当对其收集的用户信息严格保密
  • 专业的传媒行业网站开发做的比较好的二手交易网站有哪些
  • 建设文化产业网站的方案全国企业信用信息公示系统浙江
  • 商洛市住房和城乡建设局网站百度网页制作网站建设
  • 微网站建设报价方案电子商务平台自身提供的数据工具
  • 九江网站建设哪家好南宁3及分销网站制作
  • 网站开发工作职责遵义专业建站
  • 网站的内容有哪些内容搜狗推广开户费多少钱
  • 做网站的需求是吗齐家网装修公司口碑
  • 郑州市精神文明建设 网站明年做啥网站致富
  • wordpress 启用gzip压缩荆门seo