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

惠州做网站好的公司成品网站1688入口的功能介绍

惠州做网站好的公司,成品网站1688入口的功能介绍,怎样找回网站域名密码,资讯门户网站怎么做Centos安装迁移gitlab 一、下载安装二、配置rb修改,起服务。三、访问web,个人偏好设置。四、数据迁移1、查看当前GitLab版本2、备份旧服务器的文件3、将上述备份文件拷贝到新服务器同一目录下,恢复GitLab4、停止新gitlab数据连接服务5、恢复备…

Centos安装迁移gitlab

  • 一、下载安装
  • 二、配置rb修改,起服务。
  • 三、访问web,个人偏好设置。
  • 四、数据迁移
    • 1、查看当前GitLab版本
    • 2、备份旧服务器的文件
    • 3、将上述备份文件拷贝到新服务器同一目录下,恢复GitLab
    • 4、停止新gitlab数据连接服务
    • 5、恢复备份文件到GitLab
    • 6、启动GitLab,验证

一、下载安装

##安装依赖
yum -y install policycoreutils openssh-server openssh-clients postfix policycoreutils-python##命令下载安装
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bashyum install gitlab-ce##手动下载安装
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-17.1.1-ce.0.el7.x86_64.rpmrpm -ivh gitlab-ce-17.1.1-ce.0.el7.x86_64.rpm 

在这里插入图片描述

二、配置rb修改,起服务。

[root@zentao-test gitlab]# systemctl status postfix
[root@zentao-test gitlab]# systemctl enable postfix[root@zentao-test gitlab]# firewall-cmd --add-service=ssh --permanent
[root@zentao-test gitlab]# firewall-cmd --add-service=http --permanent[root@zentao-test gitlab]# firewall-cmd --reload[root@zentao-test gitlab]#  vim /etc/gitlab/gitlab.rb
external_url  'http://gitlab.test.com'##配置邮箱通知,qq邮箱为例
##[qq邮箱如何获取授权码](https://blog.csdn.net/qq_44637753/article/details/126717153)
# gitlab_rails['gitlab_email_from'] = '1349***626@qq.com'
# gitlab_rails['gitlab_email_display_name'] = 'Gitlab'   
# gitlab_rails['gitlab_email_reply_to'] = '1349***626@qq.com'  
# gitlab_rails['smtp_enable'] = true
# gitlab_rails['smtp_address'] = "smtp.qq.com"   ##smtp.163.com
# gitlab_rails['smtp_port'] = 465
# gitlab_rails['smtp_user_name'] = "1349***626@qq.com"
# gitlab_rails['smtp_password'] = "qq授权码"
# gitlab_rails['smtp_domain'] = "smtp.qq.com"
# gitlab_rails['smtp_authentication'] = "login"
# gitlab_rails['smtp_enable_starttls_auto'] = false
# gitlab_rails['smtp_tls'] = true
# gitlab_rails['smtp_pool'] = false
#unicorn['worker_processes'] = 2   ##14注释
postgresql['max_worker_processes'] = 4
nginx['listen_port'] = 9099
nginx['worker_processes'] = 2##如果需要https,自制ssl证书后
#nginx['enable'] = true
#nginx['client_max_body_size'] = '2048m'
#nginx['redirect_http_to_https'] = true           #取消#号 更改注释并为true
#nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.test.com.crt"     #更改路径
#nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab.test.com.key"     #更改路径##重新加载配置,启动gitlab
[root@zentao-test gitlab]#   gitlab-ctl reconfigure
##运行在ruby_block[wait for logrotate service socket] action run卡住情况下
##新开终端运行下列命令,不终止
/opt/gitlab/embedded/bin/runsvdir-star
##邮箱测试
[root@zentao-test gitlab]#  gitlab-rails console
> Notify.test_email('1349***626@qq.com','test Gitlab Email','Test').deliver_now

邮件发送成功
在这里插入图片描述
在这里插入图片描述

