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

手机网站 优化windows优化大师有什么功能

手机网站 优化,windows优化大师有什么功能,汉中微信网站建设公司,郑州疫情到底多严重GitLab本身有很多有用的rake命令,可以用于日常维护。 以下GitLab官网上gitlab-rake的常见用法。 文章目录 1. 收集GitLab和系统信息2. 显示GitLab许可证信息3. 检查GitLab配置4. 重建 authorized_keys 密钥索引文件5. 清除redis缓存6. 测试TCP连接7. 显示 database…

GitLab本身有很多有用的rake命令,可以用于日常维护。

以下GitLab官网上gitlab-rake的常见用法。

文章目录

      • 1. 收集GitLab和系统信息
      • 2. 显示GitLab许可证信息
      • 3. 检查GitLab配置
      • 4. 重建 authorized_keys 密钥索引文件
      • 5. 清除redis缓存
      • 6. 测试TCP连接
      • 7. 显示 database migrations状态
      • 8. 运行未完成的database migrations
      • 9. 重建数据库索引
      • 10. 导入 common metrics

1. 收集GitLab和系统信息

sudo gitlab-rake gitlab:env:info

输出:

System information
System:
Proxy:		no
Current User:	git
Using RVM:	no
Ruby Version:	2.7.5p203
Gem Version:	3.1.4
Bundler Version:2.1.4
Rake Version:	13.0.6
Redis Version:	6.0.16
Git Version:	2.33.1.
Sidekiq Version:6.3.1
Go Version:	unknownGitLab information
Version:	14.6.0-jh
Revision:	46d2f0d5677
Directory:	/opt/gitlab/embedded/service/gitlab-rails
DB Adapter:	PostgreSQL
DB Version:	12.7
URL:		http://43.155.69.97
HTTP Clone URL:	http://43.155.69.97/some-group/some-project.git
SSH Clone URL:	git@43.155.69.97:some-group/some-project.git
Elasticsearch:	no
Geo:		no
Using LDAP:	no
Using Omniauth:	yes
Omniauth Providers:GitLab Shell
Version:	13.22.1
Repository storage paths:
- default: 	/var/opt/gitlab/git-data/repositories
GitLab Shell path:		/opt/gitlab/embedded/service/gitlab-shell
Git:		/opt/gitlab/embedded/bin/git

2. 显示GitLab许可证信息

sudo gitlab-rake gitlab:license:info

输出:

Today's Date: 2020-02-29
Current User Count: 30
Max Historical Count: 30
Max Users in License: 40
License valid from: 2019-11-29 to 2020-11-28
Email associated with license: user@example.com

3. 检查GitLab配置

sudo gitlab-rake gitlab:check

上述检查也可以拆分为:

gitlab-rake gitlab:gitlab_shell:check
gitlab-rake gitlab:gitaly:check
gitlab-rake gitlab:sidekiq:check
gitlab-rake gitlab:incoming_email:check
gitlab-rake gitlab:ldap:check
gitlab-rake gitlab:app:check

输出:

Checking GitLab subtasks ...Checking GitLab Shell ...GitLab Shell: ... GitLab Shell version >= 13.22.1 ? ... OK (13.22.1)
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Internal API available: OK
Redis available via internal API: OK
gitlab-shell self-check successfulChecking GitLab Shell ... FinishedChecking Gitaly ...Gitaly: ... default ... OKChecking Gitaly ... FinishedChecking Sidekiq ...Sidekiq: ... Running? ... yes
Number of Sidekiq processes (cluster/worker) ... 1/1Checking Sidekiq ... FinishedChecking Incoming Email ...Incoming Email: ... Reply by email is disabled in config/gitlab.ymlChecking Incoming Email ... FinishedChecking LDAP ...LDAP: ... LDAP is disabled in config/gitlab.ymlChecking LDAP ... FinishedChecking GitLab App ...Git configured correctly? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config up to date? ... yes
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory exists? ... yes
Uploads directory has correct permissions? ... yes
Uploads directory tmp has correct permissions? ... yes
Systemd unit files or init script exist? ... skipped (omnibus-gitlab has neither init script nor systemd units)
Systemd unit files or init script up-to-date? ... skipped (omnibus-gitlab has neither init script nor systemd units)
Projects have namespace: ...
GitLab Instance / Monitoring ... yes
test / python ... yes
Redis version >= 5.0.0? ... yes
Ruby version >= 2.7.2 ? ... yes (2.7.5)
Git version >= 2.33.0 ? ... yes (2.33.1)
Git user has default SSH configuration? ... yes
Active users: ... 1
Is authorized keys file accessible? ... yes
GitLab configured to store new projects in hashed storage? ... yes
All projects are in hashed storage? ... yes
Elasticsearch version 7.x (6.4 - 6.x deprecated to be removed in 13.8)? ... skipped (elasticsearch is disabled)Checking GitLab App ... FinishedChecking GitLab subtasks ... Finished

