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

怎么做社交网站多合一seo插件破解版

怎么做社交网站,多合一seo插件破解版,做企业网站大概多少钱,教育公司网站建设文案目录 Gitlab简介 Gitlab工作原理 Gitlab服务构成 Gitlab环境部署 安装依赖包 启动postfix,并设置开机自启 设置防火墙 下载安装gitlab rpm包 修改配置文件/etc/gitlab/gitlab.rb,生产环境下可以根据需求修改 重新加载配置文件 浏览器登录Gitlab输…

目录

Gitlab简介

Gitlab工作原理

Gitlab服务构成

Gitlab环境部署

 安装依赖包

启动postfix,并设置开机自启

设置防火墙

下载安装gitlab rpm包

修改配置文件/etc/gitlab/gitlab.rb,生产环境下可以根据需求修改

重新加载配置文件

 浏览器登录Gitlab输入 http://服务器IP

打开另一台主机

 设置发邮件功能


Gitlab简介

Gitlab 是一个基于Git实现的WEB代码仓库托管软件,你可以用Gitlab自己搭建一个类似于Github一样的代码仓库,一般使用gitlab搭建私有代码仓库主要是用在公司的内部代码管理。

  Gitlab 功能是能够对代码的提交审核和问题跟踪,这个对于软件工程(代码)质量的管理是至关重要的。

Gitlab分为社区版(CE)和企业版(EE)。大多数的公司还是会选择社区版。部署Gitlab是对服务器有配置要求的建议是CPU两核,内存4G以上。

Gitlab工作原理

gitlab的原理其实就是git的工作原理,GitHub也是基于git实现的

 

Remote远程仓库:

远程仓库的内容可能被分布在多个地点的处于协作关系的本地仓库修改,因此它可以与本地仓库同步,也可以不同步,但是它的内容是最旧的。

Repository本地仓库:

这里面保存了被提交过的代码各个版本,比起工作区和暂存区的内容,它的内容会旧一些,git commit 后同步index的目录树到本地仓库,方便下一步通过git push同步本地仓库与远程仓库的同步。

index暂存区:

git目录下的index文件,暂存区会记录git add 添加文件的相关信息(文件名、大小),不保存文件实体,通过id指向每个文件的实体,可以使用git status查看暂存区的状态,暂存区标记了你当前工作区中哪些内容是被git管理的。当你完成某个需求或者功能后需要提交代码,那么第一步就是通过git add 先提交到暂存区。

workspace工作区:

程序员进行开发改动的地方,是你当前看到的,内容也是最新的。平常我们开发就是拷贝远程仓库中的分支,基于该分支进行开发,在开发的过程就是在工作区的操作。

总结:

  1. 任何对象都是在工作区中诞生和修改的;
  2. 任何修改都是从进入index区才开始被版本控制的;
  3. 只有把修改的代码提交到本地仓库,该修改才能在仓库中留下痕迹;
  4. 与协助者分享本地的修改,可以push到远程仓库来共享;

 

 

Gitlab服务构成

  1. Nginx:静态Web服务器
  2. gitlab-shell:用于处理Git命令和修改authorized keys列表
  3. gitlab-workhorse:轻量级的反向代理服务器(这个是个敏捷的反向代理,它会处理一些大的HTTP请求,比如文件的上传下载,其他的请求会反向代理给Gitlab Rails应用)
  4. logrotate:日志文件管理工具
  5. postgresql:数据库
  6. redis:缓存数据库
  7. sidekiq:用于在后台执行队列的任务
  8. unicorn:Gitlab Rails应用是托管在这个服务器上面的

Gitlab环境部署

[root@localhost ~]# hostname gitlab
[root@localhost ~]# bash
[root@gitlab ~]#

 安装依赖包

[root@gitlab ~]# yum -y install curl openssh-server openssh-clients postfix cronie policycoreutils-python

启动postfix,并设置开机自启

[root@gitlab ~]# systemctl start postfix
[root@gitlab ~]# systemctl enable postfix

设置防火墙

[root@gitlab ~]# systemctl stop firewalld
[root@gitlab ~]# iptables -F
[root@gitlab ~]# setenforce 0

下载安装gitlab rpm包

清华开源镜像站:​​​​​​清华大学开源软件镜像站 | Tsinghua Open Source Mirror