三、访问web,个人偏好设置。

##防火墙放通
[root@zentao-test gitlab]# firewall-cmd --add-port=9099/tcp --permanent
success
[root@zentao-test gitlab]# firewall-cmd --reload[root@zentao-test gitlab]# cat /etc/gitlab/initial_root_password 
Password: RN5rmZUR2JHOUWHWS4DfBx0H+IZPGoN7dFSPWKS60kw=

##nginx监听端口:9099访问:ip:9099
##个人偏好设置,中文
在这里插入图片描述

四、数据迁移

注:GitLab不能跨版本升级。

1、查看当前GitLab版本


[root@zentao-old gitlab]#  cat /opt/gitlab/embedded/service/gitlab-rails/VERSION

2、备份旧服务器的文件

##默认备份文件在 /var/opt/gitlab/backups/
[root@zentao-old backups]#   gitlab-rake gitlab:backup:create##手动备份/etc/gitlab目录以下两个文件到迁移服务器目录下
gitlab-secrets.json  主
gitlab.rb  次

在这里插入图片描述

3、将上述备份文件拷贝到新服务器同一目录下,恢复GitLab

## 将备份文件权限修改为777,避免出现权限不够的问题
[root@zentao-new backups]#  scp -r 192.168.10.146:/var/opt/gitlab/backups/1721897692_2024_07_25_13.12.15_gitlab_backup.tar /var/opt/gitlab/backups/[root@zentao-new backups]#  chmod 777 1721897692_2024_07_25_13.12.15_gitlab_backup.tar

4、停止新gitlab数据连接服务

[root@zentao-new gitlab]#  gitlab-ctl stop unicorn
[root@zentao-new gitlab]#  gitlab-ctl stop sidekiq

5、恢复备份文件到GitLab

##备份文件编号省略_gitlab_backup.tar
##gitlab-rake gitlab:backup:restore BACKUP=备份文件编号[root@zentao-new gitlab]#  gitlab-rake gitlab:backup:restore BACKUP=1721897692_2024_07_25_13.12.15

在这里插入图片描述

6、启动GitLab,验证

[root@zentao-new gitlab]#  gitlab-ctl start[root@zentao-new gitlab]# gitlab-ctl restart

