VMware Pro15虚拟机中安装centos8并且安装Gitlab服务器的解决方法
2021/4/27 7:25:31
本文主要是介绍VMware Pro15虚拟机中安装centos8并且安装Gitlab服务器的解决方法,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
VMware Pro15虚拟机中安装centos8并且安装Gitlab服务器的解决方法
VMware Pro15虚拟机中安装centos8并且安装Gitlab服务器的解决方法
好多开发人员一般都是用Windows10开发系统,那么在windows10下如何安装Git服务器呢,那么要借用虚拟机中安装CentOS8版的Linux系统
具体步骤如下:
第一、windows10安装Workstation 15 Pro ,然后在Workstation 15 Pro 安装CentOS8
在windows10的虚拟机软件中安装CentOS8版的Linux系统,具体如何Workstation 15 Pro 安装CentOS8 请看博文:https://blog.csdn.net/chenzhf_0122/article/details/102964037
第二、CentOS8安装好之后用root身份登录linux系统分别执行以下命令,(安装和启用policycoreutils、openssh-server和openssh-clients组件,并将它们开放防火墙(不要忘了reload防火墙))
# dnf install -y curl policycoreutils openssh-server openssh-clients # systemctl enable sshd # systemctl start sshd # firewall-cmd --permanent --add-service=http # firewall-cmd --permanent --add-service=https # systemctl reload firewalld
与邮件通知相关的Postfix组件其实可以暂时不用安装和配置,这个可以放到后面再来配置一个外部的SMTP服务器:
# dnf install postfix # systemctl enable postfix # systemctl start postfix
第三步、使用curl工具下载并配置Gitlab CE版RPM安装包的仓库配置脚本(请确认你的虚拟机能联接网络,注意这只是RPM安装包的仓库配置脚本,并不是真正的安装包)
[root@localhost ~]#curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | bash
第四、安装Gitlab客户端,这个域名一定是要自己可以访问到的
[root@localhost ~]#EXTERNAL_URL="http://www.axinno1.com" dnf install -y gitlab-ce
第五、编辑 /etc/gitlab/gitlab.rb 如果没有要编辑的就 在dos控制台中按Esc 在按:wq! 指令
[root@localhost ~]#vim /etc/gitlab/gitlab.rb
第六、编辑了的话就要重新配置下Gitlab
[root@localhost ~]# gitlab-ctl reconfigure
gitlab-ctl 客户端命令:
[root@localhost ~]# gitlab-ctl reconfigure #重读配置 [root@localhost ~]# gitlab-ctl start #启动 [root@localhost ~]# gitlab-ctl restart #重启 [root@localhost ~]# gitlab-ctl status #查看服务状态 [root@localhost ~]# gitlab-ctl stop #停止 [root@localhost ~]# gitlab-ctl stop nginx #单独停止nginx [root@localhost ~]# gitlab-ctl tail #查看日志 /opt/gitlab/ #gitlab程序安装目录 /var/opt/gitlab/ #gitlab数据目录 /var/opt/gitlab/git-data/ #仓库目录
这篇关于VMware Pro15虚拟机中安装centos8并且安装Gitlab服务器的解决方法的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-09-21拼接的xml报文,尖括号都被转移成了< 是什么原因-icode9专业技术文章分享
- 2024-09-21Svg Sprite Icon教程:从入门到实践
- 2024-09-21Svg Sprite Icon实战:从入门到上手
- 2024-09-20构建一个多PDF RAG聊天机器人:使用Langchain和Streamlit及代码
- 2024-09-20whatsapp webhook 回调的签名验证偶尔会失败是什么原因-icode9专业技术文章分享
- 2024-09-19Excel数据导出课程:初学者必备教程
- 2024-09-19Excel数据导入课程:新手入门指南
- 2024-09-19RBAC的权限管理入门教程
- 2024-09-19如何使用Svg Sprite Icon制作图标
- 2024-09-19uniapp 如何实现点赞后全局更新数据-icode9专业技术文章分享