Skip to content

系统优化 ​

基础配置 ​

设置中文 ​

点击头像选择偏好设置,在本地化语言中选择中文

An image

关闭注册 ​

在设置中选择通用,关闭注册限制中的已启用注册功能

An image

关闭头像显示 ​

在设置中选择通用,关闭账户与限制中的启用 Gravatar

An image

减少内存占用 ​

官方文档

Configure the bundled Puma instance of the GitLab package | GitLab

GitLab为内存限制设置默认值。若要覆盖默认值,请设置以兆字节为单位的新RSS限制

  1. 编辑:/etc/gitlab/gitlab.rb

    sh
    puma['per_worker_max_memory_mb'] = 1024 # 1GB
    puma['worker_timeout'] = 60
    puma['worker_processes'] = 2
  2. 重新配置 GitLab:

    sh
    sudo gitlab-ctl reconfigure

最终效果

An image