当前位置: 首页 > news >正文

离线安装bitnami-gitlab8.8.4+汉化

注意:
  • 常规安装gitlab需要联网,而按装bitnami-gitlab无需联网(bitnami-gitlab用于内网环境无法联网时安装gitlab,两者是一个东西只是名字不一样)
  • bitnami-gitlab-8.8.4版本可以汉化成功
  • 新用户注册账户无需激活也可以直接登录,因为这是内网环境安装不需要bitmani-gitlab给用户发送邮箱激活码,所以不需要激活。
1、准备安装包并授权安装

链接: https://pan.baidu.com/s/1WX3Rd04PpGn5x9aRJT7WKA 提取码: 4t8c

0.授权并安装
# chmod +x bitnami-gitlab-8.8.4-0-linux-x64-installer.run 
# ./bitnami-gitlab-8.8.4-0-linux-x64-installer.run1.输入Y同意安装
PhpPgAdmin [Y/n] :Y2.再次输入Y
Is the selection above correct? [Y/n]: 3.指定安装路径,直接回车保持默认     
Select a folder [/opt/gitlab-8.8.4-0]:    4.创建管理员登录账户和密码(包括邮箱、用户名、密码,邮箱和用户名都可以登录gitlab)
----------------------------------------------------------------------------
Create Admin account
Bitnami Gitlab Stack admin user creation
Email Address [user@example.com]: wenqiang@test.com  #管理员账户使用的邮箱,该邮箱是否存在都可以它就是个名字
Login [user]: wenqiang                 #管理员的名字,用名字和邮箱都可以登录gitlab
Password :      
Please confirm your password :5.输入服务器被访问地址,用户通过这个地址访问gitlab
Domain [127.0.0.1]:172.16.12.336.是否配置邮箱,我这里选择NO,配置该邮箱主要用于新用户注册时给新用户发送激活邮件
Do you want to configure mail support? [y/N]: N7.选择yes开始安装
Do you want to continue? [Y/n]: Y8、启动关闭重启命令
# /opt/gitlab-8.8.4-0/ctlscript.sh 
usage: /opt/gitlab-8.8.4-0/ctlscript.sh help/opt/gitlab-8.8.4-0/ctlscript.sh (start|stop|restart|status)/opt/gitlab-8.8.4-0/ctlscript.sh (start|stop|restart|status) postgresql/opt/gitlab-8.8.4-0/ctlscript.sh (start|stop|restart|status) apache/opt/gitlab-8.8.4-0/ctlscript.sh (start|stop|restart|status) redis/opt/gitlab-8.8.4-0/ctlscript.sh (start|stop|restart|status) gitlab_sidekiq/opt/gitlab-8.8.4-0/ctlscript.sh (start|stop|restart|status) gitlab_workhorse/opt/gitlab-8.8.4-0/ctlscript.sh (start|stop|restart|status) gitlabci_multirunner
2、访问gitlab http://172.16.12.33:80
  • 直接注册任意用户就可以登录,注册新用户填写的邮箱是否存在都可以,反正不需要gitlab给用户发送激活邮件
    请添加图片描述

3、修改gitlab端口(bitnami-gitlab默认写死了80端口,需要手动修改配置文件)

1.我要把80改成8081,查看要改动的端口号是否被占用
netstat -an |grep 8081  2.修改apache主配置文件
vim /opt/gitlab/apache2/conf/httpd.conf
查找:/Listen
修改:Listen 8081 3.修改apache的bitnami的配置文件
vim /opt/gitlab/apache2/conf/bitnami/bitnami.conf
NameVirtualHost *:8081       
<VirtualHost _default_:8081  >4.修改gitlab-shell的配置文件
vim /opt/gitlab/apps/gitlab/gitlab-shell/config.yml
gitlab_url: "http://192.168.1.10:8081  /"  5.修改gitlab的apache主目录配置文件
vim /opt/gitlab/apps/gitlab/htdocs/config/gitlab.yml
# 1. GitLab app settings# ==========================
## GitLab settingsgitlab:port: 8081 # 修改此处 6.修改gitlab-workhorse请求认证文件脚本
vim /opt/gitlab/apps/gitlab-workhorse/scripts/ctl.sh
-listenAddr 127.0.0.1:8181     #这不要动
-authBackend http://127.0.0.1:8001   #修改此处7.重启gitlab
4、汉化(如果没有要求最好不要汉化,提前把linux系统字符集改为中文)
1、下载汉化包并解压缩
# tar zxvf gitlab-v8.8.4.zh1.tar.gz -C /opt/2、拷贝相对应汉化文件到gitlab目录下
# \cp -Rvf /opt/gitlab-v8.8.4.zh1/app/*    /opt/gitlab-8.8.4-0/apps/gitlab/htdocs/app/
# \cp /opt/gitlab-v8.8.4.zh1/config/locales/zh.yml    /opt/gitlab-8.8.4-0/apps/gitlab/htdocs/config/locales/
# \cp /opt/gitlab-v8.8.4.zh1/config/locales/devise.zh.yml   /opt/gitlab-8.8.4-0/apps/gitlab/htdocs/config/locales/
# \cp /opt/gitlab-v8.8.4.zh1/config/locales/kaminari.zh.yml   /opt/gitlab-8.8.4-0/apps/gitlab/htdocs/config/locales/3、重启gitlab,刷新页面汉化成功

请添加图片描述

http://www.lryc.cn/news/462718.html

相关文章:

  • 亚马逊日本站推出AI日语listing功能,Listing一键发布,轻松无忧!
  • Golang | Leetcode Golang题解之第475题供暖器
  • 【Vue】Vue3.0 (十二)、watchEffect 和watch的区别及使用
  • PHP-laravel框架
  • 永恒之蓝漏洞
  • Eking管理易 Html5Upload 前台任意文件上传漏洞复现
  • spring boot itext7 修改生成文档的作者、制作者、标题,并且读取相关的信息。
  • LeetCode题练习与总结:灯泡开关--319
  • ClickFix攻击活动升级:可通过虚假谷歌会议画面传播恶意软件
  • 迷茫!能走出迷茫?
  • 6.2 遍历重定位表
  • 面对服务器掉包的时刻困扰,如何更好的解决
  • RTSP流图片采样助手(yolov5)
  • MySQL、MariaDB、OceanBase远程异地定时备份脚本
  • 【远程监控新体验】OpenObserve结合内网穿透无公网IP远程访问全攻略
  • 深度学习:异常检测(Anomaly Detection)详解
  • 智慧公厕系统提升公共服务满意度
  • 幼儿和青少年编程学习路径
  • leetcode48:旋转矩阵
  • 安装CentOS 8镜像和创建CentOS 8虚拟机教程
  • 针对考研的C语言学习(二叉树专题)
  • 【ARM 嵌入式 编译系列 10.9 -- Clang 编译器】
  • 《深度学习》【项目】自然语言处理——情感分析 <上>
  • RU19.25 Standalone (GI和DB分开打)
  • 探索 Jupyter 核心:nbformat 库的神秘力量
  • python+大数据+基于spark的短视频推荐系统【内含源码+文档+部署教程】
  • Elasticsearch字段数据类型
  • 简述RESTFul风格的API接口
  • 探索光耦:光耦——不间断电源(UPS)系统中的安全高效卫士
  • at命令和cron命令