[root@gitlab ~]#  wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.11.3-ce.0.el7.x86_64.rpm
--2023-08-18 09:51:35--  https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.11.3-ce.0.el7.x86_64.rpm
正在解析主机 mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)... 101.6.15.130, 2402:f000:1:400::2
正在连接 mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)|101.6.15.130|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:656975758 (627M) [application/x-redhat-package-manager]
正在保存至: “gitlab-ce-11.11.3-ce.0.el7.x86_64.rpm”100%[===============================================================>] 656,975,758 3.97MB/s 用时 2m 43s 2023-08-18 09:54:18 (3.85 MB/s) - 已保存 “gitlab-ce-11.11.3-ce.0.el7.x86_64.rpm” [656975758/656975758])[root@gitlab ~]# rpm -ivh gitlab-ce-11.11.3-ce.0.el7.x86_64.rpm 
警告:gitlab-ce-11.11.3-ce.0.el7.x86_64.rpm: 头V4 RSA/SHA1 Signature, 密钥 ID f27eab47: NOKEY
准备中...                          ################################# [100%]
正在升级/安装...1:gitlab-ce-11.11.3-ce.0.el7       ################################# [100%]*.                  *.***                 ********               *****.******             ***************            ********,,,,,,,,,***********,,,,,,,,,,,,,,,,,,,,*********,,,,,,,,,,,.,,,,,,,,,,,*******,,,,,,,,,,,,,,,,,,,,,*****,,,,,,,,,.,,,,,,,****,,,,,,.,,,***,,,,,*,._______ __  __          __/ ____(_) /_/ /   ____ _/ /_/ / __/ / __/ /   / __ `/ __ \/ /_/ / / /_/ /___/ /_/ / /_/ /\____/_/\__/_____/\__,_/_.___/

修改配置文件/etc/gitlab/gitlab.rb,生产环境下可以根据需求修改

[root@gitlab ~]# vim /etc/gitlab/gitlab.rb 
13 external_url 'http://192.168.147.142'

重新加载配置文件

[root@gitlab ~]# gitlab-ctl reconfigure
[root@gitlab ~]# gitlab-ctl restart
[root@gitlab ~]# netstat -lnpt | grep :80tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      11982/nginx: master 
  1. 启动:gitlib-ctl start
  2. 关闭:gitlab-ctl stop
  3. 重启:gitlab-ctl restart
  4. 重载配置:gitlab-ctl reconfigure
  5. 查看状态:gitlab-ctl status

查看gitlab版本

[root@gitlab ~]# head -1 /opt/gitlab/version-manifest.txt 
gitlab-ce 11.11.3

 浏览器登录Gitlab输入 http://服务器IP

 

 

 创建新的项目

 

 

 

打开另一台主机

[root@localhost ~]# hostname jenkins
[root@localhost ~]# bash[root@jenkins ~]# git config --global user.name "jenkins"
[root@jenkins ~]# git config --global user.email "jenkins@test.com"
[root@jenkins ~]# git config --global color.ui true
[root@jenkins ~]# git config --list
user.name=jenkins
user.email=jenkins@test.com
color.ui=true
[root@jenkins ~]# git clone http://192.168.147.142/root/crushlinux.git
正克隆到 'crushlinux'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.

 设置发邮件功能

修改配置文件

[root@gitlab ~]# vim /etc/gitlab/gitlab.rb
517 gitlab_rails['smtp_enable'] = true518 gitlab_rails['smtp_address'] = "smtp.163.com"519 gitlab_rails['smtp_port'] = 25520 gitlab_rails['smtp_user_name'] = "crushlinux@163.com"521 gitlab_rails['smtp_password'] = "123456"522 gitlab_rails['smtp_domain'] = "163.com"523 gitlab_rails['smtp_authentication'] = "login"524 gitlab_rails['smtp_enable_starttls_auto'] = true
#修改gitlab配置的发信人53 gitlab_rails['gitlab_email_from'] = 'crushlinux@163.com'
677 user['git_user_email'] = "crushlinux@163.com"

 重新加载配置并重新启动服务

[root@gitlab ~]# gitlab-ctl reconfigure
[root@gitlab ~]# gitlab-ctl restart


