linux怎么查看本机内存大小
253
2022-10-27
Gitlab 分布式版本控制系统 部署和使用
功能:代码管理官方网站: 部署 gitlab 版本控制系统[root@shell ~]# [root@shell ~]# cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) [root@shell ~]# [root@shell ~]# uname -r3.10.0-862.el7.x86_64[root@shell ~]# [root@shell ~]# yum install curl policycoreutils openssh-server openssh-clients[root@shell ~]#[root@shell ~]# systemctl start sshd[root@shell ~]# systemctl enable sshd[root@shell ~]# [root@shell ~]# yum install postfix [root@shell ~]# systemctl start postfix[root@shell ~]# systemctl enable postfix[root@shell ~]# [root@shell ~]# systemctl stop firewalld[root@shell ~]# systemctl disable firewalld[root@shell ~]# [root@shell ~]# setenforce 0[root@shell ~]# sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config [root@shell ~]# [root@shell ~]# getenforce Permissive[root@shell ~]# [root@shell ~]# curl | sudo bash #添加软件包存储库(yum源)[root@shell ~]# [root@shell ~]# yum list gitlab-ceLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile
base: mirrors.tuna.tsinghua.edu.cn extras: mirrors.tuna.tsinghua.edu.cn updates: mirrors.tuna.tsinghua.edu.cnAvailable Packagesgitlab-ce.x86_64 13.4.4-ce.0.el7 gitlab_gitlab-ce[root@shell ~]# [root@shell ~]# yum install gitlab-ce #安装gitlab-ce[root@shell ~]# rpm -qa gitlab-cegitlab-ce-13.4.4-ce.0.el7.x86_64[root@shell ~]# [root@shell ~]# gitlab-ctl reconfigure #初始化配置(配置期间无需手动干预)
此时通过网页去访问gitlab-ce ::
首页面显示如下:
出现如下页面:
[root@shell ~]# [root@shell ~]# ssh-keygen #去服务器端生成密钥
[root@shell ~]# [root@shell ~]# cat .ssh/id_rsa.pub ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDRRHvegkZjHnI/rdBjymKu9zUPL1ahXWoAppDMtKb4MqxjoLwLkzVp8/Pt4K2ujGaIoAeMu1G8R5N4S3qHuF4ufCtli9mChkYER1BfpaZ9GHMjICX9geSrs3z2Dcw/w22tfZ1W8WoRt/xiUGVckC1c77qSQ00bPXB8aXtsEVqGCALvx2MQAMmtpWymGgv6nu04WKaygMeThu8NWvvknUgM9BtgdmJshyVyF6DpOsZLeQrsmaJssyT9i6vDr9HnVIYqXwb8hhhkijbf8A4zLEBRSI9VCFKR+9+SaD5xHntL21WSR4EvomH/3wbOdrE3hJdjoNryfkaR3bUMQzzotMTP root@shell[root@shell ~]# 复制上面的密钥内容:ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDRRHvegkZjHnI/rdBjymKu9zUPL1ahXWoAppDMtKb4MqxjoLwLkzVp8/Pt4K2ujGaIoAeMu1G8R5N4S3qHuF4ufCtli9mChkYER1BfpaZ9GHMjICX9geSrs3z2Dcw/w22tfZ1W8WoRt/xiUGVckC1c77qSQ00bPXB8aXtsEVqGCALvx2MQAMmtpWymGgv6nu04WKaygMeThu8NWvvknUgM9BtgdmJshyVyF6DpOsZLeQrsmaJssyT9i6vDr9HnVIYqXwb8hhhkijbf8A4zLEBRSI9VCFKR+9+SaD5xHntL21WSR4EvomH/3wbOdrE3hJdjoNryfkaR3bUMQzzotMTP root@shell
然后出现如下页面:
然后切换到项目页面,就可以看待自己刚创建好的项目:
Gitlab-ce 的使用:1)通过url访问项目并使用 : ;2)通过命令行进行使用
接着写入一些内容:
然后文件test1就创建好了 :
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~