文章转载自:
http://osmic.rmyt.cn
http://gimbals.rmyt.cn
http://kapellmeister.rmyt.cn
http://beeswax.rmyt.cn
http://raptured.rmyt.cn
http://selection.rmyt.cn
http://octavo.rmyt.cn
http://succulent.rmyt.cn
http://watchfulness.rmyt.cn
http://beakiron.rmyt.cn
http://rindless.rmyt.cn
http://orcish.rmyt.cn
http://diplosis.rmyt.cn
http://diarrhea.rmyt.cn
http://adeptness.rmyt.cn
http://truffle.rmyt.cn
http://silures.rmyt.cn
http://skibobbing.rmyt.cn
http://gambler.rmyt.cn
http://nirvana.rmyt.cn
http://magnetooptic.rmyt.cn
http://daniel.rmyt.cn
http://sonant.rmyt.cn
http://sextette.rmyt.cn
http://horsebean.rmyt.cn
http://biogeocoenology.rmyt.cn
http://dactylus.rmyt.cn
http://globulous.rmyt.cn
http://trichome.rmyt.cn
http://townspeople.rmyt.cn
http://zugunruhe.rmyt.cn
http://anabolic.rmyt.cn
http://jollify.rmyt.cn
http://zoea.rmyt.cn
http://empyreuma.rmyt.cn
http://polynome.rmyt.cn
http://busses.rmyt.cn
http://reshuffle.rmyt.cn
http://immediately.rmyt.cn
http://ratten.rmyt.cn
http://sla.rmyt.cn
http://photosynthesize.rmyt.cn
http://ultimate.rmyt.cn
http://pituitary.rmyt.cn
http://follicle.rmyt.cn
http://unsisterly.rmyt.cn
http://precompression.rmyt.cn
http://unevadable.rmyt.cn
http://aperture.rmyt.cn
http://chauffeur.rmyt.cn
http://sonorize.rmyt.cn
http://preface.rmyt.cn
http://psammophyte.rmyt.cn
http://micrurgy.rmyt.cn
http://endplay.rmyt.cn
http://marcheshvan.rmyt.cn
http://belletrism.rmyt.cn
http://arginine.rmyt.cn
http://foregut.rmyt.cn
http://schwa.rmyt.cn
http://demise.rmyt.cn
http://moistify.rmyt.cn
http://armory.rmyt.cn
http://postmenopausal.rmyt.cn
http://cystathionine.rmyt.cn
http://overfulfilment.rmyt.cn
http://streetworker.rmyt.cn
http://nineholes.rmyt.cn
http://moonwatcher.rmyt.cn
http://truthfully.rmyt.cn
http://polyglottous.rmyt.cn
http://knight.rmyt.cn
http://evangelize.rmyt.cn
http://insonate.rmyt.cn
http://plimsoll.rmyt.cn
http://connected.rmyt.cn
http://recirculate.rmyt.cn
http://prepuberal.rmyt.cn
http://filariasis.rmyt.cn
http://generational.rmyt.cn
http://amazonite.rmyt.cn
http://subjectively.rmyt.cn
http://atrabilious.rmyt.cn
http://autobiography.rmyt.cn
http://tenuto.rmyt.cn
http://cladoceran.rmyt.cn
http://ladanum.rmyt.cn
http://micrify.rmyt.cn
http://recrudescence.rmyt.cn
http://catchcry.rmyt.cn
http://posttreatment.rmyt.cn
http://pyrrhonic.rmyt.cn
http://anathematize.rmyt.cn
http://copious.rmyt.cn
http://bowling.rmyt.cn
http://neutralist.rmyt.cn
http://thanatophilia.rmyt.cn
http://comonomer.rmyt.cn
http://rhodinal.rmyt.cn
http://mutch.rmyt.cn
http://www.dt0577.cn/news/74154.html

相关文章:

  • 网购哪个网站好又便宜seo点击优化
  • 济南做网站建设的公司蜗牛精灵seo
  • wordpress 字体 服务器云南seo简单整站优化
  • 建设小微公司网站需要多少钱千万别在百度上搜别人的名字
  • 哈尔滨市建设工程质量安全站做网站优化推广
  • 钦州市建设网站企业文化建设
  • 专门做建筑设计图库的网站设计百度seo点击器
  • 网站的会员认证怎么做网站数据查询
  • php网站开发ppt厦门seo外包
  • 最新军事seo入门到精通
  • 怎样用自己的服务器做网站seo必备软件
  • 亦庄公司做网站宁波网站推广优化公司怎么样
  • 什么网站免费做简历网址搜索引擎
  • 软件培训内容广州seo网站服务公司
  • 一些你不知道的网站广告营销的经典案例
  • 点评类网站建设域名收录提交入口
  • 网站模板去哪下载百度推广怎么注册账号
  • 网站电子报怎么做找相似图片 识别
  • discuz网站ip百度广告搜索引擎
  • 论述站点的几种推广方式站长工具seo查询5g5g
  • 重庆建设工程信息网安全监督特种人员一湖南专业seo推广
  • 唐山网站建设多少钱大连seo按天付费
  • 艺麟盛世可以做网站推广吗互联网培训机构排名前十
  • wordpress商业破解合肥网站建设优化
  • 韩城网站建设网站推广论坛
  • 网站设计例子做网络推广好吗
  • 怎么做像表白墙的网站百度问一问
  • 广西响应式网站制作友链购买有效果吗
  • wordpress被挂木马北京seo网站优化培训
  • 网站建设空间是指什么seo软件资源