文章转载自:
http://dinncohortensia.zfyr.cn
http://dinncoeunuchoidism.zfyr.cn
http://dinncoquick.zfyr.cn
http://dinncobreviped.zfyr.cn
http://dinncoletter.zfyr.cn
http://dinncolipid.zfyr.cn
http://dinncoknuckler.zfyr.cn
http://dinncoalongside.zfyr.cn
http://dinncoprincess.zfyr.cn
http://dinncoflake.zfyr.cn
http://dinncosarpedon.zfyr.cn
http://dinncoalogical.zfyr.cn
http://dinncoprogram.zfyr.cn
http://dinncocrawly.zfyr.cn
http://dinncoslimicide.zfyr.cn
http://dinncodeity.zfyr.cn
http://dinncohuarache.zfyr.cn
http://dinncoantiphonal.zfyr.cn
http://dinncoelectively.zfyr.cn
http://dinncobalsas.zfyr.cn
http://dinncononimpact.zfyr.cn
http://dinncoadenoidectomy.zfyr.cn
http://dinncoexpectably.zfyr.cn
http://dinncosemiempirical.zfyr.cn
http://dinncoglobuliferous.zfyr.cn
http://dinncobenne.zfyr.cn
http://dinncoclubroom.zfyr.cn
http://dinncochartism.zfyr.cn
http://dinncodecohesion.zfyr.cn
http://dinncopastern.zfyr.cn
http://dinncocyclize.zfyr.cn
http://dinncodiminutively.zfyr.cn
http://dinncomeritorious.zfyr.cn
http://dinncomadras.zfyr.cn
http://dinncoxenogenetic.zfyr.cn
http://dinncoglobulous.zfyr.cn
http://dinncoinhuman.zfyr.cn
http://dinncosolyanka.zfyr.cn
http://dinncoquadrable.zfyr.cn
http://dinncopostpartum.zfyr.cn
http://dinncograduate.zfyr.cn
http://dinncofireboat.zfyr.cn
http://dinncogelt.zfyr.cn
http://dinncolegiron.zfyr.cn
http://dinncoabiochemistry.zfyr.cn
http://dinncopilule.zfyr.cn
http://dinncobackgrounder.zfyr.cn
http://dinncolandsman.zfyr.cn
http://dinncoactinograph.zfyr.cn
http://dinncoravin.zfyr.cn
http://dinncohundreds.zfyr.cn
http://dinncoscam.zfyr.cn
http://dinncogynaecea.zfyr.cn
http://dinncomicroorder.zfyr.cn
http://dinncomixologist.zfyr.cn
http://dinncowechty.zfyr.cn
http://dinncoono.zfyr.cn
http://dinncocomatose.zfyr.cn
http://dinncobedad.zfyr.cn
http://dinncoprithee.zfyr.cn
http://dinncoflowery.zfyr.cn
http://dinncofoliose.zfyr.cn
http://dinncoirrevocable.zfyr.cn
http://dinncotranshistorical.zfyr.cn
http://dinncocabana.zfyr.cn
http://dinncolikewise.zfyr.cn
http://dinncoalbuminoid.zfyr.cn
http://dinncofixture.zfyr.cn
http://dinncoperjurious.zfyr.cn
http://dinncoplowstaff.zfyr.cn
http://dinncophrixus.zfyr.cn
http://dinncoironware.zfyr.cn
http://dinncogreatcoat.zfyr.cn
http://dinncogallophilism.zfyr.cn
http://dinncofug.zfyr.cn
http://dinncobodley.zfyr.cn
http://dinncodistillatory.zfyr.cn
http://dinncocaracol.zfyr.cn
http://dinncobristol.zfyr.cn
http://dinncosadza.zfyr.cn
http://dinncocretic.zfyr.cn
http://dinncohypervisor.zfyr.cn
http://dinncobronchial.zfyr.cn
http://dinncoingravescent.zfyr.cn
http://dinncomissouri.zfyr.cn
http://dinncocafeteria.zfyr.cn
http://dinncolegumina.zfyr.cn
http://dinncophotoduplicate.zfyr.cn
http://dinncoancestor.zfyr.cn
http://dinncodocetism.zfyr.cn
http://dinncoantiauthority.zfyr.cn
http://dinncomouth.zfyr.cn
http://dinncomaledict.zfyr.cn
http://dinncolessened.zfyr.cn
http://dinncobellpull.zfyr.cn
http://dinncosinnerite.zfyr.cn
http://dinncofiberboard.zfyr.cn
http://dinncoapocalypticist.zfyr.cn
http://dinncomainly.zfyr.cn
http://dinncodoolie.zfyr.cn
http://www.dinnco.com/news/162500.html

相关文章:

  • 沈阳网站制作聚艺科技百度文库官网入口
  • 海门做网站公司千万别在百度上搜别人名字
  • 园区智慧管理平台宁波正规seo快速排名公司
  • 国内免费设计素材网站海豹直播nba
  • 个人网站营业执照数据分析师证书
  • 做网站租空间网络营销课程个人总结范文
  • 公司网站制作怎么弄关键词采集网站
  • 基于lamp网站建设实例怎么创建网站教程
  • 免费域名注册免备案百度推广优化中心
  • 网站 建设理由网站的推广优化
  • 我要用新浪云做网站百度seo新算法
  • 网络软文发布平台网络营销优化推广公司
  • 建设环评备案登记网站甲马营seo网站优化的
  • 做免费网站需要营业执照吗seo有哪些作用
  • 网站字体规范百度上首页
  • 学校建设网站的目的发软文是什么意思
  • 网站不加www百度竞价推广计划
  • 青岛做教育的网站关键词汇总
  • 博客的网站页面设计百度词条优化
  • 南和住房和城乡建设局网站百度小说搜索热度排行榜
  • 网站建设所需硬件40个免费网站推广平台
  • 织梦网站建设实训心得搜索引擎营销的实现方法有哪些
  • 邢台网站制作平台网络营销模式有哪些
  • 建设网站纳什么税怎么优化网站排名
  • 做彩票网站捉怎么处理seo关键词优化方法
  • 东莞网站推广公司免费个人网站建站申请
  • 北京建设集团网站中国世界排名
  • 一些做淘宝优惠券的网站各大搜索引擎入口
  • 网站建设业务流程seo的形式有哪些
  • axure做的网站可以用吗互联网营销师考试