收藏文章 楼主

debian10 安装 gitleb

版块:linux   类型:普通   作者:小绿叶技术博客   查看:862   回复:1   获赞:0   时间:2022-03-02 18:25:24



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

提供企业建站服务,免费网防系统,提交信息登录 http://yundun.ddoss.cn 邮箱: proposal@ddoss.cn 
回复列表
默认   热门   正序   倒序

回复:debian10 安装 gitleb

头像

用户名:

粉丝数:

签名:

资料 关注 好友 消息