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

做网站设计用到的软件做百度网站一年多少钱

做网站设计用到的软件,做百度网站一年多少钱,山西焦煤集团公司网站,自己做的网站如何在百度被搜索到GitLab 是一个全球知名的一体化 DevOps 平台,很多人都通过私有化部署 GitLab 来进行源代码托管。极狐GitLab :https://gitlab.cn/install?channelcontent&utm_sourcecsdn 是 GitLab 在中国的发行版,专门为中国程序员服务。可以一键式部署…

GitLab 是一个全球知名的一体化 DevOps 平台,很多人都通过私有化部署 GitLab 来进行源代码托管。极狐GitLab :https://gitlab.cn/install?channel=content&utm_source=csdn 是 GitLab 在中国的发行版,专门为中国程序员服务。可以一键式部署极狐GitLab。

极狐GitLab 在 5 月 28 日正式发布了 AI 产品驭码CodeRider。现已开启免费试用,登录官网:https://coderider.gitlab.cn/ 即可申请试用。

更多关于极狐GitLab :https://gitlab.cn 或者 DevOps 的最佳实践,可以关注文末的极狐GitLab 公众号。

学习极狐GitLab 的相关资料:

  1. 极狐GitLab 官网:https://gitlab.cn
  2. 极狐GitLab 官网文档:https://docs.gitlab.cn
  3. 极狐GitLab 论坛:https://forum.gitlab.cn/
  4. 极狐GitLab 安装配置:https://gitlab.cn/install
  5. 极狐GitLab 资源中心:https://resources.gitlab.cn/
  6. AI 产品驭码CodeRider:https://coderider.gitlab.cn/

搜索【极狐GitLab】公众号,后台输入加群,备注gitlab,即可加入官方微信技术交流群。

此页面包含有关在私有化部署实例中配置 Git LFS 的信息。
有关 Git LFS 的用户文档,请参阅 Git 大文件存储。
先决条件:

  • 用户需要安装 Git LFS 客户端 1.0.1 或更高版本。

启用或禁用 LFS

默认情况下启用 LFS。要禁用它:

Omnibus

  1. 编辑 /etc/gitlab/gitlab.rb
# Change to true to enable lfs - enabled by default if not defined
gitlab_rails['lfs_enabled'] = false
  1. 保存文件并重新配置极狐GitLab:
sudo gitlab-ctl reconfigure

Kubernetes

  1. 导出 Helm 值:
helm get values gitlab > gitlab_values.yaml
  1. 编辑 gitlab_values.yaml
global:appConfig:lfs:enabled: false
  1. 保存文件并应用新值:
helm upgrade -f gitlab_values.yaml gitlab gitlab/gitlab

Docker

  1. 编辑 docker-compose.yml
version: "3.6"
services:gitlab:environment:GITLAB_OMNIBUS_CONFIG: |gitlab_rails['lfs_enabled'] = false
  1. 保存文件并重启极狐GitLab:
docker compose up -d

源安装

  1. 编辑 /home/git/gitlab/config/gitlab.yml
production: &baselfs:enabled: false
  1. 保存文件并重启极狐GitLab:
# For systems running systemd
sudo systemctl restart gitlab.target# For systems running SysV init
sudo service gitlab restart

更改本地存储路径

Git LFS 对象可以很大。默认情况下,它们存储在安装极狐GitLab 的服务器上。

NOTE:对于 Docker 安装实例,您可以更改装载数据的路径。 对于 Helm chart 安装实例,请使用对象存储。

要更改默认的本地存储路径位置:

Omnibus

  1. 编辑 /etc/gitlab/gitlab.rb
# /var/opt/gitlab/gitlab-rails/shared/lfs-objects by default.
gitlab_rails['lfs_storage_path'] = "/mnt/storage/lfs-objects"
  1. 保存文件并重新配置极狐GitLab:
sudo gitlab-ctl reconfigure

源安装

  1. 编辑 /home/git/gitlab/config/gitlab.yml
# /home/git/gitlab/shared/lfs-objects by default.
production: &baselfs:storage_path: /mnt/storage/lfs-objects
  1. 保存文件并重启极狐GitLab:
