CentOS7安装gitlab-ce-13
1.安装依赖yum install -y curl openssh-server openssh-clients postfix policycoreutils-python2.下载安装包cd /usr/local/tmpwget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-13.2.4-ce.0.el7.x86
·
1.安装依赖
yum install -y curl openssh-server openssh-clients postfix policycoreutils-python
2.下载安装包
cd /usr/local/tmp
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-13.2.4-ce.0.el7.x86_64.rpm
3.安装
rpm -ivh gitlab-ce-13.2.4-ce.0.el7.x86_64.rpm
4.配置访问路径
vim /etc/gitlab/gitlab.rb
# 修改内容如下(ip和端口改成自己的)
external_url 'http://192.168.152.128'
nginx['listen_port'] = 7000
5.编译配置信息
gitlab-ctl reconfigure
6.启动服务,启动后浏览器访问http://192.168.152.128:7000
gitlab-ctl start
7.其他命令
# 停止服务
gitlab-ctl stop
# 重启服务
gitlab-ctl restart
# 查看指定端口有哪些进程在使用
lsof -i:7000
# 防火墙开发端口
firewall-cmd --zone=public --add-port=7000/tcp --permanent
firewall-cmd --reload
firewall-cmd --list-port
# 生成sshkey
ssh-keygen -t rsa -C "123@qq.com"
# 重启sshd服务
systemctl restart sshd.service
#最详细的安装信息,请跳转到下面这个链接
https://blog.51cto.com/caiyuanji/2114796?cid=707746
更多推荐
已为社区贡献1条内容
所有评论(0)