4. 重建 authorized_keys 密钥索引文件

sudo gitlab-rake gitlab:shell:setup

输出:

This task will now rebuild the authorized_keys file.
You will lose any data stored in the authorized_keys file.
Do you want to continue (yes/no)? yes

5. 清除redis缓存

sudo gitlab-rake cache:clear

正常无输出。

6. 测试TCP连接

sudo gitlab-rake gitlab:tcp_check[gitlab.com,80]

输出:

TCP connection from 172.17.0.2:42370 to 172.65.251.78:80 succeeded

7. 显示 database migrations状态

sudo gitlab-rake db:migrate:status

输出:

database: gitlabhq_productionStatus   Migration ID    Migration Name
--------------------------------------------------up     20181228175414  Init schemaup     20201211090634  Schedule populate finding uuid for vulnerability feedbackup     20201211145950  Add bloat estimate to reindex actionup     20201214000000  Change mr allow maintainer to push defaultup     20201214032220  Add has external wiki triggerup     20201214084105  Add expiration policy completed at to container repositoriesup     20201214111858  Add container registry cleanup tags service max list size to application settingsup     20201214112752  Add app settings container reg cleanup tags service max list size constraintup     20201214113729  Add custom mapping columns to http integrationsup     20201214184020  Add epic board listup     20201215084652  Delete mock deployment service recordsup     20201215132151  Change unique index on security findingsup     20201215205404  Create namespace package settingsup     20201216151616  Add squash commit sha indexup     20201216154457  Add devops adoption snapshot range end...........

8. 运行未完成的database migrations

sudo gitlab-rake db:migrate

正常无输出。

9. 重建数据库索引

sudo gitlab-rake gitlab:db:reindex

输出:

This feature (database_reindexing) is currently disabled.

10. 导入 common metrics

sudo gitlab-rake metrics:setup_common_metrics

正常无输出。

http://www.zhongyajixie.com/news/62800.html

相关文章:

  • 发簪做的比较好的网站搜索引擎提交入口大全
  • 怎么用服务器做网站浙江网站建设平台
  • 网站引导页怎么做网站编辑seo
  • 建站资源百度浏览器下载安装2023版本
  • 河南两学一做网站线上推广如何引流
  • 不花钱网站怎么做推广seo网页优化服务
  • 做网站必须网站备案企业自建网站
  • 常熟做网站的公司营销对企业的重要性
  • 小米路由HD可以做网站吗seo免费入门教程
  • 公司网站建设系统互联网营销方案
  • 网站建设公司哪家好 搜搜磐石网络nba最新比赛直播
  • 购物网站有哪些模块流量推广app
  • 小说网站开发数据库深圳网站制作
  • flash做网站网站seo优化方案项目策划书
  • 东台专业做网站的公司泰安网站优化公司
  • 网站轮播动态图如何做在线资源搜索神器
  • 网站建设流程共有几个阶段资深seo顾问
  • 浩森宇特北京网站建设微信营销推广公司
  • 电商网站建设济南建网站子域名网址查询
  • 知乎网站建设用的工具郑州百度seo网站优化
  • 常用的网站类型有哪些类型有哪些优化防疫措施
  • 淄博建设网站公司会计培训班的费用是多少
  • 自己做的小说网站要交税吗百度助手手机下载
  • wordpress 物流信息合肥网络公司seo建站
  • 有哪些网站可以做按摩广告深圳优化公司样高粱seo
  • 网站里的动效怎么做引擎优化搜索
  • 请人做网站多少钱链接买卖价格
  • 网站建设在哪能看培训如何优化网站
  • wordpress评论改成微博落实好疫情防控优化措施
  • 推广企业网站最主要的方式是广告的六种广告形式