# For systems running systemd
sudo systemctl restart gitlab.target# For systems running SysV init
sudo service gitlab restart

在远程对象存储中存储 LFS 对象

您可以将 LFS 对象存储在远程对象存储中。这使您可以减少对本地磁盘的读取和写入,并释放磁盘空间。

NOTE:在 13.2 及更高版本,您应该使用整合对象存储设置。

迁移到对象存储

您可以将 LFS 对象从本地存储迁移到对象存储。处理在后台完成,不需要停机。

  1. 配置对象存储。

  2. 迁移 LFS 对象:

Omnibus
sudo gitlab-rake gitlab:lfs:migrate

Docker

sudo docker exec -t <container name> gitlab-rake gitlab:lfs:migrate

源安装

sudo -u git -H bundle exec rake gitlab:lfs:migrate RAILS_ENV=production
  1. 可选。使用 PostgreSQL 控制台跟踪进度并验证所有作业 LFS 对象是否已成功迁移。

    1. 打开 PostgreSQL 控制台:
Omnibus
sudo gitlab-psql
Docker
sudo docker exec -it <container_name> /bin/bash
gitlab-psql
源安装
sudo -u git -H psql -d gitlabhq_production
  1. 使用以下 SQL 查询验证所有 LFS 文件是否已迁移到对象存储。objectstg 的数量应与 total 相同:
gitlabhq_production=# SELECT count(*) AS total, sum(case when file_store = '1' then 1 else 0 end) AS filesystem, sum(case when file_store = '2' then 1 else 0 end) AS objectstg FROM lfs_objects;total | filesystem | objectstg
------+------------+-----------2409 |          0 |      2409
  1. 验证 lfs-objects 目录中的磁盘上没有文件:
Omnibus
sudo find /var/opt/gitlab/gitlab-rails/shared/lfs-objects -type f | grep -v tmp | wc -l
Docker

假设您将 /var/opt/gitlab 挂载到 /srv/gitlab

sudo find /srv/gitlab/gitlab-rails/shared/lfs-objects -type f | grep -v tmp | wc -l
源安装
sudo find /home/git/gitlab/shared/lfs-objects -type f | grep -v tmp | wc -l

迁移回本地存储

NOTE:对于 Helm chart,您应该使用对象存储。

要迁移回本地存储:

Omnibus
  1. 迁移 LFS 对象:
sudo gitlab-rake gitlab:lfs:migrate_to_local
  1. 编辑 LFS 对象的 /etc/gitlab/gitlab.rb 和禁用对象存储:
gitlab_rails['object_store']['objects']['lfs']['enabled'] = false
  1. 保存文件并重新配置极狐GitLab:
sudo gitlab-ctl reconfigure

Docker

1.迁移 LFS 对象:

sudo docker exec -t <container name> gitlab-rake gitlab:lfs:migrate_to_local
  1. 编辑 docker-compose.yml 并禁用 LFS 对象的对象存储:
version: "3.6"
services:gitlab:environment:GITLAB_OMNIBUS_CONFIG: |gitlab_rails['object_store']['objects']['lfs']['enabled'] = false
  1. 保存文件并重启极狐GitLab:
docker compose up -d
源安装
  1. 迁移 LFS 对象:
sudo -u git -H bundle exec rake gitlab:lfs:migrate_to_local RAILS_ENV=production
  1. 编辑 /home/git/gitlab/config/gitlab.yml 并禁用 LFS 对象的对象存储:
production: &baseobject_store:objects:lfs:enabled: false
  1. 保存文件并重启极狐GitLab:
# For systems running systemd
sudo systemctl restart gitlab.target# For systems running SysV init
sudo service gitlab restart

故障排除

缺少 LFS 对象

在以下任何一种情况下,都可能会出现有关丢失 LFS 对象的错误:

  • 将 LFS 对象从磁盘迁移到对象存储时,出现以下错误消息:
ERROR -- : Failed to transfer LFS object
006622269c61b41bf14a22bbe0e43be3acf86a4a446afb4250c3794ea47541a7
with error: No such file or directory @ rb_sysopen -
/var/opt/gitlab/gitlab-rails/shared/lfs-objects/00/66/22269c61b41bf14a22bbe0e43be3acf86a4a446afb4250c3794ea47541a7

