Mac M1 Parallels Debian10 Install Gitlab

2024-01-08 03:20

本文主要是介绍Mac M1 Parallels Debian10 Install Gitlab,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

安装Debian10

Debian10百度网盘下载链接: https://pan.baidu.com/s/1ovBWIhTpljIVOxEkjJQjkQ?pwd=6666 提取码: 6666
–来自百度网盘超级会员v7的分享

# 1.install
# 2.localtion: 中国 → 语言: 中文(简体)
# 3.网络 默认、自动配置
# 4.主机名域名(随意),这里主机名叫gitlab,域名localhost
# 5.root密码(随意),这里设置为123456
# 6.设置新用户及新用户名称和密码(强制), 这里随便写了个zhinian/123456
# 7.时区时间配置默认或自改
# 8.使用整盘(可自操作分盘)
# 9.不需要扫描其他CD/DVD
# 10.网络镜像默认、更新系统默认回车即可, 不参与调查
# 11.选择安装软件(自选),这里我选择SSH server(必须)、standard system utilities(空格勾选或取消勾选)
# 12.继续回车完成安装

gitlab-debian

开启root远程登录

# 安装sudo、curl、vim、wget
apt install sudo curl vim wget -y
# 启用root 远程登陆、编辑 sshd 配置文件
vim /etc/ssh/sshd_config
# 修改或添加内容(按i进入编辑,修改完,按ESC,并输入:wq保存退出)
# 添加
vim /etc/ssh/sshd_config
# 应用并生效、重启ssh服务
systemctl restart sshd.service

一、前置配置

# 更新apt
sudo apt update# 安装依赖: 对于 Postfix 邮件服务器,请确保邮件配置选项为 Internet Site. 邮件名称随意
apt install ca-certificates curl openssh-server postfix

二、安装Gitlab

root@gitlab:~# mkdir gitlab-ce
root@gitlab:~# cd gitlab-ceroot@gitlab:~/gitlab-ce# wget https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh
--2024-01-07 20:12:30--  https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh
正在解析主机 packages.gitlab.com (packages.gitlab.com)... 	172.64.148.245, 104.18.39.11, 2606:4700:4400::ac40:94f5, ...
正在连接 packages.gitlab.com (packages.gitlab.com)|172.64.148.245|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:6865 (6.7K) [text/install_instructions]
正在保存至: “script.deb.sh”script.deb.sh                             100%[===================================================================================>]   6.70K  --.-KB/s  用时 0.001s  2024-01-07 20:12:36 (10.2 MB/s) - 已保存 “script.deb.sh” [6865/6865])root@gitlab:~/gitlab-ce# bash script.deb.sh
# xxxxxx...
The repository is setup! You can now install packages.# 完成存储库的设置后,执行命令安装 GitLab CE
apt install gitlab-ce

gitlab-install

It looks like GitLab has not been configured yet; skipping the upgrade script.
尚未配置有效主机名, 需要进行必要的配置# 要优化 GitLab 安装,需要编辑 github.rb 文件,我们将使用 vim 编辑器打开文件
vim /etc/gitlab/gitlab.rb# 更改
# external_url 'http://gitlab.example.com'
external_url 'http://gitlab.zhinian.com'# letsencrypt['contact_emails'] = [] # This should be an array of email addresses to add as contacts
letsencrypt['contact_emails'] = ['wangfeihu_ly@163.com']# 保存文件并重新配置 GitLab 安装
gitlab-ctl reconfigure

安装成功
设置gitlab root管理员密码

# gitlab忘记root密码解决方法# 进入gitlab rails控制台
gitlab-rails console# 输入以下命令重置root密码(zhinian123456)
user = User.where(id: 1).first
user.password = 'new_password'
user.password_confirmation = 'new_password'
user.save!
说明:将 new_password 替换为您要设置的新密码# 退出gitlab rails控制台
exit# 重启gitlab使更改生效
gitlab-ctl restart

三、访问测试

点击访问: http://gitlab.zhinian.com
在这里插入图片描述
在这里插入图片描述
取消勾选后save changes
安装成功
安装成功!

这篇关于Mac M1 Parallels Debian10 Install Gitlab的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/582177

相关文章

Mac excel 同时冻结首行和首列

1. 选择B2窗格 2. 选择视图 3. 选择冻结窗格 最后首行和首列的分割线加粗了就表示成功了

yum install 失败报错`XZ_5.1.2alpha' not found (required by /lib64/librpmio.so.3)

/export/env/py3.6/lib/liblzma.so.5: version `XZ_5.1.2alpha' not found (required by /lib64/librpmio.so.3)   到/export/env/py3.6/lib cp /lib64/liblzma.so.5.2.2 . sudo ln -s -f liblzma.so.5.2.2 liblzm

Linux和Mac分卷压缩

使用 zip 命令压缩文件 使用 zip 命令压缩文件,并结合 split 命令来分卷: zip - largefile | split -b 500k 举例: zip - ./tomcat.dmg |split -b 500k 上述命令将文件 largefile 压缩成 zip 包并分卷成不超过 500k 的文件,分解后文件名默认是 x* ,后缀为 2 位a-z 字母,如 aa、ab。

brew install opencv@2 时报错 Error: Can't create update lock in /usr/local/var/homebrew/locks!

解决方案,报错里已经说明了: 我的解决方案: sudo chown -R "$USER":admin /usr/local   stackoverflow上的答案 I was able to solve the problem by using chown on the folder: sudo chown -R "$USER":admin /usr/local Also you'

CMake笔记之CMAKE_INSTALL_PREFIX详解以及ROS中可执行文件为什么会在devel_lib中

CMake笔记之CMAKE_INSTALL_PREFIX详解以及ROS中可执行文件为什么会在devel_lib中 code review! 文章目录 CMake笔记之CMAKE_INSTALL_PREFIX详解以及ROS中可执行文件为什么会在devel_lib中1.`CMAKE_INSTALL_PREFIX`详解变量作用设置 `CMAKE_INSTALL_PREFIX`示例影响范围常

spring-boot-maven-plugin多模块install问题

一、问题描述:   项目分多个模块,open-eureka注册中心、open-provider服务提供者、open-common公共部分,provider依赖common。父pom使用spring-boot-maver-plugin插件,项目直接运行Main主类没问题,但是install报common中的类找不到符号. 二、查找问题:   spring-boot-maven-plugin 打

Unable to install breakpoint in......

错误信息: Unable to install breakpoint in com.aaa.xxx$$EnhancerBySpringCGLIB$$k9248f13f due to missing ine number..... 解决方法: 选上Don't tell me again 然后重新启动 如果不能进入调试断点:   按照图上所示选上内容,重启tomcat即可 引用文

理解什么是DSR,嗅探器视角下的IP和MAC地址识别(C/C++代码实现)

网络嗅探器是监控和分析网络流量的一种工具,它能够捕获数据包并提取出关键的信息,比如IP地址和MAC地址。 网络嗅探器工作原理基于网卡的工作模式。正常情况下,网卡只处理发送给它的数据包,忽略其他数据。但是,如果将网卡设置为“混杂模式”,那么它可以接收到网络上所有的数据包,而不仅仅是发给它的数据包。网络嗅探器就是利用了这一特性来捕获网络上的数据交换。 数据包是网络通信的基本单位,包含了传输数据和控

Mac 本地启动 Dify

本地启动 dify 拉取 dify 文件 git clone https://github.com/langgenius/dify.git 启动底层服务 cd dify/dockerdocker-compose -f docker-compose.middleware.yaml -p dify up -d 启动后端 API 安装 poetry brew install poet