apt update
apt upgrade
apt install ca-certificates curl openssh-server postfix
cd /tmp
wget https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh
bash script.deb.sh
NR=`cat -n /etc/gitlab/gitlab.rb | grep external_url | grep -v "#" | awk -F" " '{print$1}'` ; echo $NR
# 修改配置访问地址,修改行: 32 行 external_url 'http://gitlab.example.com'
sed -i "$NR a external_url 'http://192.168.1.211' " /etc/gitlab/gitlab.rb
sed -i " $NR d" /etc/gitlab/gitlab.rb
NR=`cat -n /etc/gitlab/gitlab.rb | grep letsencrypt | grep emails | awk -F" " '{print $1}'` ; echo $NR
sed -i "$NR a letsencrypt['contact_emails'] = ['ceo@eisc.cn'] " /etc/gitlab/gitlab.rb
# 修改邮箱
sed -i "$NR d" /etc/gitlab/gitlab.rb
gitlab-ctl reconfigure
# https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/debian/pool/buster/main/g/gitlab-ce/?C=N&O=D
# 先下载安装:gitlab-ce_14.0.6-ce.0_amd64.deb 然后安装最新版本
# https://packages.gitlab.com/app/gitlab/gitlab-ce/search?q=gitlab-ce_14.8.2-ce.0_amd64.deb
# https://www.yundongfang.com/Yun39025.html
Powered by ddoss.cn 12.0
©2015 - 2025 ddoss
渝公网安备50011302222260号
渝ICP备2024035333号
【实验平台安全承诺书】
小绿叶技术社区,优化网络中,点击查看配置信息
主机监控系统: 安全防火墙已开启检查cc攻击-下载文件完成后等待10s 恢复访问,检查连接数低于峰值恢复访问
您的IP:216.73.216.110,2025-12-01 16:06:47,Processed in 0.01725 second(s).