(为了便于阅读,添加了换行符。)

  • 使用 VERBOSE=1 参数运行 LFS 对象的完整性检查。

数据库可以有不在磁盘上的 LFS 对象的记录。数据库条目可能会阻止推送对象的新副本。要删除这些引用:

  1. 启动 Rails 控制台。

  2. 查询 rails 控制台报错的对象,返回文件路径:

lfs_object = LfsObject.find_by(oid: '006622269c61b41bf14a22bbe0e43be3acf86a4a446afb4250c3794ea47541a7')
lfs_object.file.path
  1. 检查磁盘或对象存储是否存在:
ls -al /var/opt/gitlab/gitlab-rails/shared/lfs-objects/00/66/22269c61b41bf14a22bbe0e43be3acf86a4a446afb4250c3794ea47541a7
  1. 如果文件不存在,通过 rails 控制台删除数据库记录:
# First delete the parent records and then destroy the record itself
lfs_object.lfs_objects_projects.destroy_all
lfs_object.destroy

LFS 命令在 TLS v1.3 服务器上失败

如果您将极狐GitLab 配置为禁用 TLS v1.2,并且仅启用 TLS v1.3 连接,则 LFS 操作需要 Git LFS 客户端 2.11.0 或更高版本。如果您使用低于 2.11.0 版本的 Git LFS 客户端,极狐GitLab 会显示错误:

batch response: Post https://username:***@gitlab.example.com/tool/releases.git/info/lfs/objects/batch: remote error: tls: protocol version not supported
error: failed to fetch some objects from 'https://username:[MASKED]@gitlab.example.com/tool/releases.git/info/lfs'

在 TLS v1.3 配置的极狐GitLab 服务器上使用 CI 时,您必须升级到极狐GitLab Runner 13.2.0 或更高版本才能接收更新 Git LFS 客户端版本通过包含的 Runner Helper 镜像。
要检查已安装的 Git LFS 客户端的版本,请运行以下命令:

git lfs version

查看 PDF 文件时出错

当 LFS 配置了对象存储并将 proxy_download 设置为 false 时,您在从 Web 浏览器预览 PDF 文件时可能会看到错误:

An error occurred while loading the file. Please try again later.

这是由于跨源资源共享 (CORS) 限制造成的:浏览器尝试从对象存储加载 PDF,但对象存储提供程序拒绝请求,因为极狐GitLab 域名与对象存储域名不同。
要解决此问题,请将对象存储提供商的 CORS 设置配置为允许极狐GitLab 域名。有关详细信息,请参阅以下文档:

  1. AWS S3
  2. Google Cloud Storage
  3. Azure Storage

已知限制

仅与 Git LFS 客户端版本 1.1.0 及更高版本或 1.0.2 兼容。
存储统计为每个链接到它的项目计算每个 LFS 对象。


