# gitlab服务管理 ## 安装调试 ### 安装服务 > 基于`ubuntu 22.04`服务 > [参考文章](https://gitlab.cn/install/) 1. 安装依赖包 ```shell sudo apt-get update sudo apt-get install -y curl openssh-server ca-certificates tzdata perl ``` - (可选)配置邮箱服务 ```shell sudo apt-get install -y postfix ``` 2. 下载资源 ```shell curl -L get.gitlab.cn | bash ``` - 设置安装地址 ```shell sudo EXTERNAL_URL="https://gitlab.example.com" apt-get install -y gitlab-jh ``` 3.