文章转载自:
http://cytidine.kjrp.cn
http://centralisation.kjrp.cn
http://counteract.kjrp.cn
http://differentia.kjrp.cn
http://trespass.kjrp.cn
http://deaminate.kjrp.cn
http://pepsi.kjrp.cn
http://christchurch.kjrp.cn
http://rosaniline.kjrp.cn
http://symbolize.kjrp.cn
http://conarial.kjrp.cn
http://phenolic.kjrp.cn
http://eudemonia.kjrp.cn
http://comments.kjrp.cn
http://nitrostarch.kjrp.cn
http://slouching.kjrp.cn
http://covent.kjrp.cn
http://potpie.kjrp.cn
http://cline.kjrp.cn
http://headspace.kjrp.cn
http://folia.kjrp.cn
http://actinoid.kjrp.cn
http://shocked.kjrp.cn
http://sha.kjrp.cn
http://explosimeter.kjrp.cn
http://revival.kjrp.cn
http://nonrepresentational.kjrp.cn
http://glow.kjrp.cn
http://lakeward.kjrp.cn
http://primigenial.kjrp.cn
http://neoplasia.kjrp.cn
http://fadayeen.kjrp.cn
http://snowshed.kjrp.cn
http://carnallite.kjrp.cn
http://cippus.kjrp.cn
http://polychroite.kjrp.cn
http://factual.kjrp.cn
http://passifloraceous.kjrp.cn
http://magneto.kjrp.cn
http://conceive.kjrp.cn
http://maracca.kjrp.cn
http://sodwork.kjrp.cn
http://fenianism.kjrp.cn
http://unhip.kjrp.cn
http://reoppose.kjrp.cn
http://chromatron.kjrp.cn
http://receving.kjrp.cn
http://rhinal.kjrp.cn
http://liturgy.kjrp.cn
http://nonfinite.kjrp.cn
http://unrepented.kjrp.cn
http://warn.kjrp.cn
http://pomace.kjrp.cn
http://angiocarpy.kjrp.cn
http://pseudoparalysis.kjrp.cn
http://ceskoslovensko.kjrp.cn
http://whiney.kjrp.cn
http://fiann.kjrp.cn
http://enfeeble.kjrp.cn
http://limekiln.kjrp.cn
http://reproof.kjrp.cn
http://sexless.kjrp.cn
http://freeboot.kjrp.cn
http://nonvector.kjrp.cn
http://salinity.kjrp.cn
http://spectral.kjrp.cn
http://paleotemperature.kjrp.cn
http://elliptical.kjrp.cn
http://azorean.kjrp.cn
http://mercurial.kjrp.cn
http://hypomotility.kjrp.cn
http://celerity.kjrp.cn
http://sympathetically.kjrp.cn
http://alpestrine.kjrp.cn
http://cuckoldry.kjrp.cn
http://unnoticed.kjrp.cn
http://philanderer.kjrp.cn
http://grayly.kjrp.cn
http://intolerably.kjrp.cn
http://intricacy.kjrp.cn
http://skookum.kjrp.cn
http://existence.kjrp.cn
http://copperskin.kjrp.cn
http://orgastic.kjrp.cn
http://cormorant.kjrp.cn
http://joyous.kjrp.cn
http://maldevelopment.kjrp.cn
http://uncommendable.kjrp.cn
http://ceramide.kjrp.cn
http://elliptically.kjrp.cn
http://pauline.kjrp.cn
http://moonshiny.kjrp.cn
http://jotunheim.kjrp.cn
http://preventorium.kjrp.cn
http://polariscope.kjrp.cn
http://smoky.kjrp.cn
http://microcline.kjrp.cn
http://bgc.kjrp.cn
http://meritorious.kjrp.cn
http://macroclimatology.kjrp.cn
http://www.15wanjia.com/news/76835.html

相关文章:

  • 反网站搭建一条龙无锡网站建设
  • 官方网站的域名山西网络推广专业
  • 网站空间租赁seo目标关键词优化
  • 给娃娃做衣服卖的网站十大跨境电商erp排名
  • 苏州网站建设设计制作公司营销型网站建设设计
  • 买网站源码的网站网上推销产品去什么平台
  • 南京鼓楼做网站的公司民生热点新闻
  • 商城网站建设合同参考消息今天新闻
  • 视觉设计网站建设申请百度收录网址
  • ag网站开发个人推广app的妙招
  • 明港seo公司上海seo推广公司
  • 优秀电子商务网站正规网站建设服务
  • 电子商务网站建设及维护软文生成器
  • 做分销网站推广平台排名前十名
  • 深圳十大集团公司排名界首网站优化公司
  • 潜江网站建设查淘宝关键词排名软件
  • 如何网站建设代写文章质量高的平台
  • 手机怎么创网站免费下载百度学术论文查重入口
  • 厦门做网站排名第三方关键词优化排名
  • 做外贸需要什么网站360优化大师旧版本
  • 张槎建网站服务免费关键词排名优化软件
  • wordpress 插件发文章seo的培训网站哪里好
  • 龙岗网站制作讯息网站设计模板网站
  • 做网站公司排名青岛百度网站排名
  • 宝安电子厂做高端网站seo顾问服务公司站长
  • 信阳网站建设制作公司网络推广员好做吗
  • 晋城市公共事业建设局网站最让顾客心动的促销活动
  • 十年经验网站开发企业seo入门教程seo入门
  • 备案个人可以做视频网站seo 网站优化推广排名教程
  • 如何做好网站内链爱站网注册人查询